Hi anuka,
If you want the user the choose the background, I would suggest having a style for each background theme you want to apply. For example
XAML
-------------
<Style x:Key="style1" TargetType="{x:Type Window}">
<Setter Property="Background" Value="{x:Static xcpt:LiveExplorerResources.ApplicationBackgroundBrush}" />
<Setter Property="FontSize" Value="16" />
</Style>
<Style x:Key="style2" TargetType="{x:Type Window}">
<Setter Property="Background" Value="Blue" />
<Setter Property="ResizeMode" Value="NoResize" />
<Setter Property="ShowInTaskbar" Value="False" />
</Style>
-------------
Then, in code behind, you can simply choose which style you want to apply based on the user. For example:
C#
-------------
private void btnTest_Click(object sender, RoutedEventArgs e)
{
isTest = !isTest;
if (isTest)
this.Style = (Style) this.Resources["style1"];
else
this.Style = (Style) this.Resources["style2"];
}
-------------
Marc
Developer in Technical Support
Xceed - Multi-talented components - http://xceed.com