A Radial Gradient with an Offset Center : Color « Windows Presentation Foundation « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Design Patterns
8.Development Class
9.Event
10.File Stream
11.Generics
12.GUI Windows Form
13.Language Basics
14.LINQ
15.Network
16.Office
17.Reflection
18.Regular Expressions
19.Security
20.Services Event
21.Thread
22.Web Services
23.Windows
24.Windows Presentation Foundation
25.XML
26.XML LINQ
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source
C# / C Sharp » Windows Presentation Foundation » ColorScreenshots 
A Radial Gradient with an Offset Center
A Radial Gradient with an Offset Center
       

<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>
      <Ellipse Margin="5" Grid.Row="1" Stroke="Black" StrokeThickness="1">
        <Ellipse.Fill>
          <RadialGradientBrush
             RadiusX="1" RadiusY="1" GradientOrigin="0.7,0.3"
            >
            <GradientStop Color="White" Offset="0" />
            <GradientStop Color="Blue" Offset="1" />
          </RadialGradientBrush>

        </Ellipse.Fill>
      </Ellipse>
      <TextBlock Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="5" 
                 TextWrapping="Wrap">A Radial Gradient with an Offset Center</TextBlock>
      

  </Canvas>
</Page>

   
    
    
    
    
    
    
  
Related examples in the same category
1.Color AnimationColor Animation
2.Highlights the gradient origin and the gradient circle
3.using Color structuresusing Color structures
4.Use System Color to draw LineUse System Color to draw Line
5.This text uses a gradientThis text uses a gradient
6.Diagonal Linear GradientDiagonal Linear Gradient
7.A Partially Transparent ButtonA Partially Transparent Button
8.A Radial GradientA Radial Gradient
9.GradientStop with Transparent colorGradientStop with Transparent color
10.Simulating lighting effects with linear fillsSimulating lighting effects with linear fills
11.Color Converter With String FormatColor Converter With String Format
12.Colors and BrushesColors and Brushes
13.From a Hex string using ColorConverterFrom a Hex string using ColorConverter
14.From ScRGB values in the Color structureFrom ScRGB values in the Color structure
15.From sRGB values in the Color strutcureFrom sRGB values in the Color strutcure
16.From predefined color name in the Colors classFrom predefined color name in the Colors class
17.Fills the polylines with a light gray colorFills the polylines with a light gray color
18.Using SystemColors in CodeUsing SystemColors in Code
19.using system colors to create gradientsusing system colors to create gradients
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.