Inherit directly from LabelsItemsPresenter
MODIFY
WalletWasabi.Fluent/Controls/LabelsListBox.axaml
WalletWasabi.Fluent/Controls/LabelsListBox.axaml
</Design.PreviewWith>
<Style Selector="c|LabelsListBox">
- <Setter Property="Template">
- <ControlTemplate>
- <c:LabelsItemsPresenter Name="PART_ItemsPresenter"
- Items="{TemplateBinding Items}"
- Margin="0"
- VirtualizationMode="Simple">
- <ItemsPresenter.ItemTemplate>
+ <Setter Property="Margin" Value="0" />
+ <Setter Property="VirtualizationMode" Value="Simple" />
+ <Setter Property="ItemTemplate">
<DataTemplate>
<c:LabelControl />
</DataTemplate>
- </ItemsPresenter.ItemTemplate>
- <ItemsPresenter.ItemsPanel>
+ </Setter>
+ <Setter Property="ItemsPanel">
<ItemsPanelTemplate>
<c:LabelsPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left">
<c:LabelsPanel.EllipsisControl>
</c:LabelsPanel.EllipsisControl>
</c:LabelsPanel>
</ItemsPanelTemplate>
- </ItemsPresenter.ItemsPanel>
- </c:LabelsItemsPresenter>
- </ControlTemplate>
</Setter>
</Style>
+
</Styles>

Inherit directly from LabelsItemsPresenter