forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request unoplatform#3876 from MartinZikmund/dev/mazi/tabview
WinUI TabView
- Loading branch information
Showing
122 changed files
with
16,009 additions
and
179 deletions.
There are no files selected for viewing
436 changes: 436 additions & 0 deletions
436
src/SamplesApp/SamplesApp.UITests/Microsoft_UI_Xaml_Controls/TabViewTests/Given_TabView.cs
Large diffs are not rendered by default.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/TabViewTests/TabViewBasicPage.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,43 @@ | ||
<Page | ||
x:Class="UITests.Microsoft_UI_Xaml_Controls.TabViewTests.TabViewBasicPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UITests.Microsoft_UI_Xaml_Controls.TabViewTests" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
xmlns:controls="using:Microsoft.UI.Xaml.Controls" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Grid> | ||
<controls:TabView HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> | ||
<controls:TabViewItem Header="Home" IsClosable="False"> | ||
<controls:TabViewItem.IconSource> | ||
<controls:SymbolIconSource Symbol="Home" /> | ||
</controls:TabViewItem.IconSource> | ||
</controls:TabViewItem> | ||
<controls:TabViewItem Header="Document 1"> | ||
<controls:TabViewItem.IconSource> | ||
<controls:SymbolIconSource Symbol="Document" /> | ||
</controls:TabViewItem.IconSource> | ||
</controls:TabViewItem> | ||
<controls:TabViewItem Header="Document 2"> | ||
<controls:TabViewItem.IconSource> | ||
<controls:SymbolIconSource Symbol="Document" /> | ||
</controls:TabViewItem.IconSource> | ||
</controls:TabViewItem> | ||
<controls:TabViewItem Header="Document 3"> | ||
<controls:TabViewItem.IconSource> | ||
<controls:SymbolIconSource Symbol="Document" /> | ||
</controls:TabViewItem.IconSource> | ||
</controls:TabViewItem> | ||
|
||
<controls:TabView.TabStripHeader> | ||
<Grid x:Name="ShellTitlebarInset" Background="Transparent" /> | ||
</controls:TabView.TabStripHeader> | ||
<controls:TabView.TabStripFooter> | ||
<Grid x:Name="CustomDragRegion" Background="Transparent" /> | ||
</controls:TabView.TabStripFooter> | ||
</controls:TabView> | ||
</Grid> | ||
</Page> |
27 changes: 27 additions & 0 deletions
27
...amplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/TabViewTests/TabViewBasicPage.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,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
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; | ||
using Uno.UI.Samples.Controls; | ||
|
||
namespace UITests.Microsoft_UI_Xaml_Controls.TabViewTests | ||
{ | ||
[Sample("TabView", "WinUI")] | ||
public sealed partial class TabViewBasicPage : Page | ||
{ | ||
public TabViewBasicPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
283 changes: 283 additions & 0 deletions
283
src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/TabViewTests/TabViewPage.xaml
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.