From 6888be5aed6b7934eec924510c819f30cef5d028 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Thu, 14 May 2020 18:20:55 -0300 Subject: [PATCH] add staggered test. --- samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml | 5 +++-- samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml index e42ccead86..53cc51bfa8 100644 --- a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml +++ b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml @@ -12,8 +12,9 @@ Stack - Horizontal UniformGrid - Vertical UniformGrid - Horizontal - WrapLayout - Horizontal - WrapLayout - Veritcal + Wrap - Horizontal + Wrap - Veritcal + Staggered - Horizontal diff --git a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs index 8f5d380078..d6d7359f96 100644 --- a/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs +++ b/samples/ControlCatalog/Pages/ItemsRepeaterPage.xaml.cs @@ -90,6 +90,16 @@ namespace ControlCatalog.Pages VerticalSpacing = 20 }; break; + case 6: + _scroller.HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled; + _scroller.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; + _repeater.Layout = new StaggeredLayout + { + ColumnSpacing = 20, + RowSpacing = 20, + DesiredColumnWidth= 250 + }; + break; } }