Mercurial > silverbladetech
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 | 12 <RowDefinition Height="300" /> |
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 | 16 <ListBox x:Name="listbox1"> |
17 <ListBox.ItemTemplate> | |
18 <DataTemplate> | |
19 <Grid x:Name="backgroundGrid" | |
20 Width="40" | |
21 Height="40"> | |
22 <Rectangle Fill="Orange" /> | |
23 <TextBlock x:Name="LabelForIdProperty" | |
24 HorizontalAlignment="Center" | |
25 FontSize="24" | |
26 Foreground="White" | |
27 Text="{Binding IncorrectPathName}" /> | |
28 </Grid> | |
29 </DataTemplate> | |
30 </ListBox.ItemTemplate> | |
31 </ListBox> | |
32 | |
33 <Button x:Name="btnThrowException" | |
34 Grid.Row="1" | |
65
5d0c5cc83a7a
Click event handler added
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
64
diff
changeset
|
35 Click="btnThrowException_Click" |
64 | 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> |