fix focus on attach.
MODIFY
WalletWasabi.Fluent/Behaviors/FocusOnAttachedBehavior.cs
WalletWasabi.Fluent/Behaviors/FocusOnAttachedBehavior.cs
using Avalonia;
using Avalonia.Controls;
+using Avalonia.Threading;
namespace WalletWasabi.Fluent.Behaviors
{
@@ -18,7 +19,7 @@ namespace WalletWasabi.Fluent.Behaviors
{
if (IsEnabled)
{
- AssociatedObject?.Focus();
+ Dispatcher.UIThread.Post(() => { AssociatedObject?.Focus(); });
}
}
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveView.axaml
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveView.axaml
</Style>
</AutoCompleteBox.Styles>
<i:Interaction.Behaviors>
- <behaviors:FocusOnAttachedBehavior IsEnabled="True"/>
+ <behaviors:FocusOnAttachedBehavior />
</i:Interaction.Behaviors>
</AutoCompleteBox>
</StackPanel>

fix focus on attach.