ColorConverter and SolidColorBrush : Color « Windows Presentation Foundation « VB.Net Tutorial

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net
VB.Net by API
VB.Net Tutorial » Windows Presentation Foundation » Color 
16.73.6.ColorConverter and SolidColorBrush
<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="" Height="300" Width="300">

  <Canvas>
    <TextBlock Text="Brush from Hex Color [ .Fill = new SolidColorBrush((Color)ColorConverter.ConvertFromString('#FFFFEFD5')); ]"/>
    <Rectangle HorizontalAlignment="Left" Width="60" Height="20" Fill="#FFFFEFD5"/>
  </Canvas>

</Window>
WPF Color Converter And Solid Color Brush
16.73.Color
16.73.1.A Semi-Transparent ButtonA Semi-Transparent Button
16.73.2.Use RGB valued semi-transparent color to paint EllipseUse RGB valued semi-transparent color to paint Ellipse
16.73.3.Use RGB solid color to paint EllipseUse RGB solid color to paint Ellipse
16.73.4.Rainbow color Animation by GradientStops[index].offsetRainbow color Animation by GradientStops[index].offset
16.73.5.RadialGradient StarRadialGradient Star
16.73.6.ColorConverter and SolidColorBrushColorConverter and SolidColorBrush
16.73.7.Ellipse with explicit SolidColorBrushEllipse with explicit SolidColorBrush
16.73.8.Use System Colors in Your GraphicsUse System Colors in Your Graphics
16.73.9.Use RGB color to fill RectangleUse RGB color to fill Rectangle
16.73.10.Use Named color to paint RectangleUse Named color to paint Rectangle
16.73.11.Create semi-transparent colorCreate semi-transparent color
16.73.12.Three stops LinearGradientBrushThree stops LinearGradientBrush
16.73.13.Animating Color with ColorAnimationAnimating Color with ColorAnimation
16.73.14.From a Hex string using ColorConverterFrom a Hex string using ColorConverter
16.73.15.From ScRGB values in the Color structureFrom ScRGB values in the Color structure
16.73.16.From sRGB values in the Color strutcureFrom sRGB values in the Color strutcure
16.73.17.Using a LinearGradientBrushUsing a LinearGradientBrush
16.73.18.Multiple gradient stopsMultiple gradient stops
16.73.19.Numeric color valuesNumeric color values
16.73.20.From predefined color name in the Colors classFrom predefined color name in the Colors class
16.73.21.Using SystemColors in CodeUsing SystemColors in Code
16.73.22.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.