-
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(calendarview): Added illustration for a discovered CalendarView …
…bug when placed inside a ScrollViewer
- Loading branch information
1 parent
7af5a44
commit 2f2c505
Showing
3 changed files
with
42 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
21 changes: 21 additions & 0 deletions
21
...pp/UITests.Shared/Windows_UI_Xaml_Controls/CalendarView/CalendarView_ScrollingRegion.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,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> |
14 changes: 14 additions & 0 deletions
14
...UITests.Shared/Windows_UI_Xaml_Controls/CalendarView/CalendarView_ScrollingRegion.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.CalendarView | ||
{ | ||
[Sample("Date Picking")] | ||
public sealed partial class CalendarView_ScrollingRegion : Page | ||
{ | ||
public CalendarView_ScrollingRegion() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |