GeometryCombineMode = Intersect : Geometry « Windows Presentation Foundation « VB.Net Tutorial






<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="Intersect"
        </TextBlock>
        <Path> 
            <Path.Data>
                <CombinedGeometry GeometryCombineMode="Intersect">
                    <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>
WPF Geometry Combine Mode Intersect








16.77.Geometry
16.77.1.GeometryCombineMode = UnionGeometryCombineMode = Union
16.77.2.GeometryCombineMode = IntersectGeometryCombineMode = Intersect
16.77.3.GeometryCombineMode = XorGeometryCombineMode = Xor
16.77.4.GeometryCombineMode = ExcludeGeometryCombineMode = Exclude
16.77.5.Combine two circles into one shape using CombinedGeometry: UnionCombine two circles into one shape using CombinedGeometry: Union
16.77.6.Combine two circles into one shape using CombinedGeometry: XorCombine two circles into one shape using CombinedGeometry: Xor
16.77.7.Combine two circles into one shape using CombinedGeometry: IntersectCombine two circles into one shape using CombinedGeometry: Intersect
16.77.8.Combine two circles into one shape using CombinedGeometry: ExcludeCombine two circles into one shape using CombinedGeometry: Exclude
16.77.9.Combine GeometryCombine Geometry
16.77.10.LineGeometry for PathLineGeometry for Path
16.77.11.EllipseGeometry for PathEllipseGeometry for Path
16.77.12.BezierSegment for a PathBezierSegment for a Path
16.77.13.Put EllipseGeometry to GeometryGroupPut EllipseGeometry to GeometryGroup
16.77.14.Put RectangleGeometry to GeometryGroupPut RectangleGeometry to GeometryGroup
16.77.15.Path based on GeometryGroup ResourcePath based on GeometryGroup Resource
16.77.16.GeometryDrawing.BrushGeometryDrawing.Brush
16.77.17.GeometryDrawing.PenGeometryDrawing.Pen
16.77.18.GeometryDrawing with 2 PathFiguresGeometryDrawing with 2 PathFigures
16.77.19.GeometryGroup and DrawingImageGeometryGroup and DrawingImage
16.77.20.GeometryDrawing insize a DrawingGroupGeometryDrawing insize a DrawingGroup
16.77.21.Use the StreamGeometry mini-language to create polylineUse the StreamGeometry mini-language to create polyline
16.77.22.Create a PathGeometry using the PathFigureCollection mini-language.Create a PathGeometry using the PathFigureCollection mini-language.
16.77.23.PolyLineSegment creates a series of straight lines.PolyLineSegment creates a series of straight lines.
16.77.24.LineGeometry vs LineLineGeometry vs Line
16.77.25.RectangleGeometry vs RectangleRectangleGeometry vs Rectangle
16.77.26.EllipseGeometry vs EllipseEllipseGeometry vs Ellipse
16.77.27.Combine geometries is to use the GeometryGroup objectCombine geometries is to use the GeometryGroup object
16.77.28.Geometry GroupGeometry Group
16.77.29.GeometryDrawing Pen and GeometryGeometryDrawing Pen and Geometry
16.77.30.CombinedGeometry GeometryCombineMode='Union'CombinedGeometry GeometryCombineMode='Union'
16.77.31.Reusing GeometryReusing Geometry
16.77.32.Converting text to geometryConverting text to geometry
16.77.33.Use a PathGeometry object to highlight displayed text.Use a PathGeometry object to highlight displayed text.