Skip to content

Commit

Permalink
Add test pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed May 5, 2020
1 parent 58d1fd7 commit 83c628a
Show file tree
Hide file tree
Showing 13 changed files with 151 additions and 51 deletions.
Binary file added test/ModernWpfTestApp/Assets/FlipView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ModernWpfTestApp/Assets/TimePicker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/ModernWpfTestApp/Assets/ToolTip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions test/ModernWpfTestApp/FlipViewPage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<local:TestPage
x:Class="MUXControlsTestApp.FlipViewPage"
x:Name="FlipViewTestPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MUXControlsTestApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:contract7Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation">

<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="12">
<TextBlock Text="Sample FlipViews" Style="{ThemeResource StandardGroupHeader}"/>
<StackPanel Orientation="Horizontal">
<FlipView Width="200" Height="200" AutomationProperties.Name="Horizontal FlipView"
contract7Present:CornerRadius="2">
<Grid Background="Red" AutomationProperties.Name="Red panel"/>
<Grid Background="Green" AutomationProperties.Name="Green panel"/>
<Grid Background="Blue" AutomationProperties.Name="Blue panel"/>
</FlipView>

<FlipView Width="200" Height="200"
Margin="20, 0, 0, 0" AutomationProperties.Name="Vertical FlipView"
contract7Present:CornerRadius="2"
Orientation="Vertical">
<FlipView.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</FlipView.ItemsPanel>
<Grid Background="Red" AutomationProperties.Name="Red panel"/>
<Grid Background="Green" AutomationProperties.Name="Green panel"/>
<Grid Background="Blue" AutomationProperties.Name="Blue panel"/>
</FlipView>
</StackPanel>
</StackPanel>
</local:TestPage>
14 changes: 14 additions & 0 deletions test/ModernWpfTestApp/FlipViewPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

namespace MUXControlsTestApp
{
[TopLevelTestPage(Name = "FlipView", Icon = "FlipView.png")]
public sealed partial class FlipViewPage : TestPage
{
public FlipViewPage()
{
this.InitializeComponent();
}
}
}
15 changes: 15 additions & 0 deletions test/ModernWpfTestApp/ScrollBarPage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<local:TestPage
x:Class="MUXControlsTestApp.ScrollBarPage"
x:Name="ScrollBarTestPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MUXControlsTestApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="12">
<ScrollBar/>
</Grid>
</local:TestPage>
14 changes: 14 additions & 0 deletions test/ModernWpfTestApp/ScrollBarPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

namespace MUXControlsTestApp
{
[TopLevelTestPage(Name = "ScrollBar")]
public sealed partial class ScrollBarPage : TestPage
{
public ScrollBarPage()
{
this.InitializeComponent();
}
}
}
31 changes: 0 additions & 31 deletions test/ModernWpfTestApp/ScrollViewerPage.xaml

This file was deleted.

20 changes: 0 additions & 20 deletions test/ModernWpfTestApp/ScrollViewerPage.xaml.cs

This file was deleted.

20 changes: 20 additions & 0 deletions test/ModernWpfTestApp/TimePickerPage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<local:TestPage
x:Class="MUXControlsTestApp.TimePickerPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MUXControlsTestApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<StackPanel Margin="12" VerticalAlignment="Top">
<TextBlock Text="Sample TimePicker" Style="{ThemeResource StandardGroupHeader}"/>
<StackPanel Orientation="Horizontal">
<TimePicker Margin="0,23,8,0"/>
<TimePicker Header="TimePicker with header"/>
</StackPanel>
</StackPanel>

</local:TestPage>
14 changes: 14 additions & 0 deletions test/ModernWpfTestApp/TimePickerPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

namespace MUXControlsTestApp
{
[TopLevelTestPage(Name = "TimePicker", Icon = "TimePicker.png")]
public sealed partial class TimePickerPage : TestPage
{
public TimePickerPage()
{
this.InitializeComponent();
}
}
}
22 changes: 22 additions & 0 deletions test/ModernWpfTestApp/ToolTipPage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<local:TestPage
x:Class="MUXControlsTestApp.ToolTipPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MUXControlsTestApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<StackPanel Margin="12">
<TextBlock Text="Sample controls with ToolTip set" Style="{ThemeResource StandardGroupHeader}"/>
<Button Content="Button with a simple ToolTip." ToolTipService.ToolTip="Simple ToolTip" Margin="0,0,0,16" />
<TextBlock Text="TextBlock with an offset ToolTip.">
<ToolTipService.ToolTip>
<ToolTip Content="Offset ToolTip." VerticalOffset="-80"/>
</ToolTipService.ToolTip>
</TextBlock>
</StackPanel>

</local:TestPage>
14 changes: 14 additions & 0 deletions test/ModernWpfTestApp/ToolTipPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

namespace MUXControlsTestApp
{
[TopLevelTestPage(Name = "ToolTip", Icon = "ToolTip.png")]
public sealed partial class ToolTipPage : TestPage
{
public ToolTipPage()
{
this.InitializeComponent();
}
}
}

0 comments on commit 83c628a

Please sign in to comment.