diff --git a/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml index 614efa4..f2afbb7 100644 --- a/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml @@ -28,7 +28,7 @@ @@ -69,12 +69,12 @@ diff --git a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml index 2ba6d0b..5fc0ae7 100644 --- a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml @@ -23,36 +23,36 @@ + PlaceholderText="Large" /> + PlaceholderText="Default" /> + PlaceholderText="Small" /> + PlaceholderText="Disabled" /> + PlaceholderText="Bordered" /> - + diff --git a/src/Semi.Avalonia/Controls/AutoCompleteBox.axaml b/src/Semi.Avalonia/Controls/AutoCompleteBox.axaml index 3d0411c..391be3d 100644 --- a/src/Semi.Avalonia/Controls/AutoCompleteBox.axaml +++ b/src/Semi.Avalonia/Controls/AutoCompleteBox.axaml @@ -4,11 +4,12 @@ - + + @@ -23,7 +24,8 @@ Theme="{DynamicResource NonErrorTextBox}" InnerLeftContent="{TemplateBinding InnerLeftContent}" InnerRightContent="{TemplateBinding InnerRightContent}" - Watermark="{TemplateBinding Watermark}" /> + PlaceholderForeground="{TemplateBinding PlaceholderForeground}" + PlaceholderText="{TemplateBinding PlaceholderText}" /> + PlaceholderForeground="{TemplateBinding PlaceholderForeground}" + PlaceholderText="{TemplateBinding PlaceholderText}" /> + @@ -52,8 +53,9 @@ CornerRadius="{TemplateBinding CornerRadius}" Foreground="{TemplateBinding Foreground}" Theme="{DynamicResource NonErrorTextBox}" - UseFloatingWatermark="{TemplateBinding UseFloatingWatermark}" - Watermark="{TemplateBinding Watermark}"> + UseFloatingPlaceholder="{TemplateBinding UseFloatingPlaceholder}" + PlaceholderForeground="{TemplateBinding PlaceholderForeground}" + PlaceholderText="{TemplateBinding PlaceholderText}">