Remove unused NavBarSearch control
MODIFY
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
<Button Classes="NavButton" Command="{Binding DoToggleAction}" IsVisible="{h:Platform {x:Static h:Const.False}, Osx={x:Static h:Const.False}}">
<PathIcon Data="{StaticResource navigation_regular}" Width="16" />
</Button>
- <navbar:NavBarSearch DataContext="{Binding SearchPage}" />
<c:NavBarListBox Items="{Binding TopItems}" SelectedItem="{Binding SelectedItem}" />
<Separator />
</StackPanel>

DELETE
WalletWasabi.Fluent/Views/NavBar/NavBarSearch.axaml
-<UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:conv="using:WalletWasabi.Fluent.Converters"
- xmlns:rx="using:System.Reactive"
- xmlns:i="using:Avalonia.Xaml.Interactivity"
- xmlns:ia="using:Avalonia.Xaml.Interactions.Core"
- xmlns:vm="using:WalletWasabi.Fluent.ViewModels"
- xmlns:search="using:WalletWasabi.Fluent.ViewModels.Search"
- mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="80"
- x:DataType="vm:SearchPageViewModel"
- x:CompileBindings="True"
- x:Class="WalletWasabi.Fluent.Views.NavBar.NavBarSearch" UseLayoutRounding="False">
- <UserControl.Styles>
- <Style Selector="AutoCompleteBox">
- <Setter Property="Margin" Value="12,6,12,6" />
- <Setter Property="Background" Value="{DynamicResource TextControlBackground}" />
- </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>
- <Style Selector="AutoCompleteBox /template/ ListBox#PART_SelectingItemsControl ListBoxItem">
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="Padding" Value="0,0,0,0" />
- </Style>
- <Style Selector="AutoCompleteBox /template/ Popup#PART_Popup">
- <Setter Property="MaxWidth" Value="{Binding $parent[UserControl].Bounds.Width}" x:CompileBindings="False" />
- <Setter Property="PlacementMode" Value="AnchorAndGravity" />
- <Setter Property="PlacementAnchor" Value="Bottom" />
- <Setter Property="PlacementGravity" Value="Bottom" />
- </Style>
- <Style Selector="AutoCompleteBox /template/ TextBox DataValidationErrors">
- <Setter Property="IsVisible" Value="False" />
- </Style>
- </UserControl.Styles>
- <AutoCompleteBox Items="{Binding SearchItems}" FilterMode="ContainsOrdinal" Watermark="Search">
- <AutoCompleteBox.ItemTemplate>
- <DataTemplate x:DataType="search:SearchItemViewModel">
- <Panel Background="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
- <i:Interaction.Behaviors>
- <ia:EventTriggerBehavior EventName="PointerPressed">
- <ia:InvokeCommandAction Command="{Binding OpenCommand}" CommandParameter="{x:Static rx:Unit.Default}" />
- </ia:EventTriggerBehavior>
- </i:Interaction.Behaviors>
- <Panel Width="45" Margin="12,0,0,0" HorizontalAlignment="Left" IsHitTestVisible="False">
- <PathIcon HorizontalAlignment="Left">
- <PathIcon.Data>
- <Binding Converter="{x:Static conv:SearchIconConverter.Instance}" />
- </PathIcon.Data>
- </PathIcon>
- </Panel>
- <TextBlock Text="{Binding Title}" Margin="35 0 0 0" Padding="12" HorizontalAlignment="Left" VerticalAlignment="Center" IsHitTestVisible="False" />
- </Panel>
- </DataTemplate>
- </AutoCompleteBox.ItemTemplate>
- </AutoCompleteBox>
-</UserControl>
\ No newline at end of file

DELETE
WalletWasabi.Fluent/Views/NavBar/NavBarSearch.axaml.cs
-using Avalonia.Controls;
-using Avalonia.Markup.Xaml;
-
-namespace WalletWasabi.Fluent.Views.NavBar
-{
- public class NavBarSearch : UserControl
- {
- public NavBarSearch()
- {
- InitializeComponent();
- }
-
- private void InitializeComponent()
- {
- AvaloniaXamlLoader.Load(this);
- }
- }
-}

Remove unused NavBarSearch control