added Show QR code item to right click menu on receive tab
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
<UserControl.Resources>
<converters:CoinItemExpanderColorConverter x:Key="CoinItemExpanderColorConverter" />
</UserControl.Resources>
- <i:Interaction.Behaviors>
- <behaviors:ClearPropertyOnLostFocusBehavior TargetProperty="{Binding SelectedAddress}" />
- </i:Interaction.Behaviors>
<controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="20" Margin="10">
<Grid Classes="content">
<DockPanel LastChildFill="True">
<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>
+ <ContextMenu>
+ <MenuItem Header="Show QR code" Command="{Binding ShowQrCode}">
+ <MenuItem.Icon>
+ <Path HorizontalAlignment="Left"
+ Data="M16.803,18.615h-4.535c-1,0-1.814-0.812-1.814-1.812v-4.535c0-1.002,0.814-1.814,1.814-1.814h4.535c1.001,0,1.813,0.812,1.813,1.814v4.535C18.616,17.803,17.804,18.615,16.803,18.615zM17.71,12.268c0-0.502-0.405-0.906-0.907-0.906h-4.535c-0.501,0-0.906,0.404-0.906,0.906v4.535c0,0.502,0.405,0.906,0.906,0.906h4.535c0.502,0,0.907-0.404,0.907-0.906V12.268z M16.803,9.546h-4.535c-1,0-1.814-0.812-1.814-1.814V3.198c0-1.002,0.814-1.814,1.814-1.814h4.535c1.001,0,1.813,0.812,1.813,1.814v4.534C18.616,8.734,17.804,9.546,16.803,9.546zM17.71,3.198c0-0.501-0.405-0.907-0.907-0.907h-4.535c-0.501,0-0.906,0.406-0.906,0.907v4.534c0,0.501,0.405,0.908,0.906,0.908h4.535c0.502,0,0.907-0.406,0.907-0.908V3.198z M7.733,18.615H3.198c-1.002,0-1.814-0.812-1.814-1.812v-4.535c0-1.002,0.812-1.814,1.814-1.814h4.535c1.002,0,1.814,0.812,1.814,1.814v4.535C9.547,17.803,8.735,18.615,7.733,18.615zM8.64,12.268c0-0.502-0.406-0.906-0.907-0.906H3.198c-0.501,0-0.907,0.404-0.907,0.906v4.535c0,0.502,0.406,0.906,0.907,0.906h4.535c0.501,0,0.907-0.404,0.907-0.906V12.268z M7.733,9.546H3.198c-1.002,0-1.814-0.812-1.814-1.814V3.198c0-1.002,0.812-1.814,1.814-1.814h4.535c1.002,0,1.814,0.812,1.814,1.814v4.534C9.547,8.734,8.735,9.546,7.733,9.546z M8.64,3.198c0-0.501-0.406-0.907-0.907-0.907H3.198c-0.501,0-0.907,0.406-0.907,0.907v4.534c0,0.501,0.406,0.908,0.907,0.908h4.535c0.501,0,0.907-0.406,0.907-0.908V3.198z"
+ Fill="#22B14C"
+ Height="16" Width="16" Stretch="Fill" />
+ </MenuItem.Icon>
+ </MenuItem>
+ <MenuItem Header="Copy address" Command="{Binding CopyAddress}">
+ <MenuItem.Icon>
+ <Path HorizontalAlignment="Left"
+ Data="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" Fill="#22B14C"
+ Height="16" Width="16" Stretch="Fill" />
+ </MenuItem.Icon>
+ </MenuItem>
+ <MenuItem Header="Copy history" Command="{Binding CopyHistory}">
+ <MenuItem.Icon>
+ <Path HorizontalAlignment="Left"
+ Data="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" Fill="#22B14C"
+ Height="16" Width="16" Stretch="Fill" />
+ </MenuItem.Icon>
+ </MenuItem>
+ </ContextMenu>
+ </ListBox.ContextMenu>
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
</Expander>
<Grid ColumnDefinitions="400, *, 100" Margin="30 0 0 0">
<TextBlock IsVisible="{Binding !ClipboardNotificationVisible}" Text="{Binding Address}">
- <TextBlock.ContextMenu>
- <ContextMenu>
- <MenuItem Header="_Copy" Command="{Binding CopyToClipboard}">
- <MenuItem.Icon>
- <DrawingPresenter Height="16" Width="16">
- <DrawingPresenter.Drawing>
- <GeometryDrawing Brush="#FFFFFFFF" Geometry="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" />
- </DrawingPresenter.Drawing>
- </DrawingPresenter>
- </MenuItem.Icon>
- </MenuItem>
- </ContextMenu>
- </TextBlock.ContextMenu>
</TextBlock>
<Grid IsVisible="{Binding ClipboardNotificationVisible}">

added Show QR code item to right click menu on receive tab