Tiled Geometry : Geometry « 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 » Geometry 
24.105.13.Tiled Geometry
<Window  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="SDKSample.SampleViewer"
    Title="  Examples" >

   <Canvas> 
        <Rectangle Height="200" Width="200" Stroke="Black" StrokeThickness="1"
          HorizontalAlignment="Left">
          <Rectangle.Fill>
            <DrawingBrush Viewbox="0,0,200,200" ViewboxUnits="Absolute" Viewport="0,0,0.5,0.5" TileMode="FlipXY">
              <DrawingBrush.Drawing>
                <GeometryDrawing Brush="#CCCCFF">
                  <GeometryDrawing.Pen>
                    <Pen Thickness="1" Brush="Black" />
                  </GeometryDrawing.Pen>
                  <GeometryDrawing.Geometry>
                    <GeometryGroup>
                      <RectangleGeometry Rect="50,50 195,80" />
                      <EllipseGeometry Center="100, 100" RadiusX="20" RadiusY="30"/>
                      <RectangleGeometry Rect="50,175 100,10" />
                      <PathGeometry>
                        <PathGeometry.Figures>
                          <PathFigureCollection>
                            <PathFigure IsClosed="true" StartPoint="50,50">
                              <PathFigure.Segments>
                                <PathSegmentCollection>
                                  <BezierSegment Point1="75,300" Point2="125,100" Point3="150,50"/>

                                  <BezierSegment Point1="5,700" Point2="225,100" Point3="150,50"/>
                                  <BezierSegment Point1="175,30" Point2="325,100" Point3="150,50"/>
                                  <BezierSegment Point1="125,300" Point2="75,200" Point3="50,50"/>
                                  <BezierSegment Point1="5,30"  Point2="175,400" Point3="150,50"/>
                                </PathSegmentCollection>
                              </PathFigure.Segments>
                            </PathFigure>
                          </PathFigureCollection>
                        </PathGeometry.Figures>
                      </PathGeometry>               
                    </GeometryGroup>                  
                  </GeometryDrawing.Geometry>
                </GeometryDrawing>
              </DrawingBrush.Drawing>
            </DrawingBrush>
          </Rectangle.Fill>
        </Rectangle> 
   </Canvas> 


</Window>
WPF Tiled Geometry
24.105.Geometry
24.105.1.LineGeometryLineGeometry
24.105.2.EllipseGeometryEllipseGeometry
24.105.3.RectangleGeometryRectangleGeometry
24.105.4.Animate GeometryDrawing ExamplesAnimate GeometryDrawing Examples
24.105.5.CombinedGeometry for Path.Data and DrawingBrush for Path.FillCombinedGeometry for Path.Data and DrawingBrush for Path.Fill
24.105.6.Combines two geometries using the XOR combine modeCombines two geometries using the XOR combine mode
24.105.7.Combines two geometries using the union combine modeCombines two geometries using the union combine mode
24.105.8.Combines two geometries using the exclude combine modeCombines two geometries using the exclude combine mode
24.105.9.Geometry Transform for RectangleGeometry Transform for Rectangle
24.105.10.Geometry Transform for PathGeometry Transform for Path
24.105.11.Geometry Used with a DrawingBrushGeometry Used with a DrawingBrush
24.105.12.Geometry Used as a ClipGeometry Used as a Clip
24.105.13.Tiled GeometryTiled Geometry
24.105.14.Ellipse Geometry DemoEllipse Geometry Demo
24.105.15.LineGeometry DemoLineGeometry Demo
24.105.16.Use PolyBezierSegment to Simulated CircleUse PolyBezierSegment to Simulated Circle
24.105.17.Converting text to geometryConverting text to geometry
24.105.18.Use a PathGeometry object to highlight displayed text.Use a PathGeometry object to highlight displayed text.
24.105.19.Shape ExcludeShape Exclude
24.105.20.Shape XorShape Xor
24.105.21.Shape UnionShape Union
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.