From d4e2213614c506521b001e73ae46ef176d8fcdfd Mon Sep 17 00:00:00 2001 From: Carl de Billy Date: Wed, 26 May 2021 13:55:08 -0400 Subject: [PATCH] test(scrollviewer): Added a sample to illustrate nested scrollviewer problem on Android --- .../UITests.Shared/UITests.Shared.projitems | 7 ++++++ .../ScrollViewer_Nested.xaml | 22 +++++++++++++++++++ .../ScrollViewer_Nested.xaml.cs | 14 ++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml create mode 100644 src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml.cs diff --git a/src/SamplesApp/UITests.Shared/UITests.Shared.projitems b/src/SamplesApp/UITests.Shared/UITests.Shared.projitems index ae03dcbaa1aa..1c99cee19118 100644 --- a/src/SamplesApp/UITests.Shared/UITests.Shared.projitems +++ b/src/SamplesApp/UITests.Shared/UITests.Shared.projitems @@ -1545,6 +1545,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -5193,6 +5197,9 @@ ScrollViewer_Margin.xaml + + ScrollViewer_Nested.xaml + ScrollViewer_Padding.xaml diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml new file mode 100644 index 000000000000..abfaf267bb44 --- /dev/null +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml.cs b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml.cs new file mode 100644 index 000000000000..9b4b61815d2b --- /dev/null +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml.cs @@ -0,0 +1,14 @@ +using Windows.UI.Xaml.Controls; +using Uno.UI.Samples.Controls; + +namespace UITests.Windows_UI_Xaml_Controls.ScrollViewerTests +{ + [Sample("ScrollViewer")] + public sealed partial class ScrollViewer_Nested : Page + { + public ScrollViewer_Nested() + { + this.InitializeComponent(); + } + } +}