Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 781 Bytes
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.Window1"
Title="VisualTreeHelper Example"
Width="640"
Height="480"
Background="Beige"
>
<StackPanel Name="myStackPanel_1" Margin="16">
<!-- <SnippetVisualSnippet4> -->
<StackPanel Name="myStackPanel" Margin="8">
<!-- <SnippetVisualSnippet1> -->
<TextBlock Name="myTextBlock" Margin="4" Text="Hello, world" />
<!-- </SnippetVisualSnippet1> -->
</StackPanel>
<!-- </SnippetVisualSnippet4> -->
<Polygon Name="myDrawing" Points="0,0 60,60 120,0"
Fill="Black" />
<Button Name="myButton" Height="24" Width="60" Click="OnClick">OK</Button>
</StackPanel>
</Window>