Hi all,
I have a resource dictionary which is already added to the App.xaml however when I add the particular style to my Grid, it doesn't gets reflected while debugging.
Can anyone please help me on this ?
My codes are as follow :-
MainPage.xaml
<Grid x:Name="myGrid_MainPage" Style="{StaticResource myGridStyle}">
myRD_Main.xaml
<Style x:Key="myGridStyle" TargetType="Grid">
<Setter Property="Grid.Background">
<Setter.Value>
<LinearGradientBrush>
<GradientStopCollection>
<GradientStop Color="Red" Offset="0.5"></GradientStop>
<GradientStop Color="Black" Offset="0.5"></GradientStop>
</GradientStopCollection>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
App.xaml
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="C:\Users\MyUser\documents\visual studio 2010\Projects\mySilverlight_App_Practice\mySilverlight_App_Practice\myResources\myRD_Main.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>