Silverlight/XAML – Learning by Coding

[ stroke_properties.xaml --> Grafik anzeigen ]

 1: <?xml version="1.0" encoding="UTF-8"?>
 2: <!-- coded by Thomas Meinike 02/08 -->
 3: <Canvas xmlns="http://schemas.microsoft.com/client/2007"
 4:         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 5: 
 6:   <Line X1="20" Y1="450" X2="780" Y2="20"
 7:         Stroke="#090"
 8:         StrokeThickness="25"
 9:         StrokeDashArray="1,1"
10:         StrokeStartLineCap="Round"
11:         StrokeEndLineCap="Round"
12:         StrokeDashCap="Triangle"
13:         StrokeDashOffset="0"
14:         StrokeLineJoin="Bevel"
15:         StrokeMiterLimit="1"
16:   />
17: 
18:   <TextBlock Canvas.Left="20" Canvas.Top="20"
19:              FontFamily="Arial" FontSize="16" Foreground="#00C">
20:     <Run Text="Stroke: "/><Run Text="color" Foreground="#F00"/>
21:     <LineBreak/>
22:     <Run Text="StrokeThickness: "/><Run Text="double >= 0" Foreground="#F00"/>
23:     <LineBreak/>
24:     <Run Text="StrokeDashArray: "/><Run Text="S[,G][,S*,G**]*" Foreground="#F00"/>
25:     <LineBreak/>
26:     <Run Text="StrokeStartLineCap: "/><Run Text="Flat, Round, Square, Triangle" Foreground="#F00"/>
27:     <LineBreak/>
28:     <Run Text="StrokeEndLineCap: "/><Run Text="Flat, Round, Square, Triangle" Foreground="#F00"/>
29:     <LineBreak/>
30:     <Run Text="StrokeDashCap: "/><Run Text="Flat, Round, Square, Triangle" Foreground="#F00"/>
31:     <LineBreak/>
32:     <Run Text="StrokeDashOffset: "/><Run Text="double >= 0" Foreground="#F00"/>
33:     <LineBreak/>
34:     <Run Text="StrokeLineJoin: "/><Run Text="Bevel, Miter, Round" Foreground="#F00"/>
35:     <LineBreak/>
36:     <Run Text="StrokeMiterLimit: "/><Run Text="double >= 1" Foreground="#F00"/>
37:     <LineBreak/>
38:   </TextBlock>
39: 
40: </Canvas>

[zum Anfang]