From b7bb635c80cfedd2951b5daced726b9174ef4e12 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Sun, 24 Oct 2021 13:24:37 -0400 Subject: [PATCH 1/7] Add missing background to the presenters and popup roots --- src/Avalonia.Themes.Default/FlyoutPresenter.xaml | 2 +- src/Avalonia.Themes.Default/MenuFlyoutPresenter.xaml | 2 +- src/Avalonia.Themes.Default/PopupRoot.xaml | 1 + src/Avalonia.Themes.Fluent/Controls/PopupRoot.xaml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Themes.Default/FlyoutPresenter.xaml b/src/Avalonia.Themes.Default/FlyoutPresenter.xaml index 95f48e6c29..3bc5e085ff 100644 --- a/src/Avalonia.Themes.Default/FlyoutPresenter.xaml +++ b/src/Avalonia.Themes.Default/FlyoutPresenter.xaml @@ -2,7 +2,7 @@ diff --git a/src/Avalonia.Themes.Default/PopupRoot.xaml b/src/Avalonia.Themes.Default/PopupRoot.xaml index ef6574c142..92344fb130 100644 --- a/src/Avalonia.Themes.Default/PopupRoot.xaml +++ b/src/Avalonia.Themes.Default/PopupRoot.xaml @@ -2,6 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Selector="PopupRoot"> + diff --git a/src/Avalonia.Themes.Fluent/Controls/OverlayPopupHost.xaml b/src/Avalonia.Themes.Fluent/Controls/OverlayPopupHost.xaml index c0c56f2ff3..5d9d04d218 100644 --- a/src/Avalonia.Themes.Fluent/Controls/OverlayPopupHost.xaml +++ b/src/Avalonia.Themes.Fluent/Controls/OverlayPopupHost.xaml @@ -6,16 +6,13 @@ - - - - - - + + + From 069f299b8a78e3bcadd52bb5bfc18429ff7fe4a0 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Sun, 24 Oct 2021 13:25:17 -0400 Subject: [PATCH 3/7] Remove duplicated CornerRadius --- src/Avalonia.Controls/Flyouts/MenuFlyoutPresenter.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Avalonia.Controls/Flyouts/MenuFlyoutPresenter.cs b/src/Avalonia.Controls/Flyouts/MenuFlyoutPresenter.cs index 3a45c85c70..b1d3df9ddd 100644 --- a/src/Avalonia.Controls/Flyouts/MenuFlyoutPresenter.cs +++ b/src/Avalonia.Controls/Flyouts/MenuFlyoutPresenter.cs @@ -8,15 +8,6 @@ namespace Avalonia.Controls { public class MenuFlyoutPresenter : MenuBase { - public static readonly StyledProperty CornerRadiusProperty = - Border.CornerRadiusProperty.AddOwner(); - - public CornerRadius CornerRadius - { - get => GetValue(CornerRadiusProperty); - set => SetValue(CornerRadiusProperty, value); - } - public MenuFlyoutPresenter() :base(new DefaultMenuInteractionHandler(true)) { From 3bf4acce30a5270fe954c987ff4055567e45bacd Mon Sep 17 00:00:00 2001 From: Max Katz Date: Sun, 24 Oct 2021 13:32:13 -0400 Subject: [PATCH 4/7] Add missing background to the popup controls --- src/Avalonia.Themes.Default/AutoCompleteBox.xaml | 3 ++- src/Avalonia.Themes.Default/ComboBox.xaml | 3 ++- src/Avalonia.Themes.Default/ContextMenu.xaml | 1 + src/Avalonia.Themes.Default/MenuItem.xaml | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.Themes.Default/AutoCompleteBox.xaml b/src/Avalonia.Themes.Default/AutoCompleteBox.xaml index fe4cd48e72..fac8ca51f8 100644 --- a/src/Avalonia.Themes.Default/AutoCompleteBox.xaml +++ b/src/Avalonia.Themes.Default/AutoCompleteBox.xaml @@ -21,7 +21,8 @@ MaxHeight="{TemplateBinding MaxDropDownHeight}" PlacementTarget="{TemplateBinding}" IsLightDismissEnabled="True"> - - diff --git a/src/Avalonia.Themes.Default/ContextMenu.xaml b/src/Avalonia.Themes.Default/ContextMenu.xaml index 0df4866184..987b72aaa2 100644 --- a/src/Avalonia.Themes.Default/ContextMenu.xaml +++ b/src/Avalonia.Themes.Default/ContextMenu.xaml @@ -1,4 +1,5 @@