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 |