1: <UserControl x:Class="MultiSelectLB.MainPage"
2: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4: xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6: mc:Ignorable="d"
7: Width="500"
8: Height="280">
9: <Grid x:Name="LayoutRoot"
10: Background="wheat"
11: Margin="10">
12: <Grid.ColumnDefinitions>
13: <ColumnDefinition Width="1*" />
14: <ColumnDefinition Width="1*" />
15: </Grid.ColumnDefinitions>
16: <Grid.RowDefinitions>
17: <RowDefinition Height="1.5*" />
18: <RowDefinition Height="1*" />
19: <RowDefinition Height="1*" />
20: <RowDefinition Height="*" />
21: </Grid.RowDefinitions>
22:
23: <TextBlock x:Name="Title"
24: Margin="0"
25: Text="Multi-select List Box"
26: Foreground="Red"
27: FontFamily="Georgia"
28: FontSize="32"
29: HorizontalAlignment="Center"
30: VerticalAlignment="Center"
31: Grid.ColumnSpan="2" />
32:
33: <ListBox x:Name="msLB"
34: Margin="5"
35: Grid.Row="1"
36: Grid.Column="0"
37: SelectionMode="Multiple" />
38:
39: <Button x:Name="readyButton"
40: Margin="5"
41: Grid.Row="1"
42: Grid.Column="1"
43: Width="100"
44: Height="35"
45: Content="Click when ready" />
46:
47: <TextBlock x:Name="Message"
48: HorizontalAlignment="Left"
49: Margin="5"
50: Grid.Row="2"
51: Grid.Column="0"
52: Grid.ColumnSpan="2"
53: Foreground="Blue"
54: VerticalAlignment="Bottom"
55: FontFamily="Georgia"
56: FontSize="18" />
57:
58: </Grid>
59: </UserControl>