Skip to content

Commit

Permalink
Merge pull request unoplatform#3876 from MartinZikmund/dev/mazi/tabview
Browse files Browse the repository at this point in the history
WinUI TabView
  • Loading branch information
jeromelaban authored Oct 13, 2020
2 parents 4bb9ffb + b0d6aa0 commit 52abe4a
Show file tree
Hide file tree
Showing 122 changed files with 16,009 additions and 179 deletions.

Large diffs are not rendered by default.

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>
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();
}
}
}

Large diffs are not rendered by default.

Loading

0 comments on commit 52abe4a

Please sign in to comment.