Enable compiled bindings
MODIFY
WalletWasabi.Fluent/Views/NavBar/NavBarSearch.axaml
WalletWasabi.Fluent/Views/NavBar/NavBarSearch.axaml
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"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+ 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="Padding" Value="0,0,0,0" />
</Style>
<Style Selector="AutoCompleteBox /template/ Popup#PART_Popup">
- <Setter Property="MaxWidth" Value="{Binding $parent[UserControl].Bounds.Width}" />
+ <Setter Property="MaxWidth" Value="{Binding $parent[UserControl].Bounds.Width}" x:CompileBindings="False" />
<Setter Property="PlacementMode" Value="AnchorAndGravity" />
<Setter Property="PlacementAnchor" Value="Top" />
<Setter Property="PlacementGravity" Value="Top" />
</UserControl.Styles>
<AutoCompleteBox Items="{Binding SearchItems}" FilterMode="ContainsOrdinal" Watermark="Search (Ctrl+Q)">
<AutoCompleteBox.ItemTemplate>
- <DataTemplate>
+ <DataTemplate x:DataType="search:SearchItemViewModel">
<Panel Background="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<i:Interaction.Behaviors>
<ia:EventTriggerBehavior EventName="PointerPressed">
<Panel Width="45" Margin="12,0,0,0" HorizontalAlignment="Left" IsHitTestVisible="False">
<PathIcon HorizontalAlignment="Left">
<PathIcon.Data>
- <Binding Path="." Converter="{x:Static conv:SearchIconConverter.Instance}" />
+ <Binding Converter="{x:Static conv:SearchIconConverter.Instance}" />
</PathIcon.Data>
</PathIcon>
</Panel>

MODIFY
WalletWasabi.Fluent/Views/SearchPageView.axaml
WalletWasabi.Fluent/Views/SearchPageView.axaml
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:WalletWasabi.Fluent.ViewModels"
+ xmlns:search="using:WalletWasabi.Fluent.ViewModels.Search"
xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls"
xmlns:conv="clr-namespace:WalletWasabi.Fluent.Converters"
xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
- <DataTemplate>
+ <DataTemplate x:DataType="search:SearchItemGroup">
<DockPanel>
<Label DataContext="{Binding Category}" Content="{Binding Title}" DockPanel.Dock="Top" />
<ItemsControl HorizontalAlignment="Center" Items="{Binding SearchItems}">
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
- <DataTemplate>
+ <DataTemplate x:DataType="search:SearchItemViewModel">
<Button Classes="option" Command="{Binding OpenCommand}" Height="150" Width="150" Margin="8">
<Panel>
<TextBlock Text="{Binding Title}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0 0 0 15" />

Enable compiled bindings