feat: WIP: add inner content.

This commit is contained in:
rabbitism
2024-04-18 22:11:36 +08:00
parent 50be089b4e
commit 0dbe12fef1
2 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
</u:TreeComboBox>
<u:TreeComboBox
Width="300"
Watermark="Please select an item. "
HorizontalAlignment="Left"
SelectedItem="{Binding SelectedItem}"
ItemsSource="{Binding Items}">

View File

@@ -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; }
}