-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainPage.xaml
55 lines (45 loc) · 2.44 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Page
x:Class="ExpressionsDemo.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ExpressionsDemo"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid Width="500" VerticalAlignment="Stretch" HorizontalAlignment="Center">
<Image x:Name="BackgroundImage" Width="500" Height="658" HorizontalAlignment="Center" VerticalAlignment="Top" Source="Assets/tripphoto2.jpg" />
<ListView x:Name="MainListView" Margin="0, 50, 0, 0" Width="500" ScrollViewer.VerticalScrollBarVisibility="Hidden" >
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
<ListView.Header>
<Grid Width="500" Height="400" />
</ListView.Header>
<ListView.ItemTemplate>
<DataTemplate>
<Border BorderBrush="LightGray" BorderThickness="0, 0, 0, 3" Margin="5">
<Grid HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="WhiteSmoke"
Height="65"
Width="500">
<TextBlock Text="{Binding}" FontSize="22" Margin="5" />
</Grid>
</Border>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Grid x:Name="HeaderGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<FontIcon Glyph="" Width="50" Height="50" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="White" />
<TextBlock x:Name="HeaderTextBlock" Grid.Column="1" Margin="0, 5, 0, 0" Height="50" VerticalAlignment="Top" Text="Flight Destinations" Foreground="White" FontSize="28" />
</Grid>
</Grid>
</Grid>
</Page>