66 xmlns : local =" clr-namespace:ClipboardR.Panels"
77 mc : Ignorable =" d" >
88 <UserControl .Resources>
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" />
9+ <Image x : Key =" CopyIcon" Source =" pack://application:,,,/ClipboardR.Panels;Component/Images/copy.png" Height =" 30"
10+ Width =" 30" />
11+ <Image x : Key =" PinIcon" Source =" pack://application:,,,/ClipboardR.Panels;Component/Images/pin.png" Height =" 30"
12+ Width =" 30" />
13+ <Image x : Key =" PinedIcon" Source =" pack://application:,,,/ClipboardR.Panels;Component/Images/pined.png"
14+ Height =" 30" Width =" 30" />
15+ <Image x : Key =" DeleteIcon" Source =" pack://application:,,,/ClipboardR.Panels;Component/Images/delete.png"
16+ Height =" 30" Width =" 30" />
1317 <Image x : Key =" SaveIcon" Source =" pack://application:,,,/ClipboardR.Panels;Component/Images/save.png" ></Image >
1418 </UserControl .Resources>
1519 <Grid
16- MinWidth =" 300" MinHeight =" 100"
17- MaxWidth =" 340" MaxHeight =" 500" HorizontalAlignment =" Center" >
20+ Width =" Auto"
21+ Height =" Auto"
22+ HorizontalAlignment =" Center" >
1823 <Grid .RowDefinitions>
1924 <RowDefinition Height =" 90*" />
2025 <RowDefinition Height =" 10*" />
2126 </Grid .RowDefinitions>
22- <Grid .ColumnDefinitions>
23- <ColumnDefinition Width =" 50*" />
24- <ColumnDefinition Width =" 50*" />
25- </Grid .ColumnDefinitions>
26- <Image Grid.Row=" 0" Grid.Column=" 0" Grid.ColumnSpan=" 2" Grid.RowSpan=" 1" Panel.ZIndex=" 0"
27- x : Name =" PreImage" Margin =" 3,3,3,3"
28- HorizontalAlignment =" Center" VerticalAlignment =" Center"
29- Visibility =" Hidden"
30- MaxWidth =" 320" MaxHeight =" 400" >
27+ <Image
28+ Grid.Row=" 0"
29+ Grid.Column=" 0"
30+ Panel.ZIndex=" 0"
31+ x : Name =" PreImage" Margin =" 3,3,3,3"
32+ HorizontalAlignment =" Center" VerticalAlignment =" Center"
33+ Visibility =" Hidden"
34+ MaxWidth =" 320" MaxHeight =" 400" >
3135 <Image .ContextMenu>
3236 <ContextMenu >
3337 <MenuItem Header =" Save" Click =" ImSaveAs_Click" >
3842 </ContextMenu >
3943 </Image .ContextMenu>
4044 </Image >
41- <TextBox Grid.Row=" 0" Grid.Column=" 0" Grid.ColumnSpan=" 2" Grid.RowSpan=" 1" IsUndoEnabled =" False"
42- x : Name =" TxtBoxPre" HorizontalAlignment =" Center"
43- Panel.ZIndex=" 1" FontSize =" 14" TextAlignment =" Left" Padding =" 5,5,5,5"
44- MaxWidth =" 320" MaxHeight =" 400" Focusable =" True"
45- VerticalScrollBarVisibility="Auto" Text="<UserControl x:Class="ClipboardR.Panels.PreviewPanel"
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 xmlns:local="clr-namespace:ClipboardR.Panels"
 mc:Ignorable="d">
 <Grid HorizontalAlignment="Center" VerticalAlignment="Center" 
 Margin="5, 5, 5, 5"
 MinWidth="410" MinHeight="620">
 <Grid.RowDefinitions>
 <RowDefinition Height="90*" />
 <RowDefinition Height="10*" />
 </Grid.RowDefinitions>
 <Grid.ColumnDefinitions>
 <ColumnDefinition Width="50*" />
 <ColumnDefinition Width="50*" />
 </Grid.ColumnDefinitions>
 <Image x:Name="PreImage" Margin="3,3,3,3"
 HorizontalAlignment="Center" VerticalAlignment="Center"
 Grid.ColumnSpan="2" Visibility="Hidden" Panel.ZIndex="0"
 MinWidth="410" MinHeight="100" 
 MaxWidth="420" MaxHeight="500" />
 <TextBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="2" 
 x:Name="TxtBoxPre" HorizontalAlignment="Center" VerticalAlignment="Center"
 Panel.ZIndex="1" FontSize="14" TextAlignment="Left" Padding="3,3,3,3" 
 MinWidth="410" MinHeight="100" MaxWidth="420" MaxHeight="500" Focusable="True" 
 VerticalScrollBarVisibility="Auto" Text="finition Width=&quot;50*&quot; /&gt;&#xD;&#xA; &lt;/Grid.ColumnDefinitions&gt;&#xD;&#xA; &lt;Image x:Name=&quot;PreImage&quot; Margin=&quot;3,3,3,3&quot;&#xD;&#xA; HorizontalAlignment=&quot;Center&quot; VerticalAlignment=&quot;Center&quot;&#xD;&#xA; Grid.ColumnSpan=&quot;2&quot; Visibility=&quot;Hidden&quot; Panel.ZIndex=&quot;0&quot;&#xD;&#xA; MinWidth=&quot;410&quot; MinHeight=&quot;100&quot; &#xD;&#xA; MaxWidth=&quot;420&quot; MaxHeight=&quot;500&quot; /&gt;&#xD;&#xA; &lt;TextBox Grid.Row=&quot;0&quot; Grid.Column=&quot;0&quot; Grid.ColumnSpan=&quot;2&quot; Grid.RowSpan=&quot;2&quot; &#xD;&#xA; x:Name=&quot;TxtBoxPre&quot; HorizontalAlignment=&quot;Center&quot; VerticalAlignment=&quot;Center&quot;&#xD;&#xA; Panel.ZIndex=&quot;1&quot; FontSize=&quot;14&quot; TextAlignment=&quot;Left&quot; Padding=&quot;3,3,3,3&quot; &#xD;&#xA; MinWidth=&quot;410&quot; MinHeight=&quot;100&quot; MaxWidth=&quot;420&quot; MaxHeight=&quot;500&quot; Focusable=&quot;True&quot; &#xD;&#xA; VerticalScrollBarVisibility=&quot;Auto&quot; Text=&quot;dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd&amp;#xD;&amp;#xA;&quot; GotFocus=&quot;TxtBoxPre_GotFocus&quot; &#xD;&#xA; Margin=&quot;3,3,3,3&quot; HorizontalContentAlignment=&quot;Left&quot; &#xD;&#xA; TextChanged=&quot;TxtBoxPre_TextChanged&quot; IsReadOnly=&quot;True&quot; /&gt;&#xD;&#xA; &lt;Button Grid.Column=&quot;0&quot; Grid.Row=&quot;1&quot; &#xD;&#xA; x:Name=&quot;BtnCopy&quot; Content=&quot;Copy&quot; HorizontalAlignment" GotFocus="TxtBoxPre_GotFocus" 
 Margin="3,3,3,3" HorizontalContentAlignment="Left" 
 TextChanged="TxtBoxPre_TextChanged" IsReadOnly="True" />
 <Button Grid.Column="0" Grid.Row="1" 
 x:Name="BtnCopy" Content="Copy" HorizontalAlignment="Center" VerticalAlignment="Center"
 MinWidth="50" MinHeight="30" MaxWidth="50" MaxHeight="30" 
 Margin="5,5,5,5" Click="BtnCopy_Click" />
 <Button Grid.Column="1" Grid.Row="1" 
 x:Name="BtnDelete" Content="Delete" HorizontalAlignment="Center" VerticalAlignment="Center" 
 MinWidth="50" MinHeight="30" MaxWidth="50" MaxHeight="30" 
 Margin="5,5,5,5" Click="BtnDelete_Click" />
 </Grid>
</UserControl>"
46- GotFocus =" TxtBoxPre_GotFocus"
47- Margin =" 5,5,5,5" HorizontalContentAlignment =" Left"
48- TextChanged =" TxtBoxPre_TextChanged" IsReadOnly =" True" HorizontalScrollBarVisibility =" Auto" MinWidth =" 320" UseLayoutRounding =" False" />
49- <Grid Grid.Row=" 1" Grid.Column=" 0"
50- ColumnSpan =" 2" MaxWidth =" 320" MaxHeight =" 50" >
51- <Grid .RowDefinitions>
52- <RowDefinition Height =" 99*" />
53- </Grid .RowDefinitions>
54- <Grid .ColumnDefinitions>
55- <ColumnDefinition Width =" 30*" />
56- <ColumnDefinition Width =" 30*" />
57- <ColumnDefinition Width =" 30*" />
58- </Grid .ColumnDefinitions>
59- <Button Grid.Row=" 0" Grid.Column=" 0"
45+ <TextBox
46+ Grid.Row=" 0"
47+ Grid.Column=" 0"
48+ x : Name =" TxtBoxPre"
49+ IsUndoEnabled =" True"
50+ HorizontalAlignment =" Center"
51+ HorizontalContentAlignment =" Left"
52+ MinWidth =" 320"
53+ Panel.ZIndex=" 1"
54+ Text =" "
55+ TextAlignment =" Left"
56+ FontSize =" 14"
57+ IsReadOnly =" False"
58+ Margin =" 5,5,5,5"
59+ Padding =" 5,5,5,5"
60+ Focusable =" True"
61+ VerticalScrollBarVisibility =" Auto"
62+ HorizontalScrollBarVisibility =" Auto"
63+ GotFocus =" TxtBoxPre_GotFocus"
64+ TextChanged =" TxtBoxPre_TextChanged"
65+ UseLayoutRounding =" False" />
66+ <DockPanel
67+ Grid.Row=" 1"
68+ Grid.Column=" 0"
69+ HorizontalAlignment =" Stretch" >
70+ <TextBlock
71+ x : Name =" TextBlockWordCount"
72+ DockPanel.Dock=" Left"
73+ HorizontalAlignment =" Center"
74+ VerticalAlignment =" Center" >
75+ </TextBlock >
76+ <StackPanel
77+ Orientation =" Horizontal"
78+ HorizontalAlignment =" Right"
79+ VerticalAlignment =" Center"
80+ DockPanel.Dock=" Right" >
81+ <Button
6082 x : Name =" BtnCopy" ToolTip =" Copy to clipboard"
6183 HorizontalAlignment =" Center" VerticalAlignment =" Bottom"
6284 Width =" 33" Height =" 33" Padding =" 0, 0, 0, 0"
63- Margin =" 5,5,5,5" Click =" BtnCopy_Click" >
64- <DynamicResource ResourceKey =" CopyIcon" />
65- </Button >
66- < Button Grid.Row= " 0 " Grid.Column= " 1 "
85+ Margin =" 5,5,5,5" Click =" BtnCopy_Click" >
86+ <DynamicResource ResourceKey =" CopyIcon" />
87+ </Button >
88+ < Button
6789 x : Name =" BtnPin" ToolTip =" Pin on top"
6890 HorizontalAlignment =" Center" VerticalAlignment =" Bottom"
6991 Width =" 33" Height =" 33" Padding =" 0, 0, 0, 0"
70- Margin =" 5,5,5,5" Click =" BtnPin_Click" >
71- <DynamicResource ResourceKey =" PinIcon" />
72- </Button >
73- <Button Grid.Row=" 0" Grid.Column=" 2"
74- x : Name =" BtnDelete" ToolTip =" Delete this record"
75- HorizontalAlignment =" Center" VerticalAlignment =" Bottom"
76- Width =" 33" Height =" 33" Padding =" 0, 0, 0, 0"
77- Margin =" 5,5,5,5" Click =" BtnDelete_Click" >
78- <DynamicResource ResourceKey =" DeleteIcon" />
79- </Button >
80- </Grid >
81-
92+ Margin =" 5,5,5,5" Click =" BtnPin_Click" >
93+ <DynamicResource ResourceKey =" PinIcon" />
94+ </Button >
95+ <Button
96+ x : Name =" BtnDelete" ToolTip =" Delete this record"
97+ HorizontalAlignment =" Center" VerticalAlignment =" Bottom"
98+ Width =" 33" Height =" 33" Padding =" 0, 0, 0, 0"
99+ Margin =" 5,5,5,5" Click =" BtnDelete_Click" >
100+ <DynamicResource ResourceKey =" DeleteIcon" />
101+ </Button >
102+ </StackPanel >
103+
104+ </DockPanel >
105+
82106 </Grid >
83107</UserControl >
0 commit comments