Patterns defined by the DrawingBrush expand to fill the area of the rectangle : DrawingBrush « Windows Presentation Foundation « C# / CSharp Tutorial

Home
C# / CSharp Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statement
5.String
6.struct
7.Class
8.Operator Overload
9.delegate
10.Attribute
11.Data Structure
12.Assembly
13.Date Time
14.Development
15.File Directory Stream
16.Preprocessing Directives
17.Regular Expression
18.Generic
19.Reflection
20.Thread
21.I18N Internationalization
22.LINQ
23.GUI Windows Forms
24.Windows Presentation Foundation
25.Windows Communication Foundation
26.Workflow
27.2D
28.Design Patterns
29.Windows
30.XML
31.XML LINQ
32.ADO.Net
33.Network
34.Directory Services
35.Security
36.unsafe
C# / C Sharp
C# / C Sharp by API
C# / CSharp Open Source
C# / CSharp Tutorial » Windows Presentation Foundation » DrawingBrush 
24.98.7.Patterns defined by the DrawingBrush expand to fill the area of the rectangle
<Window x:Class="Workspace.DockExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Workspace" Width="640" Height="480">
          <Rectangle Width="100" Height="100" Stroke="Black" StrokeThickness="1">
            <Rectangle.Fill>
              <DrawingBrush>
                <DrawingBrush.Drawing>
                  <GeometryDrawing Brush="MediumBlue">
                    <GeometryDrawing.Geometry>
                      <GeometryGroup>
                        <EllipseGeometry RadiusX="0.2" RadiusY="0.45" Center="0.5,0.5" />
                        <EllipseGeometry RadiusX="0.45" RadiusY="0.2" Center="0.5,0.5" />
                      </GeometryGroup>
                    </GeometryDrawing.Geometry>
                    <GeometryDrawing.Pen>
                      <Pen Thickness="0.1" Brush="Black" />
                    </GeometryDrawing.Pen>
                  </GeometryDrawing>
                </DrawingBrush.Drawing>
              </DrawingBrush>
            </Rectangle.Fill>
          </Rectangle>

</Window>
WPF Patterns Defined By The Drawing Brush Expand To Fill The Area Of The Rectangle
24.98.DrawingBrush
24.98.1.Using a DrawingBrush as an Opacity MaskUsing a DrawingBrush as an Opacity Mask
24.98.2.DrawingBrush and DrawingGroupDrawingBrush and DrawingGroup
24.98.3.DrawingBrush.Transform SkewTransformDrawingBrush.Transform SkewTransform
24.98.4.DrawingBrush.RelativeTransform RotateTransformDrawingBrush.RelativeTransform RotateTransform
24.98.5.Opacity Mask from DrawingOpacity Mask from Drawing
24.98.6.A DrawingBrush paints an area with a drawingA DrawingBrush paints an area with a drawing
24.98.7.Patterns defined by the DrawingBrush expand to fill the area of the rectanglePatterns defined by the DrawingBrush expand to fill the area of the rectangle
24.98.8.Non-tiled Drawingrush examplesNon-tiled Drawingrush examples
24.98.9.Tiled DrawingBrush examplesTiled DrawingBrush examples
24.98.10.An ImageDrawing enables a DrawingBrush to contain imagesAn ImageDrawing enables a DrawingBrush to contain images
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.