Use System Colors in Your Graphics : 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.Development
8.Event
9.File Directory
10.Generics
11.GUI
12.Language Basics
13.LINQ
14.Network Remote
15.Security
16.Thread
17.Windows Presentation Foundation
18.Windows System
19.XML
20.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Windows Presentation Foundation » ColorScreenshots 
Use System Colors in Your Graphics
Use System Colors in Your Graphics
      

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF" Height="300" Width="300">
    <UniformGrid>
        <UniformGrid.Resources>
            <Style TargetType="{x:Type Rectangle}">
                <Setter Property="Height" Value="50" />
                <Setter Property="Width" Value="50" />
                <Setter Property="Margin" Value="5" />
            </Style>
        </UniformGrid.Resources>
        <Rectangle Fill="{x:Static SystemColors.ActiveBorderBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ActiveCaptionBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ScrollBarBrush}" />
        <Rectangle Fill="{x:Static SystemColors.AppWorkspaceBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ControlBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ControlDarkBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ControlDarkDarkBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ControlLightBrush}" />
        <Rectangle Fill="{x:Static SystemColors.HotTrackBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ControlTextBrush}" />
        <Rectangle Fill="{x:Static SystemColors.DesktopBrush}" />
        <Rectangle Fill="{x:Static SystemColors.InfoBrush}" />
        <Rectangle Fill="{x:Static SystemColors.MenuBarBrush}" />
        <Rectangle Fill="{x:Static SystemColors.GrayTextBrush}" />
        <Rectangle Fill="{x:Static SystemColors.HighlightBrush}" />
        <Rectangle Fill="{x:Static SystemColors.WindowFrameBrush}" />
        <Rectangle Fill="{x:Static SystemColors.ActiveBorderBrush}" />

    </UniformGrid>
</Window>

   
    
    
    
    
    
  
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 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
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.