|
26 | 26 | <ColumnDefinition Width="1*"/>
|
27 | 27 | </Grid.ColumnDefinitions>
|
28 | 28 | <Menu x:Name="mMenu" >
|
29 |
| - <MenuItem Header="_File" > |
| 29 | + <MenuItem x:Name="mMenuItemFile" Header="_File" > |
30 | 30 | <MenuItem x:Name="mMenuItemFileNew" Command="New" Header="_New" />
|
31 | 31 | <MenuItem x:Name="mMenuItemFileOpen" Command="Open" Header="_Open file ..." />
|
32 | 32 | <MenuItem x:Name="mMenuItemFileAddImg" Header="Add images..." Click="MenuItemFileAddImg_Click" />
|
|
35 | 35 | <Separator/>
|
36 | 36 | <MenuItem x:Name="mMenuItemFileExit" Command="Close" Header="E_xit" Click="MenuItemFileExit_Click" />
|
37 | 37 | </MenuItem>
|
38 |
| - <MenuItem Header="_Edit" > |
| 38 | + <MenuItem x:Name="mMenuItemEdit" Header="_Edit" > |
39 | 39 | <MenuItem x:Name="mMenuItemEditUndo" Command="Undo" Header="_Undo" />
|
40 | 40 | <MenuItem x:Name="mMenuItemEditRedo" Command="Redo" Header="_Redo" />
|
41 | 41 | </MenuItem>
|
|
53 | 53 | </ControlTemplate>
|
54 | 54 | </GridSplitter.Template>
|
55 | 55 | </GridSplitter>
|
56 |
| - <GroupBox Grid.Row="1" Header="Settings" Margin="4,0,5,4" Grid.RowSpan="2" > |
| 56 | + <GroupBox x:Name="mGroupBoxSettings" Grid.Row="1" Header="Settings" Margin="4,0,5,4" Grid.RowSpan="2" > |
57 | 57 | <Grid>
|
58 | 58 | <Grid.RowDefinitions>
|
59 | 59 | <RowDefinition Height="60" />
|
|
63 | 63 | <RowDefinition Height="118" />
|
64 | 64 | <RowDefinition Height="1*" />
|
65 | 65 | </Grid.RowDefinitions>
|
66 |
| - <GroupBox Grid.Row="0" Header="Pen Mode" > |
| 66 | + <GroupBox x:Name="mGroupBoxPenMode" Grid.Row="0" Header="Pen Mode" > |
67 | 67 | <Grid>
|
68 | 68 | <Grid.RowDefinitions>
|
69 | 69 | <RowDefinition Height="1*" />
|
70 | 70 | <RowDefinition Height="1*" />
|
71 | 71 | </Grid.RowDefinitions>
|
72 |
| - <RadioButton Grid.Row="0" x:Name="mRBPen" Content="Pen / Eraser" Margin="4,0,4,0" VerticalAlignment="Center" IsChecked="True" Checked="RBPen_Checked"/> |
| 72 | + <RadioButton Grid.Row="0" x:Name="mRBPenEraser" Content="Pen / Eraser" Margin="4,0,4,0" VerticalAlignment="Center" IsChecked="True" Checked="RBPen_Checked"/> |
73 | 73 | <RadioButton Grid.Row="1" x:Name="mRBEraser" Content="Eraser" Margin="4,0,4,0" VerticalAlignment="Center" Checked="RBEraser_Checked"/>
|
74 | 74 | </Grid>
|
75 | 75 | </GroupBox>
|
76 |
| - <GroupBox Grid.Row="1" Header="Pen Thickness" > |
| 76 | + <GroupBox x:Name="mGroupBoxPenThickness" Grid.Row="1" Header="Pen Thickness" > |
77 | 77 | <Grid>
|
78 | 78 | <Grid.ColumnDefinitions>
|
79 | 79 | <ColumnDefinition Width="1*" />
|
|
92 | 92 | <RadioButton Grid.Row="2" Grid.Column="1" x:Name="mRBT12" Content="12" Margin="4,0,4,0" VerticalAlignment="Center" Checked="RBT12_Checked" />
|
93 | 93 | </Grid>
|
94 | 94 | </GroupBox>
|
95 |
| - <GroupBox Grid.Row="2" Header="Color" > |
| 95 | + <GroupBox x:Name="mGroupBoxColor" Grid.Row="2" Header="Color" > |
96 | 96 | <Grid>
|
97 | 97 | <Grid.ColumnDefinitions>
|
98 | 98 | <ColumnDefinition Width="1*" />
|
|
114 | 114 | <RadioButton Grid.Row="3" Grid.Column="1" x:Name="mRBCBlack" Content="Black" Margin="4,0,4,0" VerticalAlignment="Center" Checked="RBCBlack_Checked" />
|
115 | 115 | </Grid>
|
116 | 116 | </GroupBox>
|
117 |
| - <GroupBox Grid.Row="3" Header="Display" > |
| 117 | + <GroupBox x:Name="mGroupBoxDisplay" Grid.Row="3" Header="Display" > |
118 | 118 | <Grid>
|
119 | 119 | <Grid.ColumnDefinitions>
|
120 | 120 | <ColumnDefinition Width="1*" />
|
|
127 | 127 | <RowDefinition Height="1*" />
|
128 | 128 | </Grid.RowDefinitions>
|
129 | 129 | <CheckBox x:Name="mCBDispDrawings" Grid.Row="0" Grid.ColumnSpan="2" Margin="4,0,0,0" VerticalAlignment="Center" Content="Display Drawings" IsChecked="True" Checked="CBDispDrawings_Checked" Unchecked="CBDispDrawings_Unchecked" />
|
130 |
| - <Label Content="Scale:" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" /> |
| 130 | + <Label x:Name="mLabelScale" Content="Scale:" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" /> |
131 | 131 | <Slider Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Name="mSliderScaling" Margin="0,0,4,0" Maximum="2.0" Value="0.5" Minimum="0.25" Ticks="0.25 0.375 0.5 0.625 0.75 0.875 1.0 1.25 1.5 1.75 2.0" SmallChange="0.125" LargeChange="0.125" TickFrequency="0.125" TickPlacement="Both" IsMoveToPointEnabled="True" />
|
132 | 132 | <Button Grid.Row="2" Grid.ColumnSpan="2" x:Name="mButtonScaleToImageW" Margin="4,0,4,0" Content="Scale to Image Width" VerticalAlignment="Center" Click="ButtonScaleToImageW_Click" />
|
133 | 133 | <Button Grid.Row="3" Grid.ColumnSpan="2" x:Name="mButtonScaleToFit" Margin="4,0,4,0" Content="Scale to Fit" VerticalAlignment="Center" Click="ButtonScaleToFit_Click" />
|
134 | 134 | </Grid>
|
135 | 135 | </GroupBox>
|
136 |
| - <GroupBox Grid.Row="4" Header="Page Control" > |
| 136 | + <GroupBox x:Name="mGroupBoxPageControl" Grid.Row="4" Header="Page Control" > |
137 | 137 | <Grid>
|
138 | 138 | <Grid.RowDefinitions>
|
139 | 139 | <RowDefinition Height="1*" />
|
|
152 | 152 | <Button x:Name="mButtonClearDrawings" Grid.Row="3" Grid.ColumnSpan="3" Margin="4,0,4,0" VerticalAlignment="Center" Content="Clear Drawings" Click="ButtonClearDrawings_Click" />
|
153 | 153 | </Grid>
|
154 | 154 | </GroupBox>
|
155 |
| - <GroupBox Grid.Row="5" Header="Page Tags" > |
| 155 | + <GroupBox x:Name="mGroupBoxPageTags" Grid.Row="5" Header="Page Tags" > |
156 | 156 | <Grid>
|
157 | 157 | <Grid.RowDefinitions>
|
158 | 158 | <RowDefinition Height="23" />
|
|
166 | 166 | <ColumnDefinition Width="1*" />
|
167 | 167 | <ColumnDefinition Width="2.5*" />
|
168 | 168 | </Grid.ColumnDefinitions>
|
169 |
| - <Label Content="Name:" HorizontalAlignment="Right" VerticalAlignment="Center"/> |
| 169 | + <Label x:Name="mLabelName" Content="Name:" HorizontalAlignment="Right" VerticalAlignment="Center"/> |
170 | 170 | <TextBox x:Name="mTBTagName" Grid.Column="1" Margin="0,0,4,0" Text="Untitled tag" VerticalContentAlignment="Center" VerticalAlignment="Center" />
|
171 | 171 | </Grid>
|
172 | 172 | <Button Grid.Row="2" Margin="4,0,4,0" x:Name="mButtonAddTag" Content="New or Update Tag" VerticalAlignment="Center" Click="ButtonAddTag_Click" />
|
|
175 | 175 | </GroupBox>
|
176 | 176 | </Grid>
|
177 | 177 | </GroupBox>
|
178 |
| - <GroupBox Grid.RowSpan="2" Grid.Column="1" Header="Canvas" Margin="0,0,4,0" > |
| 178 | + <GroupBox x:Name="mGroupBoxCanvas" Grid.RowSpan="2" Grid.Column="1" Header="Canvas" Margin="0,0,4,0" > |
179 | 179 | <ScrollViewer x:Name="mSVCanvas" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" >
|
180 | 180 | <Grid x:Name="mGridCanvas" Background="#FFC0C0C0">
|
181 | 181 | <Grid.LayoutTransform>
|
|
189 | 189 | </Grid>
|
190 | 190 | </ScrollViewer>
|
191 | 191 | </GroupBox>
|
192 |
| - <GroupBox Margin="0,0,4,4" Grid.Column="1" Grid.Row="2" Header="Page Number" > |
| 192 | + <GroupBox x:Name="mGroupBoxPageNumber" Margin="0,0,4,4" Grid.Column="1" Grid.Row="2" Header="Page Number" > |
193 | 193 | <Grid>
|
194 | 194 | <Grid.ColumnDefinitions>
|
195 | 195 | <ColumnDefinition Width="50" />
|
|
199 | 199 | <ColumnDefinition Width="50" />
|
200 | 200 | <ColumnDefinition Width="1*" />
|
201 | 201 | </Grid.ColumnDefinitions>
|
202 |
| - <Label Content="Page:" HorizontalAlignment="Right" VerticalAlignment="Center"/> |
| 202 | + <Label x:Name="mLabelPage" Content="Page:" HorizontalAlignment="Right" VerticalAlignment="Center"/> |
203 | 203 | <TextBox Grid.Column="1" Text="1" Name="mTBPageNr" VerticalAlignment="Center" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" TextChanged="TBPageNr_TextChanged" />
|
204 | 204 | <Label Grid.Column="2" Content="/ 0" Name="mLabelTotalPages" VerticalAlignment="Center" />
|
205 | 205 | <Button Grid.Column="3" x:Name="mButtonPrev" IsEnabled="False" Content="Prev" Margin="0,0,4,0" VerticalAlignment="Center" Click="ButtonPrevPage_Click"/>
|
|
0 commit comments