Shape Exclude : vb « Windows Presentation Foundation « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Design Patterns
8.Development Class
9.Event
10.File Stream
11.Generics
12.GUI Windows Form
13.Language Basics
14.LINQ
15.Network
16.Office
17.Reflection
18.Regular Expressions
19.Security
20.Services Event
21.Thread
22.Web Services
23.Windows
24.Windows Presentation Foundation
25.XML
26.XML LINQ
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source
C# / C Sharp » Windows Presentation Foundation » vbScreenshots 
Shape Exclude
Shape Exclude
     
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.Samples.Graphics.RectangleExample"
    Title="Example">
  <Window.Resources>
    <RectangleGeometry x:Key="rect" Rect="0 0 100 100"></RectangleGeometry>
    <EllipseGeometry x:Key="ellipse" Center="85 50" RadiusX="65" RadiusY="35"></EllipseGeometry>
  </Window.Resources>    
  <Canvas>
      <Path Grid.Row="3" Fill="Yellow" Stroke="Blue" Margin="5">
        <Path.Data>
          <CombinedGeometry GeometryCombineMode="Exclude"
            CombinedGeometry.Geometry1="{StaticResource rect}"
            CombinedGeometry.Geometry2="{StaticResource ellipse}">
          </CombinedGeometry>                  
        </Path.Data>
      </Path>
      <TextBlock Margin="10" VerticalAlignment="Center">Exclude</TextBlock>
      

  </Canvas>
</Window>

   
    
    
    
    
  
Related examples in the same category
1.RotateRotate
2.TranslateTranslate
3.Gradient brushes within a DrawingBrushGradient brushes within a DrawingBrush
4.Applies a RotateTransform to the DrawingBrush's RelativeTransform propertyApplies a RotateTransform to the DrawingBrush's RelativeTransform property
5.Style resource with predefined static resourceStyle resource with predefined static resource
6.The Opacity Mask Use the opacity mask brush as a fill to show what it looks likeThe Opacity Mask Use the opacity mask brush as a fill to show what it looks like
7.Desktop to AppWorkspaceDesktop to AppWorkspace
8.StackPanel.Orientation=VerticalStackPanel.Orientation=Vertical
9.Line Joins MiterLine Joins Miter
10.Reference SystemColorsReference SystemColors
11.Document StylesDocument Styles
12.Multiple SoundsMultiple Sounds
13.Animated Text TransformAnimated Text Transform
14.Discrete Point JumpsDiscrete Point Jumps
15.Resource LookupResource Lookup
16.Horizontal Linear Gradient and GradientStopHorizontal Linear Gradient and GradientStop
17.Reflected GradientReflected Gradient
18.Multicolored GradientMulticolored Gradient
19.Shape UnionShape Union
20.Shape XorShape Xor
21.A Delay of 0 and Interval of 1 make this a fast slider.A Delay of 0 and Interval of 1 make this a fast slider.
22.Normal Slider (Max=100, Val=10)Normal Slider (Max=100, Val=10)
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.