Use ExtendedListBox everywhere
MODIFY
WalletWasabi.Gui/Controls/ExtendedListBox.cs
WalletWasabi.Gui/Controls/ExtendedListBox.cs
@@ -11,7 +11,7 @@ namespace WalletWasabi.Gui.Controls
public ExtendedListBox()
{
- AddHandler<PointerPressedEventArgs>(PointerPressedEvent, (sender, e) =>
+ AddHandler(PointerPressedEvent, (sender, e) =>
{
if (e.MouseButton == MouseButton.Left || e.MouseButton == MouseButton.Right)
{

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabView.xaml
<controls:SortingArrow Grid.Column="2" Command="{Binding SortCommand}" Text="Amount (BTC)" SortDirection="{Binding AmountSortDirection}" />
<controls:SortingArrow Grid.Column="3" Command="{Binding SortCommand}" Text="Transaction ID" SortDirection="{Binding TransactionSortDirection}" />
</Grid>
- <ListBox Items="{Binding Transactions}" SelectedItem="{Binding SelectedTransaction, Mode=TwoWay}">
- <ListBox.ItemTemplate>
+ <controls:ExtendedListBox Items="{Binding Transactions}" SelectedItem="{Binding SelectedTransaction, Mode=TwoWay}">
+ <controls:ExtendedListBox.ItemTemplate>
<DataTemplate>
<Grid ColumnDefinitions="40, 160, 150, *">
<Grid.Styles>
</Grid>
</Grid>
</DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
+ </controls:ExtendedListBox.ItemTemplate>
+ </controls:ExtendedListBox>
</DockPanel>
</DockPanel>
</Grid>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
<TextBlock Text="Label:" />
<TextBlock Text="Address:" Grid.Column="1" Margin="20 0 0 0" />
</Grid>
- <ListBox Grid.Row="2" Items="{Binding Addresses}" SelectedItem="{Binding SelectedAddress, Mode=TwoWay}" VirtualizationMode="None">
- <ListBox.ContextMenu>
+ <controls:ExtendedListBox Grid.Row="2" Items="{Binding Addresses}" SelectedItem="{Binding SelectedAddress, Mode=TwoWay}" VirtualizationMode="None">
+ <controls:ExtendedListBox.ContextMenu>
<ContextMenu>
<MenuItem Header="Show QR code" Command="{Binding ShowQrCode}">
<MenuItem.Icon>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
- </ListBox.ContextMenu>
- <ListBox.ItemTemplate>
+ </controls:ExtendedListBox.ContextMenu>
+ <controls:ExtendedListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Expander Name="coinExpander" ExpandDirection="Down" IsExpanded="{Binding IsExpanded}" Classes="coloredExpander" Background="{Binding ElementName=coinExpander, Path=IsExpanded, Converter={StaticResource CoinItemExpanderColorConverter}}">
</Grid>
</Grid>
</DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
+ </controls:ExtendedListBox.ItemTemplate>
+ </controls:ExtendedListBox>
</Grid>
</DockPanel>
</Grid>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
</StackPanel>
</Grid>
<Grid Classes="content">
- <ListBox Items="{Binding Wallets}" SelectedItem="{Binding SelectedWallet, Mode=TwoWay}">
- <ListBox.ItemTemplate>
+ <controls:ExtendedListBox Items="{Binding Wallets}" SelectedItem="{Binding SelectedWallet, Mode=TwoWay}">
+ <controls:ExtendedListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding WalletName}">
<i:Interaction.Behaviors>
</i:Interaction.Behaviors>
</TextBlock>
</DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
+ </controls:ExtendedListBox.ItemTemplate>
+ </controls:ExtendedListBox>
</Grid>
</DockPanel>
</controls:GroupBox>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerView.xaml
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerView.xaml
<Grid Classes="content">
<DockPanel>
<Grid DockPanel.Dock="Left" Width="200">
- <ListBox Items="{Binding Categories}" SelectedItem="{Binding SelectedCategory, Mode=TwoWay}" BorderThickness="0 0 1 0">
- <ListBox.ItemTemplate>
+ <controls:ExtendedListBox Items="{Binding Categories}" SelectedItem="{Binding SelectedCategory, Mode=TwoWay}" BorderThickness="0 0 1 0">
+ <controls:ExtendedListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Title}" />
</DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
+ </controls:ExtendedListBox.ItemTemplate>
+ </controls:ExtendedListBox>
</Grid>
<Grid>
<cont:ViewModelViewHost DataContext="{Binding CurrentView}" Margin="4" />

Use ExtendedListBox everywhere