分享

Silverlight 4已经不再包含ImplicitStyleManager类。使用Theme

 牛人的尾巴 2017-01-20
标签: silverlight2010
2011-09-29 10:16 516人阅读 评论(0) 收藏 举报
分类:
 
Silverlight 4已经不再包含ImplicitStyleManager类。

使用Theme,请按照以下步骤:

第一步:

添加Theme的xaml文件到项目中。

第二步:

添加命名空间

<xmlns:theming="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.Toolkit">

第三步:


<UserControl...>
<theming:Theme ThemeUri="/<your namespace>;component/System.Windows.Controls.Theming.ExpressionDark.xaml"> 
<Grid>
...
...
</Grid>
</theming:Theme>
</UserControl>


另外一些相关教程,请参考:

http:///html/tips/2010/0728/1651.html

http:///html/study/shipinjiaocheng/2011/0123/5084.html

http:///html/tips/2010/0102/528.html

http:///html/tips/2010/0102/527.html

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多