added samples
[windows-sources.git] / sdk / samples / WPFSamples / DrawingWithShapeElements / csharp / polylineexample.xaml
blobc7e9b235f7e57a8ea4c916d80c9a1f9a2ff71995
1 <!-- This example shows how to draw Polyline elements. -->
2 <Page     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     x:Class="Microsoft.Samples.Graphics.PolylineExample"
5     WindowTitle="Polyline Example">
6 <StackPanel>
7   <Border>
8     <Border.Background>
9       <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
10         <LinearGradientBrush.GradientStops>
11           <GradientStop Color="#CCCCFF" Offset="0" />
12           <GradientStop Color="AliceBlue" Offset="0.25" />
13         </LinearGradientBrush.GradientStops>
14       </LinearGradientBrush>
15     </Border.Background>
16     <TextBlock Margin="10" HorizontalAlignment="Left"> 
17       Polyline Examples
18     </TextBlock>
19   </Border>    
21   <StackPanel Margin="10">
22     <Border Style="{StaticResource MyGridBorderStyle}">
23       <Canvas Height="400" Width="400">
26         <Polyline
27           Points="10,110 60,10 110,110"
28           Stroke="Black"
29           StrokeThickness="4" />
31         <Polyline
32           Points="10,110 110,110 110,10"
33           Stroke="Black"
34           StrokeThickness="4"
35           Canvas.Left="150" />
38         </Canvas>
39       </Border>
40     </StackPanel>
41   </StackPanel>
42 </Page>