Use LabelsListBox for PocketSuggestionControl
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PocketSuggestionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PocketSuggestionViewModel.cs
@@ -7,11 +7,9 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send;
public partial class PocketSuggestionViewModel : SuggestionViewModel
{
[AutoNotify] private List<string> _labels;
- [AutoNotify] private List<string> _filteredLabels;
public PocketSuggestionViewModel(SmartLabel currentLabels)
{
- _labels = currentLabels.Take(1).ToList();
- _filteredLabels = currentLabels.Skip(1).ToList();
+ _labels = currentLabels.ToList();
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/PocketSuggestionControl.axaml
WalletWasabi.Fluent/Views/Wallets/Send/PocketSuggestionControl.axaml
<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="Some people or companies could know about this:" />
- <DockPanel LastChildFill="False" HorizontalAlignment="Center">
- <c:TagsBox Padding="0"
- Margin="0"
- MinWidth="0"
- BorderThickness="0"
- DockPanel.Dock="Left"
- IsReadOnly="True"
- Items="{Binding Labels}"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center" />
- <Button Classes="labelFlyout"
- DockPanel.Dock="Left"
- IsVisible="{Binding !!FilteredLabels.Count}"
- Content="..."
- Margin="0 4 0 0">
- <Button.Flyout>
- <Flyout Placement="BottomEdgeAlignedLeft" ShowMode="TransientWithDismissOnPointerMoveAway">
- <c:TagsBox IsReadOnly="True"
- Items="{Binding FilteredLabels}" />
- </Flyout>
- </Button.Flyout>
- <ToolTip.Tip>
- <Panel>
- <c:TagsBox IsReadOnly="True"
- Margin="4,6,0,0"
- Items="{Binding FilteredLabels}" />
- </Panel>
- </ToolTip.Tip>
- </Button>
- </DockPanel>
+ <c:LabelsListBox Items="{Binding Labels}"
+ HorizontalAlignment="Center" />
<TextBlock Text="Control your privacy?" TextWrapping="Wrap" HorizontalAlignment="Center" />

Use LabelsListBox for PocketSuggestionControl