How to set background color of WPF window application form?

By James J

Set background color of WPF window application form...


<Window x:Class="WpfApplication1.MainWindow"
         
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         
Title="WPF Application" Height="350" Width="525">
    <Grid Background="SkyBlue">
        <TextBox Height="23" HorizontalAlignment="Left" Margin="292,164,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" />
    </Grid>
</Window>

How to set background color of WPF window application form?  (1613 Views)