Path Margin as resource : Path « 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.Date Time
8.Design Patterns
9.Development Class
10.Event
11.File Stream
12.Generics
13.GUI Windows Form
14.Internationalization I18N
15.Language Basics
16.LINQ
17.Network
18.Office
19.Reflection
20.Regular Expressions
21.Security
22.Services Event
23.Thread
24.Web Services
25.Windows
26.Windows Presentation Foundation
27.XML
28.XML LINQ
C# / C Sharp » Windows Presentation Foundation » PathScreenshots 
Path Margin as resource
Path Margin as resource
      

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">

        <StackPanel Orientation="Horizontal">
          <StackPanel.Resources>
            <Style TargetType="Path">
              <Setter Property="Margin" Value="5" />
            </Style>
          </StackPanel.Resources>
        <Path Fill="Cyan" Stroke="Black">
          <Path.Data>
            <PathGeometry>
              <PathGeometry.Figures>
                <PathFigure StartPoint="0,0" IsClosed="True">
                  <LineSegment Point="50,0" />
                  <LineSegment Point="50,50" />
                  <LineSegment Point="0,50" />
                </PathFigure>
              </PathGeometry.Figures>
            </PathGeometry>
          </Path.Data>
        </Path>


        </StackPanel>

</Page>

   
    
    
    
    
    
  
Related examples in the same category
1.Multiple Subpaths with PathFigureMultiple Subpaths with PathFigure
2.Close Path Command with PathFigureClose Path Command with PathFigure
3.Drawn with a Path Shape with Geometry
4.Vertical LineVertical Line
5.Horizontal LineHorizontal Line
6.Cubic Bezier Curve with BezierSegmentCubic Bezier Curve with BezierSegment
7.Line with PathGeometryLine with PathGeometry
8.Elliptical ArcElliptical Arc
9.Quadratic Bezier Curve with PathFigureQuadratic Bezier Curve with PathFigure
10.Creates a composite shape from three geometries. This GeometryGroup has a FillRule of NonZeroCreates a composite shape from three geometries. This GeometryGroup has a FillRule of NonZero
11.Creates a composite shape from three geometriesCreates a composite shape from three geometries
12.Multiple SubpathsMultiple Subpaths
13.Close Path CommandClose Path Command
14.Elliptical Arc PathElliptical Arc Path
15.Vertical Line with PathVertical Line with Path
16.Horizontal Line with PathHorizontal Line with Path
17.Line with PathLine with Path
18.Combines two geometries using the intersect combine modeCombines two geometries using the intersect combine mode
19.Transform Path defined in Resource
20.Difference between CounterClockwise and ClockwiseDifference between CounterClockwise and Clockwise
21.Path gradient and BezierPath gradient and Bezier
22.Path Angle Animated Button
23.Path Animated ButtonPath Animated Button
24.Squaring The CircleSquaring The Circle
25.Single BezierSingle Bezier
26.Overlapping StarsOverlapping Stars
27.Path Mini LanguagePath Mini Language
28.Overlapping RectanglesOverlapping Rectangles
29.Multiple Line SegmentsMultiple Line Segments
30.Figure With Arcs
31.Counterclockwise (default), small arc (default)Counterclockwise (default), small arc (default)
32.Counterclockwise (default), IsLargeArcCounterclockwise (default), IsLargeArc
33.Clockwise, small arc (default)Clockwise, small arc (default)
34.Clockwise, IsLargeArcClockwise, IsLargeArc
35.Eclipse SunEclipse Sun
36.Mini Language Infinity
37.Large ArcSegmentsLarge ArcSegments
38.Small ArcSegmentSmall ArcSegment
39.Bezier Curve with BezierSegmentBezier Curve with BezierSegment
40.PolyBezierSegment DemoPolyBezierSegment Demo
41.Multiple geometriesMultiple geometries
42.Combined geometries GeometryCombineMode=ExcludeCombined geometries GeometryCombineMode=Exclude
43.Path.Data with LineSegmentPath.Data with LineSegment
44.Shorthand Path dataShorthand Path data
45.Path with ShadowPath with Shadow
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.