RadialGradientBrush GradientOrigin : RadialGradientBrush « 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 » RadialGradientBrushScreenshots 
RadialGradientBrush GradientOrigin
RadialGradientBrush GradientOrigin
  


<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      WindowTitle="StackPanel vs. DockPanel">
  <Grid Width="175" Height="150">
    <Rectangle Grid.Row="1" Grid.Column="0"  Width="100" Height="100" 
      StrokeThickness="4" Margin="4">
      <Rectangle.Fill>
        <RadialGradientBrush GradientOrigin="0.5,0.5" Center="0.5,0.5" 
          RadiusX="0.5" RadiusY="0.5">
          <GradientStop Color="Black" Offset="0" />
          <GradientStop Color="Gray" Offset="0.45" />
          <GradientStop Color="Black" Offset="0.85" />
        </RadialGradientBrush>
      </Rectangle.Fill>
      <Rectangle.Stroke>
        <SolidColorBrush Color="Blue"/>
      </Rectangle.Stroke>
    </Rectangle>
  </Grid>
</Page>

   
    
  
Related examples in the same category
1.RadialGradientBrush Opacity from 1 to 0RadialGradientBrush Opacity from 1 to 0
2.RadialGradientBrush examples and Define GradientStop in ResourceRadialGradientBrush examples and Define GradientStop in Resource
3.RadialGradientBrush Rectangle.StrokeRadialGradientBrush Rectangle.Stroke
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.