I am a beginner in C#. I was trying to set some properties to my button in my visual C# WPF application using the following xaml:
<Grid>
<Button Panel.ZIndex="1" Content="Button" Height="37" HorizontalAlignment="Stretch"
Margin="378,12,38,262" Name="button1" VerticalAlignment="Stretch" Width="87" >
<Button.Resources>
<Style x:Key="buttonStyle">
<Setter Property="Button.Background" Value="Gray"/>
<Setter Property="Button.Foreground" Value="White"/>
<Setter Property="Button.FontFamily" Value="Comic Sans MS"/>
</Style>
</Button.Resources>
</Button>
<Image Margin="0,0,0,0" Name="image1">
<Image.Source>
<BitmapImage UriSource="images.jpg"></BitmapImage>
</Image.Source>
</Image>
</Grid>
But the Button.Resource has no effect on the style of the button. Can anyone please tell me the problem in this