fix preview over indicator.
MODIFY
WalletWasabi.Fluent/Behaviors/ListBoxPreviewBehavior.cs
WalletWasabi.Fluent/Behaviors/ListBoxPreviewBehavior.cs
@@ -48,13 +48,15 @@ namespace WalletWasabi.Fluent.Behaviors
{
var visual = AssociatedObject.GetVisualAt(x.EventArgs.GetPosition(AssociatedObject));
- if (visual is IControl control && control.TemplatedParent is ListBoxItem item)
+ var listBoxItem = visual.FindAncestorOfType<ListBoxItem>();
+
+ if (listBoxItem is { })
{
- if (control.DataContext != PreviewItem)
+ if (listBoxItem.DataContext != PreviewItem)
{
ClearPsuedoClasses();
- _previewControl = item;
- PreviewItem = control.DataContext;
+ _previewControl = listBoxItem;
+ PreviewItem = listBoxItem.DataContext;
SetPsuedoClasses();
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
<Setter Property="Background" Value="Transparent" />
</Style>
- <Style Selector="ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter, ListBoxItem:previewitem /template/ ContentPresenter#PART_ContentPresenter">
+ <Style
+ Selector="ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter, ListBoxItem:previewitem /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent" />
</Style>
</ListBox>
</DockPanel>
</Panel>
-
</Flyout>
</FlyoutBase.AttachedFlyout>
<Panel.IsVisible>

fix preview over indicator.