Multiple gradient stops : Color « Windows Presentation Foundation « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Windows Presentation Foundation » Color 




Multiple gradient stops
Multiple gradient stops
        

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">
     
        <Rectangle Width="80" Height="60">
          <Rectangle.Fill>
            <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
              <GradientStop Color="Black" Offset="0" />
              <GradientStop Color="Orange" Offset="0.2" />
              <GradientStop Color="Red" Offset="0.4" />
              <GradientStop Color="Black" Offset="0.6" />
              <GradientStop Color="Yellow" Offset="0.8" />
              <GradientStop Color="Red" Offset="1" />
            </LinearGradientBrush>
          </Rectangle.Fill>
        </Rectangle>
</Page>

   
    
    
    
    
    
    
    
  














Related examples in the same category
1.A Semi-Transparent ButtonA Semi-Transparent Button
2.Use RGB valued semi-transparent color to paint EllipseUse RGB valued semi-transparent color to paint Ellipse
3.Use RGB solid color to paint EllipseUse RGB solid color to paint Ellipse
4.Rainbow color Animation by GradientStops[index].offsetRainbow color Animation by GradientStops[index].offset
5.RadialGradient StarRadialGradient Star
6.ColorConverter and SolidColorBrushColorConverter and SolidColorBrush
7.Ellipse with explicit SolidColorBrushEllipse with explicit SolidColorBrush
8.Use System Colors in Your GraphicsUse System Colors in Your Graphics
9.Use RGB color to fill RectangleUse RGB color to fill Rectangle
10.Use Named color to paint RectangleUse Named color to paint Rectangle
11.Create semi-transparent colorCreate semi-transparent color
12.Three stops LinearGradientBrushThree stops LinearGradientBrush
13.Animating Color with ColorAnimationAnimating Color with ColorAnimation
14.From a Hex string using ColorConverterFrom a Hex string using ColorConverter
15.From ScRGB values in the Color structureFrom ScRGB values in the Color structure
16.From sRGB values in the Color strutcureFrom sRGB values in the Color strutcure
17.Using a LinearGradientBrushUsing a LinearGradientBrush
18.Numeric color valuesNumeric color values
19.From predefined color name in the Colors classFrom predefined color name in the Colors class
20.Using SystemColors in CodeUsing SystemColors in Code
21.using system colors to create gradientsusing system colors to create gradients
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.