Skip to content

Commit

Permalink
Add InnerLeftContent and InnerRightContent to AutoCompleteBox
Browse files Browse the repository at this point in the history
Port of upstream AvaloniaUI/Avalonia#14610
  • Loading branch information
robloo committed May 7, 2024
1 parent d9a80ed commit b7d1881
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<!--<x:Double x:Key="AutoSuggestBoxLeftButtonMargin">3</x:Double>
<x:Double x:Key="AutoSuggestBoxRightButtonMargin">4</x:Double>-->


<ControlTheme TargetType="AutoCompleteBox" x:Key="{x:Type AutoCompleteBox}">
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Foreground" Value="{DynamicResource TextControlForeground}" />
Expand All @@ -43,13 +42,18 @@
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
CaretIndex="{TemplateBinding CaretIndex, Mode=TwoWay}"
FontSize="{TemplateBinding FontSize}"
FontFamily="{TemplateBinding FontFamily}"
FontWeight="{TemplateBinding FontWeight}"
Padding="{TemplateBinding Padding}"
Margin="0"
DataValidationErrors.Errors="{TemplateBinding (DataValidationErrors.Errors)}"
CornerRadius="{TemplateBinding CornerRadius}"/>
MaxLength="{TemplateBinding MaxLength}"
InnerLeftContent="{TemplateBinding InnerLeftContent}"
InnerRightContent="{TemplateBinding InnerRightContent}"
/>

<Popup Name="PART_Popup"
WindowManagerAddShadowHint="False"
Expand Down

0 comments on commit b7d1881

Please sign in to comment.