Diagonal Linear Gradient : Color « Windows Presentation Foundation « C# / CSharp Tutorial

Home
C# / CSharp Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statement
5.String
6.struct
7.Class
8.Operator Overload
9.delegate
10.Attribute
11.Data Structure
12.Assembly
13.Date Time
14.Development
15.File Directory Stream
16.Preprocessing Directives
17.Regular Expression
18.Generic
19.Reflection
20.Thread
21.I18N Internationalization
22.LINQ
23.GUI Windows Forms
24.Windows Presentation Foundation
25.Windows Communication Foundation
26.Workflow
27.2D
28.Design Patterns
29.Windows
30.XML
31.XML LINQ
32.ADO.Net
33.Network
34.Directory Services
35.Security
36.unsafe
C# / C Sharp
C# / C Sharp by API
C# / CSharp Open Source
C# / CSharp Tutorial » Windows Presentation Foundation » Color 
24.82.6.Diagonal Linear Gradient
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.Samples.Graphics.RectangleExample"
    WindowTitle="Example">
  <Canvas>
  <Rectangle Width="150" Height="100" Margin="5">
    <Rectangle.Fill>
      <LinearGradientBrush >
        <GradientStop Color="Blue" Offset="0"/>
        <GradientStop Color="White" Offset="1" />
      </LinearGradientBrush>
    </Rectangle.Fill>
  </Rectangle>
    <TextBlock Grid.Column="1" VerticalAlignment="Center" Margin="5">Diagonal Linear Gradient</TextBlock>


  </Canvas>
</Page>
WPF Diagonal Linear Gradient
24.82.Color
24.82.1.Color AnimationColor Animation
24.82.2.Highlights the gradient origin and the gradient circleHighlights the gradient origin and the gradient circle
24.82.3.using Color structuresusing Color structures
24.82.4.Use System Color to draw LineUse System Color to draw Line
24.82.5.This text uses a gradientThis text uses a gradient
24.82.6.Diagonal Linear GradientDiagonal Linear Gradient
24.82.7.A Partially Transparent ButtonA Partially Transparent Button
24.82.8.A Radial GradientA Radial Gradient
24.82.9.A Radial Gradient with an Offset CenterA Radial Gradient with an Offset Center
24.82.10.GradientStop with Transparent colorGradientStop with Transparent color
24.82.11.Simulating lighting effects with linear fillsSimulating lighting effects with linear fills
24.82.12.Color Converter With String FormatColor Converter With String Format
24.82.13.Colors and BrushesColors and Brushes
24.82.14.From a Hex string using ColorConverterFrom a Hex string using ColorConverter
24.82.15.From ScRGB values in the Color structureFrom ScRGB values in the Color structure
24.82.16.From sRGB values in the Color strutcureFrom sRGB values in the Color strutcure
24.82.17.From predefined color name in the Colors classFrom predefined color name in the Colors class
24.82.18.Fills the polylines with a light gray colorFills the polylines with a light gray color
24.82.19.Using SystemColors in CodeUsing SystemColors in Code
24.82.20.using system colors to create gradientsusing system colors to create gradients
24.82.21.Using Colors.Red, Colors.Indigo and Colors.Violet to create rainbow
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.