-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(scrollviewer): Added a sample to illustrate nested scrollviewer …
…problem on Android
- Loading branch information
1 parent
2f2c505
commit d4e2213
Showing
3 changed files
with
43 additions
and
0 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
22 changes: 22 additions & 0 deletions
22
...lesApp/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.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,22 @@ | ||
<Page | ||
x:Class="UITests.Windows_UI_Xaml_Controls.ScrollViewerTests.ScrollViewer_Nested" | ||
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<ScrollViewer Width="400" Height="400" Background="Yellow"> | ||
<StackPanel Padding="20" Spacing="10"> | ||
<Border Background="Blue" Height="200" /> | ||
<ScrollViewer Height="200" Background="Red"> | ||
<StackPanel Padding="20" Spacing="10"> | ||
<Border Background="Green" Height="150" /> | ||
<Border Background="Green" Height="150" /> | ||
</StackPanel> | ||
</ScrollViewer> | ||
<Border Background="Blue" Height="200" /> | ||
</StackPanel> | ||
</ScrollViewer> | ||
</Page> |
14 changes: 14 additions & 0 deletions
14
...App/UITests.Shared/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollViewer_Nested.xaml.cs
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,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(); | ||
} | ||
} | ||
} |