programming-examples/c-sharp/Others/ControlDark to ControlLight.cs
2019-11-15 12:59:38 +01:00

26 lines
750 B
C#

ControlDark to ControlLight
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.SampleViewer"
Title="Examples" >
<Canvas>
<Rectangle>
<Rectangle.Fill>
<RadialGradientBrush>
<RadialGradientBrush.GradientStops>
<GradientStop Offset="0" Color="{x:Static SystemColors.ControlDarkColor}"/>
<GradientStop Offset="1" Color="{x:Static SystemColors.ControlLightColor}"/>
</RadialGradientBrush.GradientStops>
</RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
</Window>