Skip to content

Commit

Permalink
test(calendarview): Added illustration for a discovered CalendarView …
Browse files Browse the repository at this point in the history
…bug when placed inside a ScrollViewer
  • Loading branch information
carldebilly authored and dr1rrb committed Jun 1, 2021
1 parent 7af5a44 commit 2f2c505
Show file tree
Hide file tree
Showing 3 changed files with 42 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 @@ -1001,6 +1001,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\CalendarView\CalendarView_ScrollingRegion.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\CalendarView\CalendarView_SmallRange.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down Expand Up @@ -4816,6 +4820,9 @@
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\CalendarView\CalendarView_Features.xaml.cs">
<DependentUpon>CalendarView_Features.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\CalendarView\CalendarView_ScrollingRegion.xaml.cs">
<DependentUpon>CalendarView_ScrollingRegion.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\CalendarView\CalendarView_SmallRange.xaml.cs">
<DependentUpon>CalendarView_SmallRange.xaml</DependentUpon>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Page
x:Class="UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_ScrollingRegion"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UITests.Windows_UI_Xaml_Controls.CalendarView"
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 Padding="20">
<StackPanel Spacing="8">
<TextBlock FontSize="16">
The following CalendarView is inside a ScrollViewer
with enough content to force scrolling.
</TextBlock>
<CalendarView x:Name="sut" />
<Border Background="Red" Width="20" Height="7000" />
</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.CalendarView
{
[Sample("Date Picking")]
public sealed partial class CalendarView_ScrollingRegion : Page
{
public CalendarView_ScrollingRegion()
{
this.InitializeComponent();
}
}
}

0 comments on commit 2f2c505

Please sign in to comment.