Rename LabelsListBox to LabelsItemsPresenter
MODIFY
WalletWasabi.Fluent/App.axaml
WalletWasabi.Fluent/App.axaml
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/TileControl.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/StatusItem.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml" />
- <StyleInclude Source="avares://WalletWasabi.Fluent/Controls/LabelsListBox.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" />

RENAME
WalletWasabi.Fluent/Controls/LabelsListBox.axaml
WalletWasabi.Fluent/Controls/LabelsItemsPresenter.axaml
<Design.PreviewWith>
<Border BorderBrush="Black" BorderThickness="1" Width="250" Height="50">
- <c:LabelsListBox HorizontalAlignment="Left" VerticalAlignment="Center">
- <c:LabelsListBox.Items>
+ <c:LabelsItemsPresenter HorizontalAlignment="Left" VerticalAlignment="Center">
+ <c:LabelsItemsPresenter.Items>
<g:List x:TypeArguments="x:String">
<x:String>Label 1</x:String>
<x:String>Label 2</x:String>
<x:String>Label 3</x:String>
<x:String>Label 4</x:String>
</g:List>
- </c:LabelsListBox.Items>
- </c:LabelsListBox>
+ </c:LabelsItemsPresenter.Items>
+ </c:LabelsItemsPresenter>
</Border>
</Design.PreviewWith>
- <Style Selector="c|LabelsListBox">
+ <Style Selector="c|LabelsItemsPresenter">
<Setter Property="Margin" Value="0" />
<Setter Property="VirtualizationMode" Value="Simple" />
<Setter Property="ItemTemplate">

RENAME
WalletWasabi.Fluent/Controls/LabelsItemsPresenter.cs
WalletWasabi.Fluent/Controls/LabelsItemsPresenter.axaml.cs
@@ -9,7 +9,7 @@ namespace WalletWasabi.Fluent.Controls;
public class LabelsItemsPresenter : ItemsPresenter, IStyleable
{
- Type IStyleable.StyleKey => typeof(ItemsPresenter);
+ Type IStyleable.StyleKey => typeof(LabelsItemsPresenter);
protected override void PanelCreated(IPanel panel)
{

MODIFY
WalletWasabi.Fluent/Views/Dialogs/ConfirmHideAddressView.axaml
WalletWasabi.Fluent/Views/Dialogs/ConfirmHideAddressView.axaml
</c:QuestionControl.IconContent>
<StackPanel Spacing="10">
<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="Do you wish to hide the address with the following labels?" />
- <c:LabelsListBox HorizontalAlignment="Center" Items="{Binding Label}" />
+ <c:LabelsItemsPresenter HorizontalAlignment="Center" Items="{Binding Label}" />
<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="This can not be undone." />
</StackPanel>
</c:QuestionControl>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/LabelsColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/LabelsColumnView.axaml
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Wallets.Advanced.WalletCoins.Columns.LabelsColumnView">
<c:PrivacyContentControl NumberOfPrivacyChars="15" VerticalAlignment="Center" Margin="0 0 7 0">
- <c:LabelsListBox Items="{Binding SmartLabel}" />
+ <c:LabelsItemsPresenter Items="{Binding SmartLabel}" />
</c:PrivacyContentControl>
</UserControl>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/Columns/LabelsColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/Columns/LabelsColumnView.axaml
x:CompileBindings="True">
<c:PrivacyContentControl PrivacyReplacementMode="Text" NumberOfPrivacyChars="15"
Classes="monoSpacedPrivacyReplacement">
- <c:LabelsListBox Items="{Binding Label}"
+ <c:LabelsItemsPresenter Items="{Binding Label}"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</c:PrivacyContentControl>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/Details/TransactionDetailsView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/Details/TransactionDetailsView.axaml
Label="Labels"
TextValue="{Binding Labels}">
<c:PrivacyContentControl NumberOfPrivacyChars="20">
- <c:LabelsListBox Items="{Binding Labels}" />
+ <c:LabelsItemsPresenter Items="{Binding Labels}" />
</c:PrivacyContentControl>
</c:PreviewItem>
</StackPanel>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Receive/Columns/LabelsColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Receive/Columns/LabelsColumnView.axaml
<PathIcon Data="{StaticResource edit_regular}" Classes="addressActionIcon" />
</Button>
</StackPanel>
- <c:LabelsListBox Items="{Binding Label}"
+ <c:LabelsItemsPresenter Items="{Binding Label}"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</DockPanel>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressView.axaml
WalletWasabi.Fluent/Views/Wallets/Receive/ReceiveAddressView.axaml
</c:PrivacyContentControl>
</DockPanel>
<c:PrivacyContentControl PrivacyReplacementMode="Text" NumberOfPrivacyChars="15" HorizontalAlignment="Center">
- <c:LabelsListBox Items="{Binding Labels}" />
+ <c:LabelsItemsPresenter Items="{Binding Labels}" />
</c:PrivacyContentControl>
</StackPanel>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/TransactionSummary.axaml
WalletWasabi.Fluent/Views/Wallets/Send/TransactionSummary.axaml
<!-- Recipient -->
<c:PreviewItem Icon="{StaticResource person_regular}"
Label="will be sent to">
- <c:LabelsListBox Items="{Binding Recipient}"
+ <c:LabelsItemsPresenter Items="{Binding Recipient}"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</c:PreviewItem>
</Button>
<c:PreviewItem Icon="{StaticResource incognito_pathicon}"
Label="other people or companies could know about this">
- <c:LabelsListBox Items="{Binding Labels}"
+ <c:LabelsItemsPresenter Items="{Binding Labels}"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</c:PreviewItem>

Rename LabelsListBox to LabelsItemsPresenter