cleaner way to move the binding to the input field
MODIFY
WalletWasabi.Fluent/Controls/TagsBox.axaml
WalletWasabi.Fluent/Controls/TagsBox.axaml
<c:ConcatenatingWrapPanel.ConcatenatedChildren>
<AutoCompleteBox x:Name="PART_AutoCompleteBox"
Items="{Binding #PART_DockPanel.TemplatedParent.Suggestions}"
- FilterMode="StartsWith">
- <AutoCompleteBox.Styles>
- <Style Selector="AutoCompleteBox /template/ TextBox">
- <Setter Property="MaxLength" Value="{Binding #PART_DockPanel.TemplatedParent.MaxTextLength}" />
- </Style>
- </AutoCompleteBox.Styles>
- </AutoCompleteBox>
+ FilterMode="StartsWith"/>
</c:ConcatenatingWrapPanel.ConcatenatedChildren>
</c:ConcatenatingWrapPanel>
</ItemsPanelTemplate>
<Setter Property="Margin" Value="0" />
<Setter Property="Focusable" Value="True" />
<Setter Property="KeyboardNavigation.IsTabStop" Value="True" />
+ <Setter Property="MaxLength" Value="{Binding Path=MaxTextLength, RelativeSource={RelativeSource AncestorType={x:Type c:TagsBox}}}" />
</Style>
<Style Selector="c|TagsBox AutoCompleteBox /template/ TextBox">

cleaner way to move the binding to the input field