Add initial search box prototype
MODIFY
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls"
xmlns:conv="clr-namespace:WalletWasabi.Fluent.Converters"
xmlns:h="clr-namespace:WalletWasabi.Fluent.Helpers"
+ xmlns:rx="clr-namespace:System.Reactive;assembly=System.Reactive"
+ xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
+ xmlns:ia="clr-namespace:Avalonia.Xaml.Interactions.Core;assembly=Avalonia.Xaml.Interactions"
xmlns:behaviors="clr-namespace:WalletWasabi.Fluent.Behaviors;assembly=WalletWasabi.Fluent"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="WalletWasabi.Fluent.Views.NavBar.NavBar" UseLayoutRounding="False">
<StackPanel DockPanel.Dock="Bottom">
<Separator />
<c:NavBarListBox Items="{Binding BottomItems}" SelectedItem="{Binding SelectedItem}" />
+ <AutoCompleteBox x:Name="SearchAutoCompleteBox" Watermark="Search (Ctrl+Q)" Items="{Binding SearchItems}">
+ <AutoCompleteBox.Styles>
+ <Style Selector="AutoCompleteBox /template/ TextBox#PART_TextBox">
+ <Setter Property="Background" Value="Transparent" />
+ </Style>
+ <Style Selector="AutoCompleteBox /template/ Border#PART_SuggestionsContainer">
+ <Setter Property="Padding" Value="0" />
+ <Setter Property="BorderThickness" Value="0" />
+ <Setter Property="CornerRadius" Value="0" />
+ </Style>
+ <Style Selector="AutoCompleteBox /template/ ListBox#PART_SelectingItemsControl">
+ <Setter Property="Margin" Value="0" />
+ </Style>
+ </AutoCompleteBox.Styles>
+ <AutoCompleteBox.ItemTemplate>
+ <DataTemplate>
+ <Panel Background="Transparent" Width="{Binding #SearchAutoCompleteBox.Bounds.Width}">
+ <i:Interaction.Behaviors>
+ <ia:EventTriggerBehavior EventName="PointerPressed">
+ <ia:ChangePropertyAction TargetObject="{Binding #SearchAutoCompleteBox}" PropertyName="Text" Value="" />
+ <ia:InvokeCommandAction Command="{Binding OpenCommand}" CommandParameter="{x:Static rx:Unit.Default}" />
+ </ia:EventTriggerBehavior>
+ </i:Interaction.Behaviors>
+ <Panel Width="45" HorizontalAlignment="Left" IsHitTestVisible="False">
+ <PathIcon HorizontalAlignment="Left">
+ <PathIcon.Data>
+ <Binding Path="." Converter="{x:Static conv:SearchIconConverter.Instance}" />
+ </PathIcon.Data>
+ </PathIcon>
+ </Panel>
+ <TextBlock Text="{Binding Title}" Margin="35 0 0 0" IsHitTestVisible="False" />
+ </Panel>
+ </DataTemplate>
+ </AutoCompleteBox.ItemTemplate>
+ </AutoCompleteBox>
</StackPanel>
<c:NavBarTreeView Items="{Binding Items}" SelectedItem="{Binding SelectedItem}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">

Add initial search box prototype