~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to test/xaml/test-path-segments-line.xaml

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
 
2
        <Path Stroke="Black" StrokeThickness="2">
 
3
        <Path.Data>
 
4
                <PathGeometry>
 
5
                <PathGeometry.Figures>
 
6
                        <PathFigureCollection>
 
7
                                <PathFigure StartPoint="10,10">
 
8
                                <PathFigure.Segments>
 
9
                                        <PathSegmentCollection>
 
10
                                                <LineSegment Point="110,10" />
 
11
                                        </PathSegmentCollection>
 
12
                                </PathFigure.Segments>
 
13
                                </PathFigure>
 
14
                        </PathFigureCollection>
 
15
                </PathGeometry.Figures>
 
16
                </PathGeometry>
 
17
        </Path.Data>
 
18
        </Path>
 
19
 
 
20
        <!-- abbreviated syntax : L (line) H (horizontal) and V (vertical) -->
 
21
        <Path Stroke="Red" StrokeThickness="1" Data="M 10,20 L 110,20" />
 
22
        <Path Stroke="Green" StrokeThickness="1" Data="M 10,30 H 110" />
 
23
        <Path Stroke="Blue" StrokeThickness="1" Data="M 20,10 V 40" />
 
24
</Canvas>