Handle IsSelectedProperty
MODIFY
WalletWasabi.Fluent/Behaviors/HistoryItemDetailsBehavior.cs
WalletWasabi.Fluent/Behaviors/HistoryItemDetailsBehavior.cs
@@ -25,9 +25,30 @@ namespace WalletWasabi.Fluent.Behaviors
AddAdorner(AssociatedObject);
}
else
+ {
+ if (!AssociatedObject.IsSelected)
+ {
+ RemoveAdorner(AssociatedObject);
+ }
+ }
+ }));
+
+ disposables.Add(
+ AssociatedObject
+ .GetObservable(ListBoxItem.IsSelectedProperty)
+ .Subscribe(x =>
+ {
+ if (x)
+ {
+ AddAdorner(AssociatedObject);
+ }
+ else
+ {
+ if (!AssociatedObject.IsPointerOver)
{
RemoveAdorner(AssociatedObject);
}
+ }
}));
}
}

Handle IsSelectedProperty