feat: MultiComboBox may support placeholder.

This commit is contained in:
Gehongyan
2024-08-21 13:23:56 +08:00
parent 0c17aec5c3
commit f737e02ac3
3 changed files with 26 additions and 1 deletions

View File

@@ -87,7 +87,16 @@ public class MultiComboBox: SelectingItemsControl, IInnerContentControl
get => GetValue(SelectedItemTemplateProperty);
set => SetValue(SelectedItemTemplateProperty, value);
}
public static readonly StyledProperty<string?> PlaceholderTextProperty =
ComboBox.PlaceholderTextProperty.AddOwner<MultiComboBox>();
public string? PlaceholderText
{
get => GetValue(PlaceholderTextProperty);
set => SetValue(PlaceholderTextProperty, value);
}
static MultiComboBox()
{
FocusableProperty.OverrideDefaultValue<MultiComboBox>(true);