April 10, 2011 Leave a comment
You can include a border around the edges of a Window using the BorderBrush and BorderThickness properties.
By default, the BorderBrush is null and BorderThickness is a Thickness structure with all of its dimensions set to 0.
If you specify only the BorderThickness property, you get a black border around the window.
You can also specify both a border brush and a border thickness.
<Window BorderThickness="20"> <Window.BorderBrush> <LinearGradientBrush> <GradientStop Color="DarkKhaki" Offset="0.0"/> <GradientStop Color="DarkGreen" Offset="1.0"/> </LinearGradientBrush> </Window.BorderBrush>