ControlDark to ControlLight : 3D « Windows Presentation Foundation « C# / C Sharp






ControlDark to ControlLight

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>

   
    
    
    
    
    
    
  








Related examples in the same category

1.MeshGeometry3D with TextureCoordinatesMeshGeometry3D with TextureCoordinates
2.Painting a 3D surface with a bitmap
3.ControlDarkDark to ControlLightLightControlDarkDark to ControlLightLight
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