feat: implement inner content interface.
This commit is contained in:
@@ -511,5 +511,23 @@ public partial class MultiAutoCompleteBox
|
||||
{
|
||||
get => GetValue(InnerRightContentProperty);
|
||||
set => SetValue(InnerRightContentProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<object?> PopupInnerTopContentProperty = AvaloniaProperty.Register<MultiAutoCompleteBox, object?>(
|
||||
nameof(PopupInnerTopContent));
|
||||
|
||||
public object? PopupInnerTopContent
|
||||
{
|
||||
get => GetValue(PopupInnerTopContentProperty);
|
||||
set => SetValue(PopupInnerTopContentProperty, value);
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<object?> PopupInnerBottomContentProperty = AvaloniaProperty.Register<MultiAutoCompleteBox, object?>(
|
||||
nameof(PopupInnerBottomContent));
|
||||
|
||||
public object? PopupInnerBottomContent
|
||||
{
|
||||
get => GetValue(PopupInnerBottomContentProperty);
|
||||
set => SetValue(PopupInnerBottomContentProperty, value);
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ namespace Ursa.Controls;
|
||||
[TemplatePart(ElementSelectionAdapter, typeof(ISelectionAdapter))]
|
||||
[TemplatePart(ElementTextBox, typeof(TextBox))]
|
||||
[PseudoClasses(":dropdownopen")]
|
||||
public partial class MultiAutoCompleteBox : TemplatedControl, IInnerContentControl
|
||||
public partial class MultiAutoCompleteBox : TemplatedControl, IInnerContentControl, IPopupInnerContent
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the name of the selection adapter TemplatePart.
|
||||
|
||||
Reference in New Issue
Block a user