Remove LabelControl and merge into LabelsItemsPresenter style
MODIFY
WalletWasabi.Fluent/App.axaml
WalletWasabi.Fluent/App.axaml
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/StatusItem.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/LabelsItemsPresenter.axaml" />
- <StyleInclude Source="avares://WalletWasabi.Fluent/Controls/LabelControl.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/SuggestionItem.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/ClipboardCopyButton.axaml" />
</Application.Styles>

MODIFY
WalletWasabi.Fluent/Controls/LabelsItemsPresenter.axaml
WalletWasabi.Fluent/Controls/LabelsItemsPresenter.axaml
</Border>
</Design.PreviewWith>
+ <Style Selector="Border.label">
+ <Setter Property="Margin" Value="0" />
+ <Setter Property="Padding" Value="12,5,12,5" />
+ <Setter Property="VerticalAlignment" Value="Top" />
+ <Setter Property="HorizontalAlignment" Value="Left" />
+ <Setter Property="MinHeight" Value="0" />
+ <Setter Property="MinWidth" Value="38" />
+ <Setter Property="BorderThickness" Value="1" />
+ <Setter Property="BorderBrush" Value="{DynamicResource TagsBoxBorderBrush}" />
+ <Setter Property="Background" Value="{DynamicResource InvisibleButtonBackgroundColor}" />
+ <Setter Property="CornerRadius" Value="2" />
+ </Style>
+
<Style Selector="c|LabelsItemsPresenter">
<Setter Property="Margin" Value="0" />
<Setter Property="VirtualizationMode" Value="Simple" />
<Setter Property="ItemTemplate">
<DataTemplate>
- <c:LabelControl />
+ <Panel Margin="0 0 4 0">
+ <Border Classes="label" ToolTip.Tip="{Binding}">
+ <TextBlock Text="{Binding}"
+ TextTrimming="CharacterEllipsis"
+ TextWrapping="NoWrap"
+ MaxWidth="120" />
+ </Border>
+ </Panel>
</DataTemplate>
</Setter>
<Setter Property="ItemsPanel">
<ItemsPanelTemplate>
<c:LabelsPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left">
<c:LabelsPanel.EllipsisControl>
- <c:LabelControl DataContext="..."
- Margin="0 0 0 0">
+ <Panel Margin="0 0 0 0">
+ <Border Classes="label">
<ToolTip.Tip>
<Panel>
<c:TagsBox IsReadOnly="True"
Items="{Binding $parent[c:LabelsPanel].FilteredItems}" />
</Panel>
</ToolTip.Tip>
- </c:LabelControl>
+ <TextBlock Text="..."
+ TextTrimming="CharacterEllipsis"
+ TextWrapping="NoWrap"
+ MaxWidth="120" />
+ </Border>
+ </Panel>
</c:LabelsPanel.EllipsisControl>
</c:LabelsPanel>
</ItemsPanelTemplate>

Remove LabelControl and merge into LabelsItemsPresenter style