FileRule = Nonzero for Path : Path « 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 » PathScreenshots 
FileRule = Nonzero for Path
FileRule = Nonzero for Path
      

<Window x:Class="GeometryGroupExample"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Geometry Group" Height="310" Width="300">

  <Window.Resources>
    <GeometryGroup x:Key="GeometryNonzero" FillRule="Nonzero">
      <EllipseGeometry RadiusX="50" RadiusY="50" Center="65,60" />
      <EllipseGeometry RadiusX="30" RadiusY="30" Center="65,60" />
    </GeometryGroup>
    <GeometryGroup x:Key="GeometryEvenOdd" FillRule="EvenOdd">
      <EllipseGeometry RadiusX="50" RadiusY="50" Center="65,60" />
      <EllipseGeometry RadiusX="30" RadiusY="30" Center="65,60" />
    </GeometryGroup>
  </Window.Resources>
  <Border Margin="5" BorderBrush="Black" BorderThickness="1"
    HorizontalAlignment="Left">
    <Canvas Height="310" Width="300">
      <Grid ShowGridLines="True" Height="265">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="140" />
          <ColumnDefinition Width="140" />
        </Grid.ColumnDefinitions>
        <StackPanel Margin="5" Grid.Column="0">
          <TextBlock Text="FileRule = Nonzero"
            Margin="15,5,5,5" />
          <Path Fill="LightBlue" Stroke="Blue"
            StrokeThickness="2" Data="{StaticResource GeometryNonzero}" />
          <Path Fill="LightCoral" Stroke="Red"
            StrokeThickness="2" Canvas.Left="150"
            Data="{StaticResource GeometryNonzero}" />
        </StackPanel>

      </Grid>
    </Canvas>
  </Border>
</Window>

   
    
    
    
    
    
  
Related examples in the same category
1.Trivial PathTrivial Path
2.Path DataPath Data
3.A Path based on Path.Data, PathGeometry and LineSegmentA Path based on Path.Data, PathGeometry and LineSegment
4.Path StrokeDashArrayPath StrokeDashArray
5.Sample ArcSample Arc
6.Four Overlapping CirclesFour Overlapping Circles
7.Path IntersectPath Intersect
8.Closed PathFigureClosed PathFigure
9.PathGeometry FigurePathGeometry Figure
10.Path with OuterGlowBitmapEffectPath with OuterGlowBitmapEffect
11.Path with M, C and ZPath with M, C and Z
12.Path and PolyLineSegment.PointsPath and PolyLineSegment.Points
13.Double animation with pathDouble animation with path
14.Matrix animation with pathMatrix animation with path
15.Create a polyline with a PathGeometryCreate a polyline with a PathGeometry
16.Expanding CirclesExpanding Circles
17.Simple ArcSimple Arc
18.Draw a Curved Line with PathFigure, LineSegment, ArcSegmentDraw a Curved Line with PathFigure, LineSegment, ArcSegment
19.LineSegment inside a PathFigureLineSegment inside a PathFigure
20.ArcSegment inside a PathFigureArcSegment inside a PathFigure
21.Set SweepDirection=Clockwise for ArcSegmentSet SweepDirection=Clockwise for ArcSegment
22.PathFigure and BezierSegmentPathFigure and BezierSegment
23.Path with BlurBitmapEffectPath with BlurBitmapEffect
24.Path with DropShadowBitmapEffectPath with DropShadowBitmapEffect
25.Path based on GeometryGroupPath based on GeometryGroup
26.Set for RenderTransformOrigin PathSet for RenderTransformOrigin Path
27.Use TransformGroup to group transformationsUse TransformGroup to group transformations
28.Transform PathTransform Path
29.Grouped ShapesGrouped Shapes
30.FileRule = EvenOdd for PathFileRule = EvenOdd for Path
31.Path with EllipseGeometriesPath with EllipseGeometries
32.One Path with two EllipseGeometriesOne Path with two EllipseGeometries
33.Path with ShadowPath with Shadow
34.Dotted PathDotted Path
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.