WPF:
xmlns:Viewers="clr-namespace:Sample.Viewers;assembly=Sample"
Metro:
xmlns:Viewers="using:Sample.Viewers"
WPF:
<ResourceDictionary Source="pack://application:,,,/Sample;component/Themes/PageView.xaml"/>
Metro:
<ResourceDictionary Source="ms-appx:///Sample/Themes/PageView.xaml"/>
本文对比了WPF和Metro应用中资源加载的不同方式,包括命名空间引用及资源字典源路径的区别,有助于开发者更好地理解和运用这两种技术。
3106

被折叠的 条评论
为什么被折叠?



