Change RelativeSource by $parent binding
MODIFY
WalletWasabi.Fluent/Controls/LabelsItemsPresenter.axaml
WalletWasabi.Fluent/Controls/LabelsItemsPresenter.axaml
<Setter Property="ItemTemplate">
<DataTemplate>
<Panel Margin="0 0 4 0">
- <Border Classes="label" ToolTip.Tip="{Binding}" BorderBrush="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=c:LabelsItemsPresenter}, Path=BorderBrush}">
+ <Border Classes="label" ToolTip.Tip="{Binding}" BorderBrush="{Binding $parent[c:LabelsItemsPresenter].BorderBrush}">
<TextBlock Text="{Binding}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap"
- Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=c:LabelsItemsPresenter}, Path=Foreground}"
- MaxWidth="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=c:LabelsItemsPresenter}, Path=MaxLabelWidth}" />
+ Foreground="{Binding $parent[c:LabelsItemsPresenter].Foreground}"
+ MaxWidth="{Binding $parent[c:LabelsItemsPresenter].MaxLabelWidth}" />
</Border>
</Panel>
</DataTemplate>
<c:LabelsPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left">
<c:LabelsPanel.EllipsisControl>
<Panel Margin="0 0 0 0">
- <Border Classes="label" BorderBrush="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=c:LabelsItemsPresenter}, Path=BorderBrush}">
+ <Border Classes="label" BorderBrush="{Binding $parent[c:LabelsItemsPresenter].BorderBrush}">
<ToolTip.Tip>
<Panel>
<c:TagsBox IsReadOnly="True"
<TextBlock Text="..."
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap"
- Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=c:LabelsItemsPresenter}, Path=Foreground}"
+ Foreground="{Binding $parent[c:LabelsItemsPresenter].Foreground}"
MaxWidth="120" />
</Border>
</Panel>

Change RelativeSource by $parent binding