Skip to content

Commit 530c8a5

Browse files
committed
feat: Add FlipView Sample Pages
1 parent ee2d0b5 commit 530c8a5

File tree

5 files changed

+113
-0
lines changed

5 files changed

+113
-0
lines changed

src/SamplesApp/UITests.Shared/UITests.Shared.projitems

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,14 @@
12251225
<SubType>Designer</SubType>
12261226
<Generator>MSBuild:Compile</Generator>
12271227
</Page>
1228+
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Buttons.xaml">
1229+
<SubType>Designer</SubType>
1230+
<Generator>MSBuild:Compile</Generator>
1231+
</Page>
1232+
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Images.xaml">
1233+
<SubType>Designer</SubType>
1234+
<Generator>MSBuild:Compile</Generator>
1235+
</Page>
12281236
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Flyout\Flyout_Content_ThemeResource.xaml">
12291237
<SubType>Designer</SubType>
12301238
<Generator>MSBuild:Compile</Generator>
@@ -4966,6 +4974,12 @@
49664974
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\DropDownButton\DropDownButtonPage.xaml.cs">
49674975
<DependentUpon>DropDownButtonPage.xaml</DependentUpon>
49684976
</Compile>
4977+
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Buttons.xaml.cs">
4978+
<DependentUpon>FlipView_Buttons.xaml</DependentUpon>
4979+
</Compile>
4980+
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Images.xaml.cs">
4981+
<DependentUpon>FlipView_Images.xaml</DependentUpon>
4982+
</Compile>
49694983
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Flyout\FlyoutButtonViewModel.cs" />
49704984
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\DatePicker\DatePickerFlyout_Unloaded.xaml.cs">
49714985
<DependentUpon>DatePickerFlyout_Unloaded.xaml</DependentUpon>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<UserControl
2+
x:Class="UITests.Windows_UI_Xaml_Controls.FlipView.FlipView_Buttons"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:UITests.Windows_UI_Xaml_Controls.FlipView"
6+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8+
mc:Ignorable="d"
9+
d:DesignHeight="300"
10+
d:DesignWidth="400">
11+
12+
<StackPanel Orientation="Vertical">
13+
<FlipView Width="100"
14+
Height="100">
15+
<Button Content="Button 1" Width="100" Background="Green" AutomationProperties.Name="Button1" />
16+
<Button Content="Button 2" Width="100" Background="Blue" AutomationProperties.Name="Button2" />
17+
<Button Content="Button 3" Width="100" Background="Red" AutomationProperties.Name="Button3" />
18+
<Button Content="Button 4" Width="100" Background="Fuchsia" AutomationProperties.Name="Button4" />
19+
<Button Content="Button 5" Width="100" Background="Orange" AutomationProperties.Name="Button5" />
20+
</FlipView>
21+
</StackPanel>
22+
</UserControl>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Runtime.InteropServices.WindowsRuntime;
6+
using Uno.UI.Samples.Controls;
7+
using Windows.Foundation;
8+
using Windows.Foundation.Collections;
9+
using Windows.UI.Xaml;
10+
using Windows.UI.Xaml.Controls;
11+
using Windows.UI.Xaml.Controls.Primitives;
12+
using Windows.UI.Xaml.Data;
13+
using Windows.UI.Xaml.Input;
14+
using Windows.UI.Xaml.Media;
15+
using Windows.UI.Xaml.Navigation;
16+
17+
namespace UITests.Windows_UI_Xaml_Controls.FlipView
18+
{
19+
[SampleControlInfo("FlipView", "FlipView_Buttons")]
20+
public sealed partial class FlipView_Buttons : UserControl
21+
{
22+
public FlipView_Buttons()
23+
{
24+
this.InitializeComponent();
25+
}
26+
}
27+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<UserControl
2+
x:Class="UITests.Windows_UI_Xaml_Controls.FlipView.FlipView_Images"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:UITests.Windows_UI_Xaml_Controls.FlipView"
6+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8+
mc:Ignorable="d"
9+
d:DesignHeight="300"
10+
d:DesignWidth="400">
11+
12+
<StackPanel Orientation="Vertical">
13+
<FlipView Width="100"
14+
Height="100">
15+
<Image Source="ms-appx:///Assets/ingredient1.png" AutomationProperties.Name="Ingredient1"/>
16+
<Image Source="ms-appx:///Assets/ingredient2.png" AutomationProperties.Name="Ingredient2"/>
17+
<Image Source="ms-appx:///Assets/ingredient3.png" AutomationProperties.Name="Ingredient3"/>
18+
<Image Source="ms-appx:///Assets/ingredient4.png" AutomationProperties.Name="Ingredient4"/>
19+
<Image Source="ms-appx:///Assets/ingredient5.png" AutomationProperties.Name="Ingredient5"/>
20+
</FlipView>
21+
</StackPanel>
22+
23+
</UserControl>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Runtime.InteropServices.WindowsRuntime;
6+
using Uno.UI.Samples.Controls;
7+
using Windows.Foundation;
8+
using Windows.Foundation.Collections;
9+
using Windows.UI.Xaml;
10+
using Windows.UI.Xaml.Controls;
11+
using Windows.UI.Xaml.Controls.Primitives;
12+
using Windows.UI.Xaml.Data;
13+
using Windows.UI.Xaml.Input;
14+
using Windows.UI.Xaml.Media;
15+
using Windows.UI.Xaml.Navigation;
16+
17+
namespace UITests.Windows_UI_Xaml_Controls.FlipView
18+
{
19+
[SampleControlInfo("FlipView", "FlipView_Images")]
20+
public sealed partial class FlipView_Images : UserControl
21+
{
22+
public FlipView_Images()
23+
{
24+
this.InitializeComponent();
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)