Skip to content

Commit

Permalink
test(scrollviewer): Added a sample to illustrate nested scrollviewer …
Browse files Browse the repository at this point in the history
…problem on Android
  • Loading branch information
carldebilly authored and dr1rrb committed Jun 1, 2021
1 parent 2f2c505 commit d4e2213
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/SamplesApp/UITests.Shared/UITests.Shared.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\ScrollViewerTests\ScrollViewer_Nested.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\ScrollViewerTests\ScrollViewer_Padding.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down Expand Up @@ -5193,6 +5197,9 @@
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\ScrollViewerTests\ScrollViewer_Margin.xaml.cs">
<DependentUpon>ScrollViewer_Margin.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\ScrollViewerTests\ScrollViewer_Nested.xaml.cs">
<DependentUpon>ScrollViewer_Nested.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\ScrollViewerTests\ScrollViewer_Padding.xaml.cs">
<DependentUpon>ScrollViewer_Padding.xaml</DependentUpon>
</Compile>
Expand Down
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>
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();
}
}
}

0 comments on commit d4e2213

Please sign in to comment.