|
6 | 6 | xmlns:local="clr-namespace:ClipboardR.Panels" |
7 | 7 | mc:Ignorable="d"> |
8 | 8 | <UserControl.Resources> |
9 | | - <Image x:Key="Copy" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/copy.png" Height="30" Width="30" /> |
10 | | - <Image x:Key="Pin" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/pin.png" Height="30" Width="30" /> |
11 | | - <Image x:Key="Pined" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/pined.png" Height="30" Width="30" /> |
12 | | - <Image x:Key="Delete" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/delete.png" Height="30" Width="30" /> |
| 9 | + <Image x:Key="CopyIcon" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/copy.png" Height="30" Width="30" /> |
| 10 | + <Image x:Key="PinIcon" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/pin.png" Height="30" Width="30" /> |
| 11 | + <Image x:Key="PinedIcon" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/pined.png" Height="30" Width="30" /> |
| 12 | + <Image x:Key="DeleteIcon" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/delete.png" Height="30" Width="30" /> |
| 13 | + <Image x:Key="SaveIcon" Source="pack://application:,,,/ClipboardR.Panels;Component/Images/save.png"></Image> |
13 | 14 | </UserControl.Resources> |
14 | 15 | <Grid |
15 | 16 | MinWidth="300" MinHeight="100" |
|
26 | 27 | x:Name="PreImage" Margin="3,3,3,3" |
27 | 28 | HorizontalAlignment="Center" VerticalAlignment="Center" |
28 | 29 | Visibility="Hidden" |
29 | | - MaxWidth="320" MaxHeight="400" /> |
| 30 | + MaxWidth="320" MaxHeight="400" > |
| 31 | + <Image.ContextMenu> |
| 32 | + <ContextMenu> |
| 33 | + <MenuItem Header="Save" Click="ImSaveAs_Click"> |
| 34 | + <MenuItem.Icon> |
| 35 | + <DynamicResource ResourceKey="SaveIcon"></DynamicResource> |
| 36 | + </MenuItem.Icon> |
| 37 | + </MenuItem> |
| 38 | + </ContextMenu> |
| 39 | + </Image.ContextMenu> |
| 40 | + </Image> |
30 | 41 | <TextBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="1" IsUndoEnabled="False" |
31 | 42 | x:Name="TxtBoxPre" HorizontalAlignment="Center" |
32 | 43 | Panel.ZIndex="1" FontSize="14" TextAlignment="Left" Padding="5,5,5,5" |
|
49 | 60 | HorizontalAlignment="Center" VerticalAlignment="Bottom" |
50 | 61 | Width="33" Height="33" Padding="0, 0, 0, 0" |
51 | 62 | Margin="5,5,5,5" Click="BtnCopy_Click" > |
52 | | - <DynamicResource ResourceKey="Copy"/> |
| 63 | + <DynamicResource ResourceKey="CopyIcon"/> |
53 | 64 | </Button> |
54 | 65 | <Button Grid.Row="0" Grid.Column="1" |
55 | 66 | x:Name="BtnPin" ToolTip="Pin on top" |
56 | 67 | HorizontalAlignment="Center" VerticalAlignment="Bottom" |
57 | 68 | Width="33" Height="33" Padding="0, 0, 0, 0" |
58 | 69 | Margin="5,5,5,5" Click="BtnPin_Click" > |
59 | | - <DynamicResource ResourceKey="Pined"/> |
| 70 | + <DynamicResource ResourceKey="PinIcon"/> |
60 | 71 | </Button> |
61 | 72 | <Button Grid.Row="0" Grid.Column="2" |
62 | 73 | x:Name="BtnDelete" ToolTip="Delete this record" |
63 | 74 | HorizontalAlignment="Center" VerticalAlignment="Bottom" |
64 | 75 | Width="33" Height="33" Padding="0, 0, 0, 0" |
65 | 76 | Margin="5,5,5,5" Click="BtnDelete_Click" > |
66 | | - <DynamicResource ResourceKey="Delete"/> |
| 77 | + <DynamicResource ResourceKey="DeleteIcon"/> |
67 | 78 | </Button> |
68 | 79 | </Grid> |
69 | 80 |
|
|
0 commit comments