Disable selection animation for now
This commit is contained in:
@@ -5,6 +5,8 @@ namespace Wallet.Avalonia;
|
||||
public partial class AllNavigationView :
|
||||
NavigationViewItem
|
||||
{
|
||||
public AllNavigationView() =>
|
||||
public AllNavigationView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Toolkit.Avalonia;
|
||||
using Toolkit.Foundation;
|
||||
using FluentAvalonia.Core;
|
||||
|
||||
namespace Wallet.Avalonia;
|
||||
|
||||
@@ -20,6 +21,8 @@ public partial class App : Application
|
||||
public override void Initialize()
|
||||
{
|
||||
this.EnableHotReload();
|
||||
FAUISettings.SetAnimationsEnabledAtAppLevel(false);
|
||||
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,14 +2,23 @@
|
||||
x:Class="Wallet.Avalonia.MainView"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
||||
xmlns:vm="using:Wallet"
|
||||
x:DataType="vm:MainViewModel">
|
||||
<NavigationView
|
||||
FooterMenuItemsSource="{Binding Footer}"
|
||||
IsSettingsVisible="False"
|
||||
MenuItemTemplate="{Binding Template}"
|
||||
MenuItemsSource="{Binding SelectedItem, Mode=TwoWay}"
|
||||
MenuItemsSource="{Binding SelectedItem}"
|
||||
SelectionFollowsFocus="True">
|
||||
<Interaction.Behaviors>
|
||||
<DataTriggerBehavior Binding="{ReflectionBinding SelectedItem.IsOpened}" Value="True">
|
||||
<InvokeNavigationViewItemAction />
|
||||
</DataTriggerBehavior>
|
||||
<DataTriggerBehavior Binding="{ReflectionBinding SelectedItem.IsSelected}" Value="True">
|
||||
<InvokeNavigationViewItemAction />
|
||||
</DataTriggerBehavior>
|
||||
</Interaction.Behaviors>
|
||||
<NavigationView.PaneCustomContent>
|
||||
<Grid RowDefinitions="*,Auto">
|
||||
<ListBox
|
||||
@@ -19,6 +28,9 @@
|
||||
ItemTemplate="{ReflectionBinding Template}"
|
||||
ItemsSource="{Binding}"
|
||||
SelectedItem="{Binding SelectedItem}">
|
||||
<ListBox.Resources>
|
||||
<StaticResource x:Key="ListViewItemBackgroundSelected" ResourceKey="SubtleFillColorTransparentBrush" />
|
||||
</ListBox.Resources>
|
||||
<ListBox.Styles>
|
||||
<Style Selector="ListBoxItem">
|
||||
<Setter Property="MinWidth" Value="0" />
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.1.0-rc1" />
|
||||
<PackageReference Include="Avalonia.Labs.Controls" Version="11.0.10.1" />
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
||||
<PackageReference Include="FluentAvaloniaUI" Version="2.1.0-preview5" />
|
||||
<PackageReference Include="FluentAvaloniaUI" Version="2.1.0-preview6" />
|
||||
<PackageReference Include="System.Reactive" Version="6.0.1" />
|
||||
<PackageReference Include="Avalonia.Xaml.Behaviors" Version="11.1.0-rc1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0-preview.5.24306.7" />
|
||||
|
||||
Reference in New Issue
Block a user