SolidColorBrush described using 6-digit hexadecimal notation. : SolidColorBrush « 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.Date Time
8.Design Patterns
9.Development Class
10.Event
11.File Stream
12.Generics
13.GUI Windows Form
14.Internationalization I18N
15.Language Basics
16.LINQ
17.Network
18.Office
19.Reflection
20.Regular Expressions
21.Security
22.Services Event
23.Thread
24.Web Services
25.Windows
26.Windows Presentation Foundation
27.XML
28.XML LINQ
C# / C Sharp » Windows Presentation Foundation » SolidColorBrush 




SolidColorBrush described using 6-digit hexadecimal notation.
SolidColorBrush described using 6-digit hexadecimal notation.
 

<!--The first pair of digits describes the amount of red in the color,
the next pair describes the amount of green,
and the final two digits describes the amount of blue.
-->
            
<Window x:Class="WpfApplication1.ShapesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ShapesWindow" Height="160" Width="400">
      <Window.Resources>
        <Style TargetType="{x:Type Rectangle}">
          
          <!-- Gives all the rectangles in this panel a white stroke. -->
          <Setter Property="Stroke" Value="White"/>
          <Setter Property="StrokeThickness" Value="1"/>
        </Style>
      </Window.Resources>
    <Canvas>
      <Rectangle Width="50" Height="50" Fill="#0000FF" />

    </Canvas>
</Window>

   
  














Related examples in the same category
1.The Color property of this rectangle's SolidColorBrush is animated.The Color property of this rectangle's SolidColorBrush is animated.
2.The Color property of the SolidColorBrush used to fill this rectangle is animatedThe Color property of the SolidColorBrush used to fill this rectangle is animated
3.The Opacity property of this rectangle's SolidColorBrush is animatedThe Opacity property of this rectangle's SolidColorBrush is animated
4.SolidColorBrush Opacity property from 1 to 0SolidColorBrush Opacity property from 1 to 0
5.SolidColorBrush objects: Brushes.Red, Brushes.MediumBlue,Brushes.Purple, and Brushes.GoldSolidColorBrush objects: Brushes.Red, Brushes.MediumBlue,Brushes.Purple, and Brushes.Gold
6.SolidColorBrush described using 3-digit hexadecimal notation: amount of red, green, and blue in the color.SolidColorBrush described using 3-digit hexadecimal notation: amount of red, green, and blue in the color.
7.SolidColorBrush described using 8-digit hexadecimal notation.SolidColorBrush described using 8-digit hexadecimal notation.
8.SolidColorBrush's Color property is specified using one of the predefined colors defined by the System.Windows.Media.Colors classSolidColorBrush's Color property is specified using one of the predefined colors defined by the System.Windows.Media.Colors class
9.SolidColorBrush's color is specified using 3-digit hexadecimal notation.SolidColorBrush's color is specified using 3-digit hexadecimal notation.
10.SolidColorBrush's color is specified using 6-digit hexadecimal notation.SolidColorBrush's color is specified using 6-digit hexadecimal notation.
11.SolidColorBrush's color is specified using 8-digit hexadecimal notation.SolidColorBrush's color is specified using 8-digit hexadecimal notation.
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.