Browse Source

Changed resource name for a default placeholder foreground

Added template binding for the placeholder foreground property to make it customizable from user code
pull/4377/head
Anton Mitsengendler 6 years ago
parent
commit
b04a1f7864
  1. 3
      src/Avalonia.Themes.Default/ComboBox.xaml

3
src/Avalonia.Themes.Default/ComboBox.xaml

@ -25,7 +25,7 @@
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Padding" Value="4" />
<Setter Property="MinHeight" Value="20" />
<Setter Property="PlaceholderForeground" Value="{DynamicResource ComboBoxPlaceHolderForeground}" />
<Setter Property="PlaceholderForeground" Value="{DynamicResource ThemeForegroundBrush}" />
<Setter Property="Template">
<ControlTemplate>
<Border Name="border"
@ -39,6 +39,7 @@
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Margin="{TemplateBinding Padding}"
Text="{TemplateBinding PlaceholderText}"
Foreground="{TemplateBinding PlaceholderForeground}"
IsVisible="{TemplateBinding SelectionBoxItem, Converter={x:Static ObjectConverters.IsNull}}" />
<ContentControl Content="{TemplateBinding SelectionBoxItem}"
ContentTemplate="{TemplateBinding ItemTemplate}"

Loading…
Cancel
Save