-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.xaml
More file actions
64 lines (64 loc) · 2.99 KB
/
MainPage.xaml
File metadata and controls
64 lines (64 loc) · 2.99 KB
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
56
57
58
59
60
61
62
63
64
<Page x:Class="QuickReturnHeaderListView.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:QuickReturnHeaderListView"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///QuickReturnHeader.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<local:DebugListView x:Name="MyList"
Grid.Row="0"
ItemsSource="{x:Bind ItemsSource, Mode=OneWay}"
ShowsScrollingPlaceholders="False">
<ListView.Header>
<local:QuickReturnHeader x:Name="MyHeader" TargetListViewBase="{x:Bind MyList}">
<Border Padding="0,0,0,2">
<StackPanel Background="#F0F0F0"
BorderBrush="#D2D2D2"
BorderThickness="0,0,0,1"
Padding="12">
<TextBlock Text="Header Line 1" />
<TextBlock Text="Header Line 2" />
<TextBlock Text="Header Line 3" />
<TextBlock Text="Header Line 4" />
<TextBlock Text="Header Line 5" />
<TextBlock Text="Header Line 6" />
<TextBlock Text="Header Line 7" />
</StackPanel>
</Border>
</local:QuickReturnHeader>
</ListView.Header>
<ListView.ItemTemplate>
<DataTemplate x:DataType="local:Item">
<TextBlock Text="{x:Bind Name}" />
</DataTemplate>
</ListView.ItemTemplate>
</local:DebugListView>
<StackPanel Grid.Row="1"
Margin="12"
Orientation="Horizontal">
<Button Name="ToggleQuickReturnButton"
Click="ToggleQuickReturnButton_Click"
Content="Toggle Quick Return" />
<Button Name="ShowHeaderButton"
Margin="16,0,0,0"
Click="ShowHeaderButton_Click"
Content="Show Header" />
<Button Name="ToggleIsStickyButton"
Margin="16,0,0,0"
Click="ToggleIsStickyButton_Click"
Content="Toggle Is Sticky" />
</StackPanel>
</Grid>
</Page>