Code: Select all
<Grid x:Name="LayoutRoot">
<Grid.Background>
<LinearGradientBrush
StartPoint="0,0"
EndPoint="1,1">
<GradientStop
Color="Red"
Offset="0.0" />
<GradientStop
Color="White"
Offset="0.5" />
<GradientStop
Color="Blue"
Offset="1.0" />
</LinearGradientBrush>
</Grid.Background>
</Grid>
It does, however, work in a Button.Background and Border.Background. I have not tested other controls.