From 9bbcb1bd3393be541bf71b306249cd5faead24a3 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Tue, 14 Jan 2025 00:30:11 +0800 Subject: [PATCH] fix: fix MaxDropDownHeight typo in MultiComboBox. --- src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml | 4 ++-- src/Ursa/Controls/ComboBox/MultiComboBox.cs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml index d69b19e..8a0f0e1 100644 --- a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml @@ -10,7 +10,7 @@ - + @@ -103,7 +103,7 @@ diff --git a/src/Ursa/Controls/ComboBox/MultiComboBox.cs b/src/Ursa/Controls/ComboBox/MultiComboBox.cs index 032db06..a6adb84 100644 --- a/src/Ursa/Controls/ComboBox/MultiComboBox.cs +++ b/src/Ursa/Controls/ComboBox/MultiComboBox.cs @@ -30,9 +30,9 @@ public class MultiComboBox : SelectingItemsControl, IInnerContentControl, IPopup public static readonly StyledProperty IsDropDownOpenProperty = ComboBox.IsDropDownOpenProperty.AddOwner(); - public static readonly StyledProperty MaxDropdownHeightProperty = + public static readonly StyledProperty MaxDropDownHeightProperty = AvaloniaProperty.Register( - nameof(MaxDropdownHeight)); + nameof(MaxDropDownHeight)); public static readonly StyledProperty MaxSelectionBoxHeightProperty = AvaloniaProperty.Register( @@ -89,10 +89,10 @@ public class MultiComboBox : SelectingItemsControl, IInnerContentControl, IPopup set => SetValue(IsDropDownOpenProperty, value); } - public double MaxDropdownHeight + public double MaxDropDownHeight { - get => GetValue(MaxDropdownHeightProperty); - set => SetValue(MaxDropdownHeightProperty, value); + get => GetValue(MaxDropDownHeightProperty); + set => SetValue(MaxDropDownHeightProperty, value); } public double MaxSelectionBoxHeight