RadialGradient Star : Color « Windows Presentation Foundation « VB.Net






RadialGradient Star

RadialGradient Star
      

<Polygon xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         Points="144 48, 200 222, 53 114, 235 114, 88 222"
         Stroke="Blue"
         StrokeThickness="5">
    <Polygon.Fill>
        <RadialGradientBrush>
            <GradientStop Offset="0" Color="Blue" />
            <GradientStop Offset="1" Color="Red" />
        </RadialGradientBrush>
    </Polygon.Fill>
</Polygon>

   
    
    
    
    
    
  








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.ColorConverter and SolidColorBrushColorConverter and SolidColorBrush
6.Ellipse with explicit SolidColorBrushEllipse with explicit SolidColorBrush
7.Use System Colors in Your GraphicsUse System Colors in Your Graphics
8.Use RGB color to fill RectangleUse RGB color to fill Rectangle
9.Use Named color to paint RectangleUse Named color to paint Rectangle
10.Create semi-transparent colorCreate semi-transparent color
11.Three stops LinearGradientBrushThree stops LinearGradientBrush
12.Animating Color with ColorAnimationAnimating Color with ColorAnimation
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.Using a LinearGradientBrushUsing a LinearGradientBrush
17.Multiple gradient stopsMultiple gradient stops
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