Renamed PlaceholderText to Watermark for MultiComboBox
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<u:MultiComboBox
|
||||
Name="combo"
|
||||
PlaceholderText="Please Select"
|
||||
Watermark="Please Select"
|
||||
InnerLeftContent="Left"
|
||||
InnerRightContent="Right"
|
||||
Classes="ClearButton"
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
IsVisible="False"
|
||||
Opacity="0.3"
|
||||
Text="{TemplateBinding PlaceholderText}" />
|
||||
Text="{TemplateBinding Watermark}" />
|
||||
<ScrollViewer
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
|
||||
@@ -88,13 +88,13 @@ public class MultiComboBox: SelectingItemsControl, IInnerContentControl
|
||||
set => SetValue(SelectedItemTemplateProperty, value);
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<string?> PlaceholderTextProperty =
|
||||
ComboBox.PlaceholderTextProperty.AddOwner<MultiComboBox>();
|
||||
public static readonly StyledProperty<string?> WatermarkProperty =
|
||||
TextBox.WatermarkProperty.AddOwner<MultiComboBox>();
|
||||
|
||||
public string? PlaceholderText
|
||||
public string? Watermark
|
||||
{
|
||||
get => GetValue(PlaceholderTextProperty);
|
||||
set => SetValue(PlaceholderTextProperty, value);
|
||||
get => GetValue(WatermarkProperty);
|
||||
set => SetValue(WatermarkProperty, value);
|
||||
}
|
||||
|
||||
static MultiComboBox()
|
||||
|
||||
Reference in New Issue
Block a user