From 0dbe12fef1ffd6a582b6a6196aea111b35ff60ac Mon Sep 17 00:00:00 2001 From: rabbitism Date: Thu, 18 Apr 2024 22:11:36 +0800 Subject: [PATCH] feat: WIP: add inner content. --- demo/Ursa.Demo/Pages/TreeComboBoxDemo.axaml | 1 + src/Ursa/Controls/ComboBox/TreeComboBox.cs | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/demo/Ursa.Demo/Pages/TreeComboBoxDemo.axaml b/demo/Ursa.Demo/Pages/TreeComboBoxDemo.axaml index 5816d12..06d7241 100644 --- a/demo/Ursa.Demo/Pages/TreeComboBoxDemo.axaml +++ b/demo/Ursa.Demo/Pages/TreeComboBoxDemo.axaml @@ -30,6 +30,7 @@ diff --git a/src/Ursa/Controls/ComboBox/TreeComboBox.cs b/src/Ursa/Controls/ComboBox/TreeComboBox.cs index 2424ea4..689ba99 100644 --- a/src/Ursa/Controls/ComboBox/TreeComboBox.cs +++ b/src/Ursa/Controls/ComboBox/TreeComboBox.cs @@ -18,7 +18,7 @@ using Size = Avalonia.Size; namespace Ursa.Controls; [TemplatePart(PartNames.PART_Popup, typeof(Popup))] -public class TreeComboBox: ItemsControl, IClearControl +public class TreeComboBox: ItemsControl, IClearControl, IInnerContentControl, IPopupInnerContent { private Popup? _popup; @@ -293,4 +293,9 @@ public class TreeComboBox: ItemsControl, IClearControl { SelectedItem = null; } + + public object? InnerLeftContent { get; set; } + public object? InnerRightContent { get; set; } + public object? PopupInnerTopContent { get; set; } + public object? PopupInnerBottomContent { get; set; } } \ No newline at end of file