[英]Regarding telerik radEditor
在Telerik.Web.UI.xml文件中,我找到了此條目
<member name="P:Telerik.Web.UI.RadDataBoundControl.Skin">
<summary>Gets or sets the skin name for the control user interface.</summary>
<value>A string containing the skin name for the control user interface. The default is string.Empty.</value>
<remarks>
<para>
If this property is not set, the control will render using the skin named "Default".
If EnableEmbeddedSkins is set to false, the control will not render skin.
</para>
</remarks>
</member>
那說RadControls使用的皮膚名為Default..Now,如果我希望它不是默認皮膚,該怎么辦?如果我希望它成為一些CustomSkin而不是默認皮膚,該怎么辦? 我需要在哪里設置要使用的皮膚的值? 我不太了解XML ..所以問
什么是這個xml文件? 只描述東西? 這個xml文件的目的是什么?
[編輯]
如telerik網站中所述,嘗試在webconfig.xml中全局設置Skin,如下所示: -
<add key="Telerik.EnableEmbeddedSkins" value="true" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="true" />
<add key="Telerik.RadEditor.Skin" value="CustomSkin" />
這沒有任何差異! 僅使用默認文件:(
使用組件的Skin
屬性。 請參閱控制視覺外觀幫助主題 。 XML文件與設置外觀無關。
這是intellisense的文檔數據,可在IDE中為您提供信息。
根據文檔,您可以將Skin
屬性設置為要加載的外觀的名稱,而不是"Default"
編輯以回應評論:
如果要全局設置外觀,則只需在SkinFile.skin中為當前主題應用所需的自定義外觀即可。
<rad:RadEditor
runat="server"
Skin="MyCustomSkin" />
當然,用你選擇的皮膚取代MyCustomSkin
。
PS我不知道RadEditor
是正確的標簽,所以你可能想檢查出來,以及這段代碼假設你的Telerik控件的TagPrefix
是rad
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.