在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的皮肤,如果我希望它不是默认的..what,如果我希望它是一些要呈现的CustomSkin,而不是默认的皮肤,该怎么办?我需要在哪里设置我想要使用的皮肤的值?我不太了解XML..so的问题
这个xml文件到底是用来做什么的?只是描述一些东西?此xml文件的用途是什么??
编辑
我尝试了在telerik's website中提到的webconfig.xml中全局设置皮肤,如下所示:
<add key="Telerik.EnableEmbeddedSkins" value="true" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="true" />
<add key="Telerik.RadEditor.Skin" value="CustomSkin" />这并没有什么不同!仅使用默认文件:(
发布于 2010-11-08 14:53:01
使用组件的Skin属性。请参阅controlling visual appearance help topics。XML文件与设置外观无关。
发布于 2010-11-08 14:54:04
这是intellisense的文档数据,用于在IDE中为您提供信息。
根据文档,您需要将Skin属性设置为您想要加载的外观的名称,以代替"Default"
响应评论进行编辑:
如果您想要全局设置皮肤,那么只需在当前主题的SkinFile.skin中为特定控件应用所需的自定义皮肤即可。
<rad:RadEditor
runat="server"
Skin="MyCustomSkin" />当然,将MyCustomSkin替换为您选择的皮肤。
附注:我不知道RadEditor是正确的标签,所以你可能想检查一下,因为这段代码假设你的Telerik控件的TagPrefix是rad。
https://stackoverflow.com/questions/4121770
复制相似问题