-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1981 from southworkscom/feature/1946
Deprecating PullToRefreshListView for controls available in next Windows release
- Loading branch information
Showing
9 changed files
with
239 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
....Uwp.UI.Controls/PullToRefreshListView/PullToRefreshListViewRefreshContainerTemplate.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Microsoft.Toolkit.Uwp.UI.Controls"> | ||
|
||
<ControlTemplate x:Key="PullToRefreshListViewRefreshContainerTemplate" TargetType="local:PullToRefreshListView"> | ||
<Border x:Name="Root" | ||
Background="{TemplateBinding Background}" | ||
BorderBrush="{TemplateBinding BorderBrush}" | ||
BorderThickness="{TemplateBinding BorderThickness}"> | ||
<Grid> | ||
<RefreshContainer x:Name="RefreshContainer"> | ||
<ScrollViewer x:Name="ScrollViewer" | ||
AutomationProperties.AccessibilityView="Raw" | ||
BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}" | ||
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" | ||
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" | ||
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" | ||
IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" | ||
IsHorizontalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsHorizontalScrollChainingEnabled}" | ||
IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" | ||
IsVerticalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsVerticalScrollChainingEnabled}" | ||
TabNavigation="{TemplateBinding TabNavigation}" | ||
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" | ||
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" | ||
ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}"> | ||
<ItemsPresenter x:Name="ItemsPresenter" | ||
Padding="{TemplateBinding Padding}" | ||
Footer="{TemplateBinding Footer}" | ||
FooterTemplate="{TemplateBinding FooterTemplate}" | ||
FooterTransitions="{TemplateBinding FooterTransitions}" | ||
Header="{TemplateBinding Header}" | ||
HeaderTemplate="{TemplateBinding HeaderTemplate}" | ||
HeaderTransitions="{TemplateBinding HeaderTransitions}" /> | ||
</ScrollViewer> | ||
</RefreshContainer> | ||
</Grid> | ||
|
||
</Border> | ||
</ControlTemplate> | ||
</ResourceDictionary> |
Oops, something went wrong.