1. Define some resource for example a background Brush
<SolidColorBrush x:Name="SCB_BackWhite">
<Color>#CCFFFFFF</Color>
</SolidColorBrush>
2. Bind the background Property of the target control to the style deffinition
<Grid x:Name="mainGrid" Background="{StaticResource SCB_BackWhite}"></grid>
3. The same effect in code behind
mainGrid.Background = Application.Current.Resources["SCB_BackWhite"] as SolidColorBrush ;
Post being viewed right now
Item date: 09.10.2009
Views: 17573
Item date: 09.03.2009
Views: 495
Item date: 03.01.2009
Views: 821
Item date: 16.06.2009
Views: 1752
Item date: 15.05.2009
Views: 633
Item date: 05.02.2009
Views: 476
Item date: 19.07.2009
Views: 656
Item date: 29.10.2009
Views: 15404
Item date: 11.04.2009
Views: 622
Item date: 16.06.2009
Views: 666