GeometryCombineMode = Union : Geometry « Windows Presentation Foundation « VB.Net






GeometryCombineMode = Union

GeometryCombineMode = Union
       

<UniformGrid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Rows="2" Columns="2" TextBlock.FontSize="12pt">

    <UniformGrid.Resources>
        <Style TargetType="{x:Type Path}">
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Fill" Value="Blue" />
            <Setter Property="Stroke" Value="Red" />
            <Setter Property="StrokeThickness" Value="5" />
        </Style>
    </UniformGrid.Resources>


    <Grid>
        <TextBlock HorizontalAlignment="Center">
            GeometryCombineMode="Union"
        </TextBlock>
        <Path> 
            <Path.Data>
                <CombinedGeometry GeometryCombineMode="Union">
                    <CombinedGeometry.Geometry1>
                        <EllipseGeometry Center="96 96" 
                                         RadiusX="96" RadiusY="96" />
                    </CombinedGeometry.Geometry1>
                    <CombinedGeometry.Geometry2>
                           <EllipseGeometry Center="48 48"
                                            RadiusX="96" RadiusY="96" />
                    </CombinedGeometry.Geometry2>
                </CombinedGeometry>
            </Path.Data>
        </Path>
    </Grid>

</UniformGrid>

   
    
    
    
    
    
    
  








Related examples in the same category

1.GeometryCombineMode = IntersectGeometryCombineMode = Intersect
2.GeometryCombineMode = XorGeometryCombineMode = Xor
3.GeometryCombineMode = ExcludeGeometryCombineMode = Exclude
4.Combine two circles into one shape using CombinedGeometry: UnionCombine two circles into one shape using CombinedGeometry: Union
5.Combine two circles into one shape using CombinedGeometry: XorCombine two circles into one shape using CombinedGeometry: Xor
6.Combine two circles into one shape using CombinedGeometry: IntersectCombine two circles into one shape using CombinedGeometry: Intersect
7.Combine two circles into one shape using CombinedGeometry: ExcludeCombine two circles into one shape using CombinedGeometry: Exclude
8.Combine GeometryCombine Geometry
9.LineGeometry for PathLineGeometry for Path
10.EllipseGeometry for PathEllipseGeometry for Path
11.BezierSegment for a PathBezierSegment for a Path
12.Put EllipseGeometry to GeometryGroupPut EllipseGeometry to GeometryGroup
13.Put RectangleGeometry to GeometryGroupPut RectangleGeometry to GeometryGroup
14.Path based on GeometryGroup ResourcePath based on GeometryGroup Resource
15.GeometryDrawing.BrushGeometryDrawing.Brush
16.GeometryDrawing.PenGeometryDrawing.Pen
17.GeometryDrawing with 2 PathFiguresGeometryDrawing with 2 PathFigures
18.GeometryGroup and DrawingImageGeometryGroup and DrawingImage
19.GeometryDrawing insize a DrawingGroupGeometryDrawing insize a DrawingGroup
20.Use the StreamGeometry mini-language to create polylineUse the StreamGeometry mini-language to create polyline
21.Create a PathGeometry using the PathFigureCollection mini-language.Create a PathGeometry using the PathFigureCollection mini-language.
22.PolyLineSegment creates a series of straight lines.PolyLineSegment creates a series of straight lines.
23.LineGeometry vs LineLineGeometry vs Line
24.RectangleGeometry vs RectangleRectangleGeometry vs Rectangle
25.EllipseGeometry vs Ellipse
26.Combine geometries is to use the GeometryGroup objectCombine geometries is to use the GeometryGroup object
27.Geometry GroupGeometry Group
28.GeometryDrawing Pen and GeometryGeometryDrawing Pen and Geometry
29.CombinedGeometry GeometryCombineMode="Union"CombinedGeometry GeometryCombineMode=
30.Reusing GeometryReusing Geometry
31.Converting text to geometryConverting text to geometry
32.Use a PathGeometry object to highlight displayed text.Use a PathGeometry object to highlight displayed text.