feat: WIP: add inner content.
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
</u:TreeComboBox>
|
</u:TreeComboBox>
|
||||||
<u:TreeComboBox
|
<u:TreeComboBox
|
||||||
Width="300"
|
Width="300"
|
||||||
|
Watermark="Please select an item. "
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
SelectedItem="{Binding SelectedItem}"
|
SelectedItem="{Binding SelectedItem}"
|
||||||
ItemsSource="{Binding Items}">
|
ItemsSource="{Binding Items}">
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ using Size = Avalonia.Size;
|
|||||||
namespace Ursa.Controls;
|
namespace Ursa.Controls;
|
||||||
|
|
||||||
[TemplatePart(PartNames.PART_Popup, typeof(Popup))]
|
[TemplatePart(PartNames.PART_Popup, typeof(Popup))]
|
||||||
public class TreeComboBox: ItemsControl, IClearControl
|
public class TreeComboBox: ItemsControl, IClearControl, IInnerContentControl, IPopupInnerContent
|
||||||
{
|
{
|
||||||
private Popup? _popup;
|
private Popup? _popup;
|
||||||
|
|
||||||
@@ -293,4 +293,9 @@ public class TreeComboBox: ItemsControl, IClearControl
|
|||||||
{
|
{
|
||||||
SelectedItem = null;
|
SelectedItem = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public object? InnerLeftContent { get; set; }
|
||||||
|
public object? InnerRightContent { get; set; }
|
||||||
|
public object? PopupInnerTopContent { get; set; }
|
||||||
|
public object? PopupInnerBottomContent { get; set; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user