From fc709c3a0fc9b72b6eec7038b2be3adf8917c036 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 7 Sep 2018 00:51:25 +0200 Subject: [PATCH] Partially fix tab strip orientation. --- src/Avalonia.Controls/TabControl.cs | 2 +- src/Avalonia.Themes.Default/TabControl.xaml | 30 +++++++-------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/src/Avalonia.Controls/TabControl.cs b/src/Avalonia.Controls/TabControl.cs index 043242543b..f81e1560c2 100644 --- a/src/Avalonia.Controls/TabControl.cs +++ b/src/Avalonia.Controls/TabControl.cs @@ -57,7 +57,7 @@ namespace Avalonia.Controls /// The default value for the property. /// private static readonly FuncTemplate DefaultPanel = - new FuncTemplate(() => new WrapPanel { Orientation = Orientation.Horizontal }); + new FuncTemplate(() => new WrapPanel()); internal ItemsPresenter ItemsPresenterPart { get; private set; } diff --git a/src/Avalonia.Themes.Default/TabControl.xaml b/src/Avalonia.Themes.Default/TabControl.xaml index 1e5b5c8841..e551b2e841 100644 --- a/src/Avalonia.Themes.Default/TabControl.xaml +++ b/src/Avalonia.Themes.Default/TabControl.xaml @@ -24,7 +24,6 @@ + - - +