annotate SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml @ 65:5d0c5cc83a7a

Click event handler added
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sun, 22 Apr 2012 14:21:33 +0100
parents ba89e36631bc
children
rev   line source
62
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1 <UserControl x:Class="SilverlightGlimpse.Test.MainPage"
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
6 d:DesignHeight="300"
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
7 d:DesignWidth="400"
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
8 mc:Ignorable="d">
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
9
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
10 <Grid x:Name="LayoutRoot" Background="White">
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
11 <Grid.RowDefinitions>
64
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
12 <RowDefinition Height="300" />
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
13 <RowDefinition Height="Auto" />
62
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
14 </Grid.RowDefinitions>
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
15
64
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
16 <ListBox x:Name="listbox1">
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
17 <ListBox.ItemTemplate>
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
18 <DataTemplate>
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
19 <Grid x:Name="backgroundGrid"
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
20 Width="40"
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
21 Height="40">
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
22 <Rectangle Fill="Orange" />
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
23 <TextBlock x:Name="LabelForIdProperty"
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
24 HorizontalAlignment="Center"
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
25 FontSize="24"
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
26 Foreground="White"
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
27 Text="{Binding IncorrectPathName}" />
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
28 </Grid>
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
29 </DataTemplate>
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
30 </ListBox.ItemTemplate>
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
31 </ListBox>
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
32
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
33 <Button x:Name="btnThrowException"
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
34 Grid.Row="1"
65
5d0c5cc83a7a Click event handler added
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 64
diff changeset
35 Click="btnThrowException_Click"
64
ba89e36631bc Latest version
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 63
diff changeset
36 Content="Throw Exception" />
63
536498832a79 Latest version before changing bindings to Listbox
Steven Hollidge <stevenhollidge@hotmail.com>
parents: 62
diff changeset
37
62
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
38 </Grid>
810116cd6b8e ErrorWindow working
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
39 </UserControl>