Skip to content

Commit

Permalink
Merge branch '2.1.0' of https://github.com/amwx/FluentAvalonia into 2…
Browse files Browse the repository at this point in the history
….1.0
  • Loading branch information
amwx committed May 18, 2024
2 parents f38a9c2 + 655abab commit 89a4c2c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@

<Border Margin="{TemplateBinding BorderThickness}">
<Grid ColumnDefinitions="Auto,*,Auto" >
<ContentPresenter Grid.Column="0"
Grid.ColumnSpan="1"
Content="{TemplateBinding InnerLeftContent}"/>
<DockPanel x:Name="PART_InnerDockPanel"
Grid.Column="1"
Grid.ColumnSpan="1"
Expand Down Expand Up @@ -161,6 +164,9 @@
</Panel>
</ScrollViewer>
</DockPanel>
<ContentPresenter Grid.Column="2"
Grid.ColumnSpan="1"
Content="{TemplateBinding InnerRightContent}"/>
</Grid>
</Border>
</Panel>
Expand Down Expand Up @@ -220,6 +226,8 @@
TextWrapping="NoWrap"
Theme="{StaticResource NumericUpDownTextBoxTheme}"
TextAlignment="{TemplateBinding TextAlignment}"
InnerLeftContent="{TemplateBinding InnerLeftContent}"
InnerRightContent="{TemplateBinding InnerRightContent}"
Classes.spinRight="{TemplateBinding ButtonSpinnerLocation, Converter={StaticResource NUDSpinLocationConverter}}"
Classes.noSpin="{Binding !$parent[NumericUpDown].ShowButtonSpinner}" />
</ButtonSpinner>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@
</Panel>
</ScrollViewer>
</DockPanel>
<ContentPresenter Grid.Column="2" Grid.ColumnSpan="1" Content="{TemplateBinding InnerRightContent}"/>
<ContentPresenter Grid.Column="2"
Grid.ColumnSpan="1"
Content="{TemplateBinding InnerRightContent}"/>
</Grid>
</Border>
</Panel>
Expand Down

0 comments on commit 89a4c2c

Please sign in to comment.