PenLineCap.Flat : Stroke « 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 » StrokeScreenshots 
PenLineCap.Flat
PenLineCap.Flat
   
<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Orientation="Horizontal">
    <StackPanel.Resources>
        <Style TargetType="{x:Type Canvas}">
            <Setter Property="Width" Value="150" />
            <Setter Property="Margin" Value="12" />
        </Style> 

        <Style x:Key="thin">
            <Setter Property="Line.X1" Value="00" />
            <Setter Property="Line.Y1" Value="50" />
            <Setter Property="Line.X2" Value="100" />
            <Setter Property="Line.Y2" Value="50" />
            <Setter Property="Line.Stroke" Value="Black" />
        </Style>

        <Style x:Key="thick"
               BasedOn="{StaticResource thin}">
            <Setter Property="Line.Stroke" Value="LightGray" />
            <Setter Property="Line.StrokeThickness" Value="25" />
        </Style>
    </StackPanel.Resources>

    <Canvas>
        <TextBlock Text="PenLineCap.Flat" />
        <Line Style="{StaticResource thick}"
              StrokeStartLineCap="Flat"
              StrokeEndLineCap="Flat" />
        <Line Style="{StaticResource thin}" />
    </Canvas>

                
</StackPanel>

   
    
    
  
Related examples in the same category
1.StrokeDashArray 4,2 / StrokeDashOffset: 0StrokeDashArray 4,2 / StrokeDashOffset: 0
2.StrokeDashArray>: 4,2 /StrokeDashOffset: 1StrokeDashArray>: 4,2 /StrokeDashOffset: 1
3.StrokeDashArray: 4,2 /StrokeDashOffset: 2StrokeDashArray: 4,2 /StrokeDashOffset: 2
4.StrokeDashArray: 4,1,4,3 /StrokeDashOffset: 1StrokeDashArray: 4,1,4,3 /StrokeDashOffset: 1
5.StrokeDashArray: 1,4,1,2 / StrokeDashOffset: 1StrokeDashArray: 1,4,1,2 / StrokeDashOffset: 1
6.StrokeDashArray: 1 / StrokeDashOffset: 1StrokeDashArray: 1 / StrokeDashOffset: 1
7.PenLineJoin.BevelPenLineJoin.Bevel
8.PenLineJoin.RoundPenLineJoin.Round
9.PenLineJoin.MiterPenLineJoin.Miter
10.PenLineCap.SquarePenLineCap.Square
11.PenLineCap.RoundPenLineCap.Round
12.PenLineCap.TrianglePenLineCap.Triangle
13.StrokeStartLineCap=Round, StrokeEndLineCap=RoundStrokeStartLineCap=Round, StrokeEndLineCap=Round
14.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.