Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PullToRefreshSamplePage.xaml
<Page x:Class="PullToRefreshSampleApp.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:PullToRefreshSampleApp"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontSize="24"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<ScrollViewer x:Name="scrollViewer"
HorizontalScrollMode="Disabled"
Loaded="scrollViewer_Loaded"
SizeChanged="scrollViewer_SizeChanged"
VerticalScrollBarVisibility="Hidden"
ViewChanged="scrollViewer_ViewChanged"
ZoomMode="Disabled">
<StackPanel Orientation="Vertical">
<Grid Height="60">
<TextBlock x:Name="textBlock1"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Opacity="0"
Text="refresh..." />
<TextBlock x:Name="textBlock2"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
Opacity="0"
Text="pull to..." />
</Grid>
<ListView x:Name="listView"
Width="{Binding ActualWidth,
ElementName=scrollViewer,
Mode=OneWay}"
Height="{Binding ActualHeight,
ElementName=scrollViewer,
Mode=OneWay}"
ScrollViewer.VerticalScrollBarVisibility="Auto" />
</StackPanel>
</ScrollViewer>
</Grid>
</Page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment