0
您好,如何去从:的Silverlight 3 - 更改合并字典动态
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="teste.App">
<Application.Resources>
<!-- Resources scoped at the Application level should be defined here. -->
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
**<ResourceDictionary Source="Green.xaml"/>**
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
要:
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="teste.App">
<Application.Resources>
<!-- Resources scoped at the Application level should be defined here. -->
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
**<ResourceDictionary Source="Blue.xaml"/>**
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
动态,当用户选择主题...难道可能? 谢谢 Josi
是否有将它应用到整个应用程序设置新的主题一次呢? – 2009-12-09 16:56:56
XDocument是什么命名空间? – 2009-12-09 17:18:41
XDocument位于System.Linq命名空间中。 – 2009-12-09 17:24:21