ControlDarkDark to ControlLightLight : 3D « Windows Presentation Foundation « C# / C Sharp






ControlDarkDark to ControlLightLight

ControlDarkDark to ControlLightLight
       
<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>
            <LinearGradientBrush>
              <LinearGradientBrush.GradientStops>
                  <GradientStop Offset="0" Color="{x:Static SystemColors.ControlDarkDarkColor}"/>
                  <GradientStop Offset="1" Color="{x:Static SystemColors.ControlLightLightColor}"/>
              </LinearGradientBrush.GradientStops>
            </LinearGradientBrush>
          </Rectangle.Fill>
        </Rectangle>

   </Canvas> 


</Window>

   
    
    
    
    
    
    
  








Related examples in the same category

1.MeshGeometry3D with TextureCoordinatesMeshGeometry3D with TextureCoordinates
2.Painting a 3D surface with a bitmap
3.ControlDark to ControlLightControlDark to ControlLight
4.CubeCube
5.Using 3D ModelsUsing 3D Models
6.Animation RotateTransform3DAnimation RotateTransform3D
7.Point lightPoint light
8.Directional lightDirectional light
9.Spot lightSpot light
10.Ambient lightAmbient light
11.Specular MaterialSpecular Material
12.Diffuse MaterialDiffuse Material
13.Draw a 3D ModelDraw a 3D Model
14.Interact with 3D ObjectsInteract with 3D Objects