From 03ec99c048081b0786b40118a5ab05876d24c09e Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Thu, 14 May 2020 18:11:24 -0300 Subject: [PATCH] improve items repeater page. --- .../Pages/ItemsRepeaterPage.xaml | 13 ++++++++++-- .../Pages/ItemsRepeaterPage.xaml.cs | 20 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml index 028a294492..e42ccead86 100644 --- a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml +++ b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml @@ -12,6 +12,8 @@ Stack - Horizontal UniformGrid - Vertical UniformGrid - Horizontal + WrapLayout - Horizontal + WrapLayout - Veritcal @@ -22,9 +24,16 @@ HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"> + + + - - + + + + diff --git a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs index 6fa9fc515e..8f5d380078 100644 --- a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs +++ b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs @@ -70,6 +70,26 @@ namespace ControlCatalog.Pages MinItemHeight = 200, }; break; + case 4: + _scroller.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; + _scroller.VerticalScrollBarVisibility = ScrollBarVisibility.Disabled; + _repeater.Layout = new WrapLayout + { + Orientation = Orientation.Vertical, + HorizontalSpacing = 20, + VerticalSpacing = 20 + }; + break; + case 5: + _scroller.HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled; + _scroller.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; + _repeater.Layout = new WrapLayout + { + Orientation = Orientation.Horizontal, + HorizontalSpacing = 20, + VerticalSpacing = 20 + }; + break; } }