<UserControl
    x:Class="Wallet.Avalonia.SearchWalletActionView"
    xmlns="https://github.com/avaloniaui"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm="using:Wallet"
    x:DataType="vm:SearchWalletActionViewModel">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.ThemeDictionaries>
                <ResourceDictionary x:Key="Light">
                    <StaticResource x:Key="TextControlBorderBrush" ResourceKey="ControlStrokeColorDefaultBrush" />
                    <StaticResource x:Key="TextControlBorderBrushPointerOver" ResourceKey="ControlStrokeColorDefaultBrush" />
                    <StaticResource x:Key="TextControlBorderBrushFocused" ResourceKey="ControlStrokeColorDefaultBrush" />
                </ResourceDictionary>
                <ResourceDictionary x:Key="Dark">
                    <StaticResource x:Key="TextControlBorderBrush" ResourceKey="ControlStrokeColorDefaultBrush" />
                    <StaticResource x:Key="TextControlBorderBrushPointerOver" ResourceKey="ControlStrokeColorDefaultBrush" />
                    <StaticResource x:Key="TextControlBorderBrushFocused" ResourceKey="ControlStrokeColorDefaultBrush" />
                </ResourceDictionary>
            </ResourceDictionary.ThemeDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <AutoCompleteBox
        MaxWidth="500"
        CornerRadius="16"
        Text="{Binding Value}"
        Watermark="Search">
        <AutoCompleteBox.Styles>
            <Style Selector="AutoCompleteBox /template/ TextBox#PART_TextBox">
                <Setter Property="HorizontalContentAlignment" Value="Center" />
            </Style>
        </AutoCompleteBox.Styles>
        <Interaction.Behaviors>
            <KeyBindingTriggerBehaviour Gesture="Enter">
                <InvokeCommandAction Command="{Binding InvokeCommand}" />
            </KeyBindingTriggerBehaviour>
        </Interaction.Behaviors>
    </AutoCompleteBox>
</UserControl>
