Desktop to AppWorkspace : SystemColors « Windows Presentation Foundation « C# / CSharp Tutorial






<Window  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="SampleViewer"
    Title="Examples" >

   <Canvas> 
        <Button Width="120" Height="20">
          <Button.Background>
            <RadialGradientBrush>
              <RadialGradientBrush.GradientStops>
                  <GradientStop Offset="0" Color="{x:Static SystemColors.DesktopColor}"/>
                  <GradientStop Offset="1" Color="{x:Static SystemColors.AppWorkspaceColor}"/>
              </RadialGradientBrush.GradientStops>
            </RadialGradientBrush>
          </Button.Background>
        </Button>   

   </Canvas> 


</Window>
WPF Desktop To App Workspace








24.169.SystemColors
24.169.1.Reference SystemColorsReference SystemColors
24.169.2.Desktop to AppWorkspaceDesktop to AppWorkspace