Skip to content

Commit

Permalink
feat: Add FlipView Sample Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Jun 14, 2021
1 parent ee2d0b5 commit 530c8a5
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/SamplesApp/UITests.Shared/UITests.Shared.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,14 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Buttons.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Images.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Flyout\Flyout_Content_ThemeResource.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down Expand Up @@ -4966,6 +4974,12 @@
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\DropDownButton\DropDownButtonPage.xaml.cs">
<DependentUpon>DropDownButtonPage.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Buttons.xaml.cs">
<DependentUpon>FlipView_Buttons.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\FlipView\FlipView_Images.xaml.cs">
<DependentUpon>FlipView_Images.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Flyout\FlyoutButtonViewModel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\DatePicker\DatePickerFlyout_Unloaded.xaml.cs">
<DependentUpon>DatePickerFlyout_Unloaded.xaml</DependentUpon>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<UserControl
x:Class="UITests.Windows_UI_Xaml_Controls.FlipView.FlipView_Buttons"
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.FlipView"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">

<StackPanel Orientation="Vertical">
<FlipView Width="100"
Height="100">
<Button Content="Button 1" Width="100" Background="Green" AutomationProperties.Name="Button1" />
<Button Content="Button 2" Width="100" Background="Blue" AutomationProperties.Name="Button2" />
<Button Content="Button 3" Width="100" Background="Red" AutomationProperties.Name="Button3" />
<Button Content="Button 4" Width="100" Background="Fuchsia" AutomationProperties.Name="Button4" />
<Button Content="Button 5" Width="100" Background="Orange" AutomationProperties.Name="Button5" />
</FlipView>
</StackPanel>
</UserControl>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Uno.UI.Samples.Controls;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace UITests.Windows_UI_Xaml_Controls.FlipView
{
[SampleControlInfo("FlipView", "FlipView_Buttons")]
public sealed partial class FlipView_Buttons : UserControl
{
public FlipView_Buttons()
{
this.InitializeComponent();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<UserControl
x:Class="UITests.Windows_UI_Xaml_Controls.FlipView.FlipView_Images"
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.FlipView"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">

<StackPanel Orientation="Vertical">
<FlipView Width="100"
Height="100">
<Image Source="ms-appx:///Assets/ingredient1.png" AutomationProperties.Name="Ingredient1"/>
<Image Source="ms-appx:///Assets/ingredient2.png" AutomationProperties.Name="Ingredient2"/>
<Image Source="ms-appx:///Assets/ingredient3.png" AutomationProperties.Name="Ingredient3"/>
<Image Source="ms-appx:///Assets/ingredient4.png" AutomationProperties.Name="Ingredient4"/>
<Image Source="ms-appx:///Assets/ingredient5.png" AutomationProperties.Name="Ingredient5"/>
</FlipView>
</StackPanel>

</UserControl>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Uno.UI.Samples.Controls;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace UITests.Windows_UI_Xaml_Controls.FlipView
{
[SampleControlInfo("FlipView", "FlipView_Images")]
public sealed partial class FlipView_Images : UserControl
{
public FlipView_Images()
{
this.InitializeComponent();
}
}
}

0 comments on commit 530c8a5

Please sign in to comment.