Make SearchBar handle window resize correctly
MODIFY
WalletWasabi.Fluent/Behaviors/SearchBarBehavior.cs
WalletWasabi.Fluent/Behaviors/SearchBarBehavior.cs
@@ -50,6 +50,14 @@ public class SearchBarBehavior : AttachedToVisualTreeBehavior<Control>
return;
}
+ var flyout = FlyoutBase.GetAttachedFlyout(AssociatedObject);
+ if (flyout is not null)
+ {
+ Observable.FromEventPattern(flyout, nameof(FlyoutBase.Closed))
+ .Subscribe(_ => FocusManager.Instance?.Focus(null))
+ .DisposeWith(disposables);
+ }
+
var visualRoot = AssociatedObject.GetVisualRoot();
if (visualRoot is TopLevel topLevel)

Make SearchBar handle window resize correctly