Permalink
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (41 sloc) 1.28 KB
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.Window1"
Title="Visuals Overview Example"
Width="640"
Height="480"
Loaded="WindowLoaded"
Background="Beige"
>
<StackPanel>
<Canvas Name="MyCanvas" Width="640" Height="480"
Background="Cornsilk">
<!-- <SnippetVisualsOverviewSnippet1> -->
<Button Click="OnClick">OK</Button>
<!-- </SnippetVisualsOverviewSnippet1> -->
<!-- <SnippetVisualsOverviewSnippet2> -->
<Button Click="OnClick">
<Image Source="images\greenlight.jpg"></Image>
</Button>
<!-- </SnippetVisualsOverviewSnippet2> -->
</Canvas>
<!-- <SnippetVisualsOverviewSnippet3> -->
<StackPanel>
<Label>User name:</Label>
<TextBox />
<Button Click="OnClick">OK</Button>
</StackPanel>
<!-- </SnippetVisualsOverviewSnippet3> -->
<!-- <SnippetVisualsOverviewSnippet5> -->
<DockPanel>
<ListBox>
<ListBoxItem>Dog</ListBoxItem>
<ListBoxItem>Cat</ListBoxItem>
<ListBoxItem>Fish</ListBoxItem>
</ListBox>
<Button Click="OnClick">OK</Button>
</DockPanel>
<!-- </SnippetVisualsOverviewSnippet5> -->
</StackPanel>
</Window>