Quellcode durchsuchen

zhao:增加图片拖拽 放大

tags/录制修改前
耀 vor 4 Jahren
Ursprung
Commit
270f657699

+ 6
- 6
Common/system/FFMpeg.cs Datei anzeigen

@@ -62,7 +62,7 @@ namespace Common.system
62 62
             myProcess.StartInfo.FileName = FileToolsCommon.GetFileAbsolutePath(@"/ffmpeg/bin/ffmpeg.exe");   //ffmpeg.exe的绝对路径
63 63
             switch (Extension.ToUpper())
64 64
             {
65
-                case "MP4":
65
+                case ".MP4":
66 66
                     if (string.IsNullOrWhiteSpace(MicrophoneName))
67 67
                     {
68 68
                         myProcess.StartInfo.Arguments = "-f dshow -i video=\"screen-capture-recorder\" -f dshow -i audio=\"virtual-audio-capturer\" -vcodec libx264 -acodec libmp3lame -r 15 -crf 22 -f avi " + PathName;  //ffmpeg的参数
@@ -73,8 +73,8 @@ namespace Common.system
73 73
                             MicrophoneName + "\" -filter_complex amix=inputs=2:duration=first:dropout_transition=2 -f dshow -i video=\"screen-capture-recorder\" -pix_fmt yuv420p -vcodec h264 -preset:v ultrafast -tune:v zerolatency -acodec aac -ar 44100 -ac 2 " + PathName;  //ffmpeg的参数
74 74
                     }
75 75
                     break;
76
-                case "AVI":
77
-                case "FLV":
76
+                case ".AVI":
77
+                case ".FLV":
78 78
                     if (string.IsNullOrWhiteSpace(MicrophoneName))
79 79
                     {
80 80
                         myProcess.StartInfo.Arguments = "-f dshow -i video=\"screen-capture-recorder\" -f dshow -i audio=\"virtual-audio-capturer\" -vcodec libx264 -acodec libmp3lame -r 15 -crf 22 -f " + Extension.ToLower() + " " + PathName;  //ffmpeg的参数
@@ -255,19 +255,19 @@ namespace Common.system
255 255
             this.myProcess.StartInfo.FileName = FileToolsCommon.GetFileAbsolutePath(@"/ffmpeg/bin/ffmpeg.exe");   //ffmpeg.exe的绝对路径
256 256
             switch (Extension.ToUpper())
257 257
             {
258
-                case "MP4":
258
+                case ".MP4":
259 259
                     myProcess.StartInfo.Arguments = @"-y -r " + Frequency + " -i " +
260 260
                         ImageListPath + @"%d.png -i " +
261 261
                         Mp3Path + @" -s " + VideoWidth + "x" + VideoHeight + " -vcodec mpeg4 " +
262 262
                         VideoSavePath;
263 263
                     break;
264
-                case "AVI":
264
+                case ".AVI":
265 265
                     myProcess.StartInfo.Arguments = @"-y -r " + Frequency + " -i " +
266 266
                         ImageListPath + @"%d.png -i " +
267 267
                         Mp3Path + @" -s " + VideoWidth + "x" + VideoHeight + " -f AVI " +
268 268
                         VideoSavePath;
269 269
                     break;
270
-                case "FLV":
270
+                case ".FLV":
271 271
                     myProcess.StartInfo.Arguments = @"-y -r " + Frequency + " -i " +
272 272
                         ImageListPath + @"%d.png -i " +
273 273
                         Mp3Path + @" -s " + VideoWidth + "x" + VideoHeight + " -f FLV " +

+ 284
- 270
XHWK.WKTool/XHMicroLessonSystemWindow.xaml Datei anzeigen

@@ -10,7 +10,7 @@
10 10
         mc:Ignorable="d"
11 11
         Title="星火微课系统" Height="1040" Width="1276" WindowStartupLocation="CenterScreen"
12 12
     WindowStyle="None"    AllowsTransparency="True"  Background="#EFF1F8" ShowInTaskbar="True" ResizeMode="CanMinimize" BorderThickness="10"
13
-   >    
13
+   >
14 14
     <!--<Grid>
15 15
         <Border CornerRadius="0,0,0,0"
16 16
                 Background="White"
@@ -141,118 +141,122 @@
141 141
         <Border Background="#cdcdcd" Height="1040" Width="1280">
142 142
             <Grid x:Name="GridContent" Height="1036" Width="1276">
143 143
 
144
-            <!--分3行-->
145
-            <Grid.RowDefinitions>
146
-                <RowDefinition Height="106"/>
147
-                <RowDefinition Height="*"/>
148
-                <RowDefinition Height="40"/>
149
-            </Grid.RowDefinitions>
150
-            <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0">
144
+                <!--分3行-->
151 145
                 <Grid.RowDefinitions>
152
-                    <RowDefinition Height="auto"/>
153
-                    <RowDefinition Height="auto"/>
146
+                    <RowDefinition Height="106"/>
147
+                    <RowDefinition Height="*"/>
148
+                    <RowDefinition Height="40"/>
154 149
                 </Grid.RowDefinitions>
155
-                <!--第一行-->
156
-                <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,2,10,0">
157
-                    <Image Source="./Images/microLessonSystem_0.png"/>
158
-                    <TextBlock Text="星火微课系统" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
159
-                </StackPanel>
160
-                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,2,10,0">
161
-                    <Button Cursor="Hand" x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnLoginType_Click">
162
-                        <StackPanel Orientation="Horizontal">
163
-                            <Image Source="./Images/microLessonSystem_9.png"/>
164
-                            <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
165
-                        </StackPanel>
166
-                    </Button>
167
-                    <Button Cursor="Hand" x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnShrink_Click" Margin="8,0,8,0">
168
-                        <Image Source="./Images/microLessonSystem_19.png"/>
169
-                    </Button>
170
-                    <!--<Button Cursor="Hand" x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
150
+                <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0">
151
+                    <Grid.RowDefinitions>
152
+                        <RowDefinition Height="auto"/>
153
+                        <RowDefinition Height="auto"/>
154
+                    </Grid.RowDefinitions>
155
+                    <!--第一行-->
156
+                    <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,2,10,0">
157
+                        <Image Source="./Images/microLessonSystem_0.png"/>
158
+                        <TextBlock Text="星火微课系统" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
159
+                    </StackPanel>
160
+                    <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,2,10,0">
161
+                        <Button Cursor="Hand" x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnLoginType_Click">
162
+                            <StackPanel Orientation="Horizontal">
163
+                                <Image Source="./Images/microLessonSystem_9.png"/>
164
+                                <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
165
+                            </StackPanel>
166
+                        </Button>
167
+                        <Button Cursor="Hand" x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnShrink_Click" Margin="8,0,8,0">
168
+                            <Image Source="./Images/microLessonSystem_19.png"/>
169
+                        </Button>
170
+                        <!--<Button Cursor="Hand" x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
171 171
                         <Image Source="./Images/microLessonSystem_8.png"/>
172 172
                     </Button>-->
173
-                    <Button Cursor="Hand" x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" >
174
-                        <Image Source="./Images/microLessonSystem_10.png"/>
175
-                    </Button>
176
-                </StackPanel>
177
-                <!--第二行-->
178
-                <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,6,0,0">
179
-                    <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
180
-                        <StackPanel Orientation="Vertical">
181
-                            <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
182
-                            <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
183
-                            <TextBlock x:Name="TxbRecordScreenWord" Text="录屏" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
184
-                        </StackPanel>
185
-                    </Button>
186
-                    <Button Cursor="Hand" x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,0,0" Click="BtnScreenshot_Click">
187
-                        <StackPanel Orientation="Vertical">
188
-                            <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
189
-                            <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
190
-                            <TextBlock Text="截图" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
191
-                        </StackPanel>
192
-                    </Button>
193
-                    <Button Cursor="Hand" x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnImport_Click" Margin="30,0,0,0">
194
-                        <StackPanel Orientation="Vertical">
195
-                            <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
196
-                            <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
197
-                            <TextBlock Text="导入" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
198
-                        </StackPanel>
199
-                    </Button>
200
-                    <Button Cursor="Hand" x:Name="BtnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="100,0,0,0" Click="BtnRecord_Click">
201
-                        <StackPanel Orientation="Vertical">
202
-                            <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
203
-                            <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
204
-                            <TextBlock x:Name="TxbRecordingWord" Text="录制" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
205
-                        </StackPanel>
206
-                    </Button>
207
-                    <Button Cursor="Hand" x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStop_Click" Margin="30,0,0,0">
208
-                        <StackPanel Orientation="Vertical">
209
-                            <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
210
-                            <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
211
-                            <TextBlock Text="停止" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
212
-                        </StackPanel>
213
-                    </Button>
173
+                        <Button Cursor="Hand" x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" >
174
+                            <Image Source="./Images/microLessonSystem_10.png"/>
175
+                        </Button>
176
+                    </StackPanel>
177
+                    <!--第二行-->
178
+                    <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,6,0,0">
179
+                        <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
180
+                            <StackPanel Orientation="Vertical">
181
+                                <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
182
+                                <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
183
+                                <TextBlock x:Name="TxbRecordScreenWord" Text="录屏" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
184
+                            </StackPanel>
185
+                        </Button>
186
+                        <Button Cursor="Hand" x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,0,0" Click="BtnScreenshot_Click">
187
+                            <StackPanel Orientation="Vertical">
188
+                                <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
189
+                                <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
190
+                                <TextBlock Text="截图" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
191
+                            </StackPanel>
192
+                        </Button>
193
+                        <Button Cursor="Hand" x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnImport_Click" Margin="30,0,0,0">
194
+                            <StackPanel Orientation="Vertical">
195
+                                <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
196
+                                <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
197
+                                <TextBlock Text="导入" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
198
+                            </StackPanel>
199
+                        </Button>
200
+                        <Button Cursor="Hand" x:Name="BtnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="100,0,0,0" Click="BtnRecord_Click">
201
+                            <StackPanel Orientation="Vertical">
202
+                                <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
203
+                                <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
204
+                                <TextBlock x:Name="TxbRecordingWord" Text="录制" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
205
+                            </StackPanel>
206
+                        </Button>
207
+                        <Button Cursor="Hand" x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStop_Click" Margin="30,0,0,0">
208
+                            <StackPanel Orientation="Vertical">
209
+                                <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
210
+                                <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
211
+                                <TextBlock Text="停止" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
212
+                            </StackPanel>
213
+                        </Button>
214 214
                         <TextBlock x:Name="txbTime" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
215 215
                         <TextBlock x:Name="txbType" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
216
-                </StackPanel>
217
-                <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
218
-                    <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
219
-                        <StackPanel Orientation="Vertical">
220
-                            <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
221
-                            <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
222
-                            <TextBlock Text="增加" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
223
-                        </StackPanel>
224
-                    </Button>
225
-                    <Button Cursor="Hand" x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnPrint_Click">
226
-                        <StackPanel Orientation="Vertical">
227
-                            <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png" Visibility="Collapsed"/>
228
-                            <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Visible"/>
229
-                            <TextBlock Text="打印" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
230
-                        </StackPanel>
231
-                    </Button>
232
-                    <!--<Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click" Margin="0,0,30,0">
216
+                    </StackPanel>
217
+                    <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
218
+                        <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
219
+                            <StackPanel Orientation="Vertical">
220
+                                <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
221
+                                <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
222
+                                <TextBlock Text="增加" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
223
+                            </StackPanel>
224
+                        </Button>
225
+                        <Button Cursor="Hand" x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnPrint_Click">
226
+                            <StackPanel Orientation="Vertical">
227
+                                <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png" Visibility="Collapsed"/>
228
+                                <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Visible"/>
229
+                                <TextBlock Text="打印" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
230
+                            </StackPanel>
231
+                        </Button>
232
+                        <!--<Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click" Margin="0,0,30,0">
233 233
                         <StackPanel Orientation="Vertical">
234 234
                             <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_15.png" Visibility="Collapsed"/>
235 235
                             <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_16.png" Visibility="Visible"/>
236 236
                             <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
237 237
                         </StackPanel>
238 238
                     </Button>-->
239
-                    <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
240
-                        <StackPanel Orientation="Vertical">
241
-                            <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Collapsed"/>
242
-                            <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Visible"/>
243
-                            <TextBlock Text="我的" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
244
-                        </StackPanel>
245
-                    </Button>
246
-                    <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
247
-                        <StackPanel Orientation="Vertical">
248
-                            <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png" Visibility="Visible"/>
249
-                            <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
250
-                            <TextBlock Text="设置" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
251
-                        </StackPanel>
252
-                    </Button>
253
-                </StackPanel>
254
-            </Grid>
255
-            <!--主内容-->
239
+                        <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
240
+                            <StackPanel Orientation="Vertical">
241
+                                <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Collapsed"/>
242
+                                <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Visible"/>
243
+                                <TextBlock Text="我的" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
244
+                            </StackPanel>
245
+                        </Button>
246
+                        <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
247
+                            <StackPanel Orientation="Vertical">
248
+                                <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png" Visibility="Visible"/>
249
+                                <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
250
+                                <TextBlock Text="设置" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
251
+                            </StackPanel>
252
+                        </Button>
253
+                    </StackPanel>
254
+                    <Label x:Name="lbl1" Content="Label" HorizontalAlignment="Left" Margin="469,10,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.802,0.126"/>
255
+                    <Label x:Name="lbl2" Content="Label" HorizontalAlignment="Left" Margin="780,10,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.34,0.173"/>
256
+                    <Label x:Name="lbl3" Content="Label" HorizontalAlignment="Left" Margin="469,49,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.11,0.159"/>
257
+                    <Label x:Name="lbl4" Content="Label" HorizontalAlignment="Left" Margin="780,44,0,0" Grid.Row="1" VerticalAlignment="Top"/>
258
+                </Grid>
259
+                <!--主内容-->
256 260
                 <Grid Grid.Row="1" x:Name="GridMain" Width="1276" Visibility="Visible">
257 261
                     <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible">
258 262
                         <Grid x:Name="gridM"  Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Height="1780">
@@ -266,23 +270,33 @@
266 270
                                             </TransformGroup>
267 271
                                         </Grid.Resources>
268 272
 
269
-                                        <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled"   Cursor="SizeAll"
273
+                                        <!--<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled"   Cursor="SizeAll"
270 274
                   Margin="0,0,0,0" Focusable="False" x:Name="BackFrame">
271 275
                                             <ContentControl  MouseLeftButtonDown="IMG1_MouseLeftButtonDown"   
272 276
                              MouseLeftButtonUp="IMG1_MouseLeftButtonUp"
273 277
                              MouseMove="IMG1_MouseMove"
274 278
                              MouseWheel="IMG1_MouseWheel" >
275
-                                                <Image Name="imgCanvas" Width="635" Height="auto" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Uniform" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown">
276
-                                                </Image>
277 279
                                             </ContentControl>
278
-                                        </ScrollViewer>
280
+                                        </ScrollViewer>-->
281
+                                        <!--图片表框 -->
282
+                                        <Rectangle x:Name="RectImgBorder" Cursor="SizeAll" Fill="#00000000" HorizontalAlignment="Left" Stroke="#2D8CF0" VerticalAlignment="Top" Width="300" Height="300" Visibility="Hidden" Margin="373,175,0,0" StrokeThickness="4" StrokeDashArray="4 4" SnapsToDevicePixels="True"/>
283
+                                        <Image Name="imgCanvas" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown" Focusable="True" MouseMove="imgCanvas_MouseMove" MouseUp="imgCanvas_MouseUp"/>
284
+                                        <!--四个点 -->
285
+                                        <Canvas>
286
+                                            <Thumb x:Name="RectLeftUp" Cursor="SizeNWSE"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2"  DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
287
+                                            <Thumb x:Name="RectRightUp" Cursor="SizeNESW"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
288
+                                            <Thumb x:Name="RectLeftDown" Cursor="SizeNESW"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
289
+                                            <Thumb x:Name="RectRightDown" Cursor="SizeNWSE"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
290
+                                        </Canvas>
279 291
                                     </Grid>
280 292
                                 </Border>
281 293
                             </Grid>
282 294
                             <!--导入图片-->
283
-                            <Image x:Name="imgDocumentation" Visibility="Visible"/>
284 295
                             <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
285 296
                             <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2" />
297
+                            
298
+                            <Image x:Name="imgDocumentation" Visibility="Visible" Width="0" Height="0" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="472,246,0,0" />
299
+
286 300
                             <!--摄像头-->
287 301
                             <!--<wfi:WindowsFormsHost Grid.Row="0" Grid.Column="1" x:Name="wfhCamera" Height="124" Width="172" HorizontalAlignment="Right" Margin="0,10,30.10,0" VerticalAlignment="Top">
288 302
                     <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172"  />
@@ -306,90 +320,116 @@
306 320
                 <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed">
307 321
                     <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
308 322
             Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
309
-                    <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
323
+                        <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
310 324
                     x:Name="last_button"
311 325
                     Width="60" Height="20"
312 326
                     Click="last_button_Click">
313
-                        <Button.Content>
314
-                            <StackPanel>
315
-                                <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
316
-                            </StackPanel>
317
-                        </Button.Content>
318
-                    </Button>
319
-                    <Grid Width="60"  Background="Transparent">
320
-                        <Grid.RowDefinitions>
321
-                            <RowDefinition Height="311*"/>
322
-                            <RowDefinition Height="483*"/>
323
-                        </Grid.RowDefinitions>
324
-                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
325
-                            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
326
-                                <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
327
-                                <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
328
-                                <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
327
+                            <Button.Content>
328
+                                <StackPanel>
329
+                                    <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
330
+                                </StackPanel>
331
+                            </Button.Content>
332
+                        </Button>
333
+                        <Grid Width="60"  Background="Transparent">
334
+                            <Grid.RowDefinitions>
335
+                                <RowDefinition Height="311*"/>
336
+                                <RowDefinition Height="483*"/>
337
+                            </Grid.RowDefinitions>
338
+                            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
339
+                                <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
340
+                                    <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
341
+                                    <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
342
+                                    <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
343
+                                </StackPanel>
329 344
                             </StackPanel>
330
-                        </StackPanel>
331
-                    </Grid>
332
-                    <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
345
+                        </Grid>
346
+                        <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
333 347
                     x:Name="next_btn"  Background="Transparent"
334 348
                     Width="60" Height="20"
335 349
                     Click="next_btn_Click">
336
-                        <Button.Content>
337
-                            <StackPanel>
338
-                                <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
339
-                            </StackPanel>
340
-                        </Button.Content>
341
-                    </Button>
342
-                </StackPanel>
343
-            </Grid>
344
-            <!--设置-->
345
-            <Grid Grid.Row="1" x:Name="gridSetUp"  Background="#FFFFFF" Visibility="Collapsed" Width="1276">
346
-                <Grid.RowDefinitions>
347
-                    <RowDefinition Height="90"/>
348
-                    <RowDefinition Height="70"/>
349
-                    <RowDefinition Height="50"/>
350
-                    <RowDefinition Height="70"/>
351
-                    <RowDefinition Height="70"/>
352
-                    <RowDefinition Height="70"/>
353
-                    <RowDefinition Height="70"/>
354
-                    <RowDefinition Height="*"/>
355
-                </Grid.RowDefinitions>
356
-                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
357
-                    <TextBlock Text="   点阵笔" FontSize="16" Foreground="#2D8CF0" Width="80"/>
358
-                    <TextBlock x:Name="txbNotConnecteds"  Text="未连接" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
359
-                </StackPanel>
360
-                <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
361
-                    <TextBlock Text="视频格式" FontSize="16" Foreground="#2D8CF0" Width="80"/>
362
-                    <RadioButton x:Name="rbnMP4" Cursor="Hand" Content="MP4" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
363
-                    <RadioButton x:Name="rbnFLV" Cursor="Hand" Content="FLV" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
364
-                    <RadioButton x:Name="rbnAVI" Cursor="Hand" Content="AVI" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
365
-                </StackPanel>
366
-                <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
367
-                    <TextBlock Text="头像位置" FontSize="16" Foreground="#2D8CF0" Width="80"/>
368
-                    <RadioButton Cursor="Hand" x:Name="rbnRight" Content="右上" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
369
-                    <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Content="右下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
370
-                    <RadioButton Cursor="Hand" x:Name="rbnLeft" Content="左上" FontSize="14" Foreground="#333333" Margin="20,2,0,0" />
371
-                    <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Content="左下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
372
-                </StackPanel>
373
-                <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
374
-                    <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
375
-                    <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
376
-                    <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
377
-                </StackPanel>
378
-                <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
379
-                    <TextBlock x:Name="txbFilePath" Text="文件路径" FontSize="16" Width="80"  Foreground="#2D8CF0" Padding="2,26,10,0"/>
380
-                    <!--输入框-->
381
-                    <Border Background="#CDD6E0" Width="525" Height="43" CornerRadius="3">
382
-                        <Label x:Name="txbStoragePath" Background="#FFFFFF" Content="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="523" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
383
-                    </Border>
384
-                    <!--浏览按钮-->
385
-                    <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
350
+                            <Button.Content>
351
+                                <StackPanel>
352
+                                    <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
353
+                                </StackPanel>
354
+                            </Button.Content>
355
+                        </Button>
356
+                    </StackPanel>
357
+                </Grid>
358
+                <!--设置-->
359
+                <Grid Grid.Row="1" x:Name="gridSetUp"  Background="#FFFFFF" Visibility="Collapsed" Width="1276">
360
+                    <Grid.RowDefinitions>
361
+                        <RowDefinition Height="90"/>
362
+                        <RowDefinition Height="70"/>
363
+                        <RowDefinition Height="50"/>
364
+                        <RowDefinition Height="70"/>
365
+                        <RowDefinition Height="70"/>
366
+                        <RowDefinition Height="70"/>
367
+                        <RowDefinition Height="70"/>
368
+                        <RowDefinition Height="*"/>
369
+                    </Grid.RowDefinitions>
370
+                    <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
371
+                        <TextBlock Text="   点阵笔" FontSize="16" Foreground="#2D8CF0" Width="80"/>
372
+                        <TextBlock x:Name="txbNotConnecteds"  Text="未连接" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
373
+                    </StackPanel>
374
+                    <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
375
+                        <TextBlock Text="视频格式" FontSize="16" Foreground="#2D8CF0" Width="80"/>
376
+                        <RadioButton x:Name="rbnMP4" Cursor="Hand" Content="MP4" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
377
+                        <RadioButton x:Name="rbnFLV" Cursor="Hand" Content="FLV" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
378
+                        <RadioButton x:Name="rbnAVI" Cursor="Hand" Content="AVI" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
379
+                    </StackPanel>
380
+                    <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
381
+                        <TextBlock Text="头像位置" FontSize="16" Foreground="#2D8CF0" Width="80"/>
382
+                        <RadioButton Cursor="Hand" x:Name="rbnRight" Content="右上" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
383
+                        <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Content="右下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
384
+                        <RadioButton Cursor="Hand" x:Name="rbnLeft" Content="左上" FontSize="14" Foreground="#333333" Margin="20,2,0,0" />
385
+                        <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Content="左下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
386
+                    </StackPanel>
387
+                    <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
388
+                        <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
389
+                        <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
390
+                        <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
391
+                    </StackPanel>
392
+                    <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
393
+                        <TextBlock x:Name="txbFilePath" Text="文件路径" FontSize="16" Width="80"  Foreground="#2D8CF0" Padding="2,26,10,0"/>
394
+                        <!--输入框-->
395
+                        <Border Background="#CDD6E0" Width="525" Height="43" CornerRadius="3">
396
+                            <Label x:Name="txbStoragePath" Background="#FFFFFF" Content="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="523" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
397
+                        </Border>
398
+                        <!--浏览按钮-->
399
+                        <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
400
+                            <Button.Template>
401
+                                <ControlTemplate TargetType="{x:Type Button}">
402
+                                    <Border
403
+                                BorderBrush="{TemplateBinding Control.BorderBrush}"
404
+                                BorderThickness="1"
405
+                                CornerRadius="2">
406
+                                        <Border.Background>#EBEFF3</Border.Background>
407
+                                        <ContentPresenter
408
+                                    HorizontalAlignment="Center"
409
+                                    VerticalAlignment="Center"
410
+                                    Content="{TemplateBinding ContentControl.Content}" />
411
+                                    </Border>
412
+                                </ControlTemplate>
413
+                            </Button.Template>
414
+                        </Button>
415
+                    </StackPanel>
416
+                    <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
417
+                        <TextBlock Text="    版本号" FontSize="16" Width="80" Foreground="#2D8CF0"/>
418
+                        <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333" Padding="10,0,0,0"/>
419
+                    </StackPanel>
420
+                    <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
421
+                        <TextBlock Text="版权所有" FontSize="16" Width="80" Foreground="#2D8CF0"/>
422
+                        <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
423
+                    </StackPanel>
424
+                    <!--第四行 开始按钮-->
425
+                    <Button Cursor="Hand" Grid.Row="6" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,0,10,0" Click="BtnSave_Click">
386 426
                         <Button.Template>
387 427
                             <ControlTemplate TargetType="{x:Type Button}">
388 428
                                 <Border
389 429
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
390 430
                                 BorderThickness="1"
391 431
                                 CornerRadius="2">
392
-                                        <Border.Background>#EBEFF3</Border.Background>
432
+                                    <Border.Background>#2D8CF0</Border.Background>
393 433
                                     <ContentPresenter
394 434
                                     HorizontalAlignment="Center"
395 435
                                     VerticalAlignment="Center"
@@ -398,86 +438,60 @@
398 438
                             </ControlTemplate>
399 439
                         </Button.Template>
400 440
                     </Button>
401
-                </StackPanel>
402
-                <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
403
-                    <TextBlock Text="    版本号" FontSize="16" Width="80" Foreground="#2D8CF0"/>
404
-                    <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333" Padding="10,0,0,0"/>
405
-                </StackPanel>
406
-                <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
407
-                    <TextBlock Text="版权所有" FontSize="16" Width="80" Foreground="#2D8CF0"/>
408
-                    <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
409
-                </StackPanel>
410
-                <!--第四行 开始按钮-->
411
-                <Button Cursor="Hand" Grid.Row="6" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,0,10,0" Click="BtnSave_Click">
412
-                    <Button.Template>
413
-                        <ControlTemplate TargetType="{x:Type Button}">
414
-                            <Border
415
-                                BorderBrush="{TemplateBinding Control.BorderBrush}"
416
-                                BorderThickness="1"
417
-                                CornerRadius="2">
418
-                                <Border.Background>#2D8CF0</Border.Background>
419
-                                <ContentPresenter
420
-                                    HorizontalAlignment="Center"
421
-                                    VerticalAlignment="Center"
422
-                                    Content="{TemplateBinding ContentControl.Content}" />
423
-                            </Border>
424
-                        </ControlTemplate>
425
-                    </Button.Template>
426
-                </Button>
427
-            </Grid>
441
+                </Grid>
428 442
                 <!--上传-->
429 443
                 <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Collapsed">
430 444
                     <Border Width="1276" Background="#EFF1F8">
431 445
                         <Grid  Width="1236" Background="#FFFFFF" Margin="0,0,0,0">
432
-                        <!--分4行-->
433
-                        <Grid.RowDefinitions>
434
-                            <RowDefinition Height="*"/>
435
-                                <RowDefinition Height="30"/>
436
-                            </Grid.RowDefinitions>
437
-                        <!--第二行 内容-->
438
-                        <Grid Grid.Row="0" Margin="0,0,0,0">
446
+                            <!--分4行-->
439 447
                             <Grid.RowDefinitions>
440
-                                <RowDefinition Height="45"/>
441 448
                                 <RowDefinition Height="*"/>
449
+                                <RowDefinition Height="30"/>
442 450
                             </Grid.RowDefinitions>
443
-                            <UniformGrid x:Name="uniStatisticsByTitle"
451
+                            <!--第二行 内容-->
452
+                            <Grid Grid.Row="0" Margin="0,0,0,0">
453
+                                <Grid.RowDefinitions>
454
+                                    <RowDefinition Height="45"/>
455
+                                    <RowDefinition Height="*"/>
456
+                                </Grid.RowDefinitions>
457
+                                <UniformGrid x:Name="uniStatisticsByTitle"
444 458
                 Grid.Row="0"
445 459
                 Margin="0,0,0,0"
446 460
                 Background="#E6F0FF"
447 461
                 Columns="5"
448 462
                 Rows="1">
449
-                                <TextBlock
463
+                                    <TextBlock
450 464
                     HorizontalAlignment="Center"
451 465
                     VerticalAlignment="Center"
452 466
                     FontSize="16"
453 467
                     Text="序号"  />
454
-                                <TextBlock
468
+                                    <TextBlock
455 469
                     HorizontalAlignment="Center"
456 470
                     VerticalAlignment="Center"
457 471
                     FontSize="16"
458 472
                     Text="视频名称"/>
459
-                                <!--<TextBlock
473
+                                    <!--<TextBlock
460 474
                     HorizontalAlignment="Center"
461 475
                     VerticalAlignment="Center"
462 476
                     FontSize="15"
463 477
                     Text="视频时长" Foreground="White" />-->
464
-                                <TextBlock
478
+                                    <TextBlock
465 479
                     HorizontalAlignment="Center"
466 480
                     VerticalAlignment="Center"
467 481
                     FontSize="16"
468 482
                     Text="视频大小"/>
469
-                                <TextBlock
483
+                                    <TextBlock
470 484
                     HorizontalAlignment="Center"
471 485
                     VerticalAlignment="Center"
472 486
                     FontSize="16"
473 487
                     Text="日期"/>
474
-                                <TextBlock
488
+                                    <TextBlock
475 489
                     HorizontalAlignment="Center"
476 490
                     VerticalAlignment="Center"
477 491
                     FontSize="16"
478 492
                     Text="操作"/>
479
-                            </UniformGrid>
480
-                            <ListBox Grid.Row="1" Margin="0,0,0,0"
493
+                                </UniformGrid>
494
+                                <ListBox Grid.Row="1" Margin="0,0,0,0"
481 495
                     x:Name="listView1"
482 496
                     BorderThickness="0"
483 497
                     FontSize="20"
@@ -486,53 +500,53 @@
486 500
                     ItemsSource="{Binding menuList}" 
487 501
                            ScrollViewer.HorizontalScrollBarVisibility="Disabled"
488 502
                                 ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
489
-                        </Grid>
490
-                        <StackPanel Grid.Row="3" x:Name="stpUp" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
503
+                            </Grid>
504
+                            <StackPanel Grid.Row="3" x:Name="stpUp" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
491 505
             Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
492
-                            <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
506
+                                <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
493 507
                     x:Name="btnLastPage"
494 508
                     Width="60" Height="20"
495 509
                     Click="BtnLastPage_Click">
496
-                                <Button.Content>
497
-                                    <StackPanel>
498
-                                        <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
499
-                                    </StackPanel>
500
-                                </Button.Content>
501
-                            </Button>
502
-                            <Grid Width="60"  Background="Transparent">
503
-                                <Grid.RowDefinitions>
504
-                                    <RowDefinition Height="311*"/>
505
-                                    <RowDefinition Height="483*"/>
506
-                                </Grid.RowDefinitions>
507
-                                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
508
-                                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
509
-                                        <TextBlock x:Name="txbCurrpageTwo" TextAlignment="Center" FontSize="15"/>
510
-                                        <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
511
-                                        <TextBlock x:Name="txbPageNumTwo" TextAlignment="Center" FontSize="15"/>
510
+                                    <Button.Content>
511
+                                        <StackPanel>
512
+                                            <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
513
+                                        </StackPanel>
514
+                                    </Button.Content>
515
+                                </Button>
516
+                                <Grid Width="60"  Background="Transparent">
517
+                                    <Grid.RowDefinitions>
518
+                                        <RowDefinition Height="311*"/>
519
+                                        <RowDefinition Height="483*"/>
520
+                                    </Grid.RowDefinitions>
521
+                                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
522
+                                        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
523
+                                            <TextBlock x:Name="txbCurrpageTwo" TextAlignment="Center" FontSize="15"/>
524
+                                            <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
525
+                                            <TextBlock x:Name="txbPageNumTwo" TextAlignment="Center" FontSize="15"/>
526
+                                        </StackPanel>
512 527
                                     </StackPanel>
513
-                                </StackPanel>
514
-                            </Grid>
515
-                            <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
528
+                                </Grid>
529
+                                <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
516 530
                     x:Name="btnNextPage"  Background="Transparent"
517 531
                     Width="60" Height="20"
518 532
                     Click="BtnNextPage_Click">
519
-                                <Button.Content>
520
-                                    <StackPanel>
521
-                                        <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
522
-                                    </StackPanel>
523
-                                </Button.Content>
524
-                            </Button>
525
-                        </StackPanel>
533
+                                    <Button.Content>
534
+                                        <StackPanel>
535
+                                            <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
536
+                                        </StackPanel>
537
+                                    </Button.Content>
538
+                                </Button>
539
+                            </StackPanel>
526 540
 
527
-                    </Grid>
541
+                        </Grid>
528 542
                     </Border>
529 543
                 </Grid>
530
-            <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
531
-                <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
532
-                    <TextBlock Text="颜色:" FontSize="14" Padding="10,10,0,0"/>
533
-                    <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
544
+                <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
545
+                    <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
546
+                        <TextBlock Text="颜色:" FontSize="14" Padding="10,10,0,0"/>
547
+                        <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
548
+
534 549
 
535
-                    
536 550
                         <Button Cursor="Hand" x:Name="btnRed" Background="#FF0000" Width="20" Height="20" Margin="5,2,0,0" Click="BtnRed_Click">
537 551
                             <Image x:Name="imgRed" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Visible"/>
538 552
                         </Button>
@@ -548,22 +562,22 @@
548 562
                         <Button Cursor="Hand" x:Name="btnBlue" Background="#00B4FC" Width="20" Height="20" Margin="5,2,0,0" Click="BtnBlue_Click">
549 563
                             <Image x:Name="imgBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
550 564
                         </Button>
551
-                    <TextBlock Text="粗细:" FontSize="14" Padding="15,5,0,0" Margin="5,5,0,0"/>
552
-                    <RadioButton Cursor="Hand" x:Name="rbnFine" Content="细" FontSize="14" Margin="0,10,0,0" IsChecked="True" Click="RbnFine_Click"/>
553
-                    <RadioButton Cursor="Hand" x:Name="rbnIn" Content="中" FontSize="14" Margin="5,10,0,0" Click="RbnIn_Click"/>
554
-                    <RadioButton Cursor="Hand" x:Name="rbnCrude" Content="粗" FontSize="14" Margin="5,10,0,0" Click="RbnCrude_Click"/>
555
-                    <StackPanel Orientation="Horizontal">
556
-                        <TextBlock Text="摄像头:" FontSize="14" Padding="15,10,0,0"/>
557
-                        <RadioButton Cursor="Hand" x:Name="rbnOpen" Content="开" FontSize="14" Margin="0,10,0,0" Click="RbnOpen_Click"/>
558
-                        <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content="关" FontSize="14" Margin="5,10,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
565
+                        <TextBlock Text="粗细:" FontSize="14" Padding="15,5,0,0" Margin="5,5,0,0"/>
566
+                        <RadioButton Cursor="Hand" x:Name="rbnFine" Content="细" FontSize="14" Margin="0,10,0,0" IsChecked="True" Click="RbnFine_Click"/>
567
+                        <RadioButton Cursor="Hand" x:Name="rbnIn" Content="中" FontSize="14" Margin="5,10,0,0" Click="RbnIn_Click"/>
568
+                        <RadioButton Cursor="Hand" x:Name="rbnCrude" Content="粗" FontSize="14" Margin="5,10,0,0" Click="RbnCrude_Click"/>
569
+                        <StackPanel Orientation="Horizontal">
570
+                            <TextBlock Text="摄像头:" FontSize="14" Padding="15,10,0,0"/>
571
+                            <RadioButton Cursor="Hand" x:Name="rbnOpen" Content="开" FontSize="14" Margin="0,10,0,0" Click="RbnOpen_Click"/>
572
+                            <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content="关" FontSize="14" Margin="5,10,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
573
+                        </StackPanel>
559 574
                     </StackPanel>
560
-                </StackPanel>
561
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,0">
562
-                    <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,5,0,0"/>
563
-                    <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,5,5,0"/>
564
-                </StackPanel>
575
+                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,0">
576
+                        <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,5,0,0"/>
577
+                        <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,5,5,0"/>
578
+                    </StackPanel>
579
+                </Grid>
565 580
             </Grid>
566
-        </Grid>
567 581
         </Border>
568 582
     </Viewbox>
569 583
 </Window>

+ 209
- 11
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs Datei anzeigen

@@ -25,6 +25,8 @@ using System.Collections.Specialized;
25 25
 using XHWK.WKTool.Config;
26 26
 using System.Windows.Threading;
27 27
 using System.Diagnostics;
28
+using System.Runtime.InteropServices;
29
+using System.Windows.Controls.Primitives;
28 30
 
29 31
 namespace XHWK.WKTool
30 32
 {
@@ -899,7 +901,10 @@ namespace XHWK.WKTool
899 901
                     if (APP.PageDrawList.Count >= APP.pageData.currpage && !string.IsNullOrWhiteSpace(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath))
900 902
                     {
901 903
                         imgDocumentation.Source = null;
902
-                        imgCanvas.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
904
+                        BitmapImage bitImg=new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
905
+                        imgCanvas.Source = bitImg;
906
+                        imgCanvas.Width = bitImg.Width;
907
+                        imgCanvas.Height = bitImg.Height;
903 908
                         APP.PageDrawList[APP.pageData.currpage - 1].ImgDocumentation = false;
904 909
                         ImgPrint.Visibility = Visibility.Visible;//截图成功可打印
905 910
                         ImgPrintTwo.Visibility = Visibility.Collapsed;
@@ -1225,7 +1230,10 @@ namespace XHWK.WKTool
1225 1230
                 MessageWindow.Show("请先导入文档或截图!");
1226 1231
                 return;
1227 1232
             }
1228
-
1233
+            if (RectImgBorder.Visibility != Visibility.Hidden)
1234
+            {
1235
+                HideAngleBorder();
1236
+            }
1229 1237
             //btnStop.IsEnabled = true;//停止录制按钮可点击
1230 1238
             StartRecord();
1231 1239
         }
@@ -2075,15 +2083,6 @@ namespace XHWK.WKTool
2075 2083
             Console.WriteLine("mouseXY.X = " + mouseXY.X + "; mouseXY.Y = " + mouseXY.Y);
2076 2084
 
2077 2085
         }
2078
-        private void PicEMap_MouseDown(object sender, MouseButtonEventArgs e)
2079
-        {
2080
-            System.Windows.Point point = e.GetPosition(imgCanvas);
2081
-            //Console.WriteLine("PicEmap.X = " + point.X + "; PicEmap.Y = " + point.Y);
2082
-            //if ((point.X - 304) * (point.X - 304) + (point.Y - 86) * (point.Y - 86) < 100) 
2083
-            //{
2084
-            //    Console.WriteLine("在范围内");
2085
-            //}
2086
-        }
2087 2086
         private void IMG1_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
2088 2087
         {
2089 2088
             var img = sender as ContentControl;
@@ -3145,5 +3144,204 @@ namespace XHWK.WKTool
3145 3144
             }    
3146 3145
         }
3147 3146
         #endregion
3147
+
3148
+        #region 图片拉伸移动
3149
+        /// <summary>
3150
+        /// 隐藏图片四个点和线
3151
+        /// </summary>
3152
+        void HideAngleBorder()
3153
+        {
3154
+            RectLeftUp.Visibility = Visibility.Hidden;
3155
+            RectRightUp.Visibility = Visibility.Hidden;
3156
+            RectLeftDown.Visibility = Visibility.Hidden;
3157
+            RectRightDown.Visibility = Visibility.Hidden;
3158
+            RectImgBorder.Visibility = Visibility.Hidden;
3159
+        }
3160
+        void ShowAngleBorder()
3161
+        {
3162
+            PointLocation();
3163
+            RectLeftUp.Visibility = Visibility.Visible;
3164
+            RectRightUp.Visibility = Visibility.Visible;
3165
+            RectLeftDown.Visibility = Visibility.Visible;
3166
+            RectRightDown.Visibility = Visibility.Visible;
3167
+            RectImgBorder.Visibility = Visibility.Visible;
3168
+        }
3169
+       /// <summary>
3170
+       /// 确定四个点和边框的位置大小
3171
+       /// </summary>
3172
+        void PointLocation()
3173
+        {
3174
+            RectImgBorder.Width = imgCanvas.ActualWidth + 10.0;
3175
+            RectImgBorder.Height = imgCanvas.ActualHeight + 10.0;
3176
+            RectImgBorder.Margin = new Thickness(imgCanvas.Margin.Left - 5.0, imgCanvas.Margin.Top - 5.0, 0, 0);
3177
+
3178
+            Canvas.SetLeft(RectLeftUp, imgCanvas.Margin.Left - 10.0);
3179
+            Canvas.SetTop(RectLeftUp, imgCanvas.Margin.Top - 10.0);
3180
+
3181
+            Canvas.SetLeft(RectRightUp, imgCanvas.Margin.Left + imgCanvas.ActualWidth - 10.0);
3182
+            Canvas.SetTop(RectRightUp, imgCanvas.Margin.Top - 10.0);
3183
+
3184
+            Canvas.SetLeft(RectLeftDown, imgCanvas.Margin.Left - 10.0);
3185
+            Canvas.SetTop(RectLeftDown, imgCanvas.Margin.Top + imgCanvas.ActualHeight - 10.0);
3186
+
3187
+            Canvas.SetLeft(RectRightDown, imgCanvas.Margin.Left + imgCanvas.ActualWidth - 10.0);
3188
+            Canvas.SetTop(RectRightDown, imgCanvas.Margin.Top + imgCanvas.ActualHeight - 10.0);
3189
+
3190
+        }
3191
+        #endregion
3192
+
3193
+        /// <summary>
3194
+        /// 图片失去焦点事件
3195
+        /// </summary>
3196
+        /// <param name="sender"></param>
3197
+        /// <param name="e"></param>
3198
+        private void imgCanvas_LostFocus(object sender, RoutedEventArgs e)
3199
+        {
3200
+            //HideAngleBorder();
3201
+        }
3202
+
3203
+        /// <summary>
3204
+        /// 图片获取焦点事件
3205
+        /// </summary>
3206
+        /// <param name="sender"></param>
3207
+        /// <param name="e"></param>
3208
+        private void imgCanvas_GotFocus(object sender, RoutedEventArgs e)
3209
+        {
3210
+            ShowAngleBorder();
3211
+        }
3212
+        System.Windows.Point initialPoint;
3213
+        private void PicEMap_MouseDown(object sender, MouseButtonEventArgs e)
3214
+        {
3215
+            System.Windows.Point point = e.GetPosition(imgCanvas);
3216
+            initialPoint = point;
3217
+            //Console.WriteLine("PicEmap.X = " + point.X + "; PicEmap.Y = " + point.Y);
3218
+            //if ((point.X - 304) * (point.X - 304) + (point.Y - 86) * (point.Y - 86) < 100) 
3219
+            //{
3220
+            //    Console.WriteLine("在范围内");
3221
+            //}
3222
+            HideAngleBorder();
3223
+        }
3224
+        private void imgCanvas_MouseMove(object sender, System.Windows.Input.MouseEventArgs e)
3225
+        {
3226
+            if (e.LeftButton == MouseButtonState.Pressed)
3227
+            {
3228
+                System.Windows.Point point = e.GetPosition(imgCanvas);
3229
+                imgCanvas.Margin = new Thickness(imgCanvas.Margin.Left + (point.X - initialPoint.X), imgCanvas.Margin.Top + (point.Y - initialPoint.Y), 0, 0);
3230
+            }
3231
+        }
3232
+
3233
+        private void imgCanvas_MouseUp(object sender, MouseButtonEventArgs e)
3234
+        {
3235
+            ShowAngleBorder();
3236
+        }
3237
+        System.Drawing.PointF imgRightDown;
3238
+        private void RectRightUp_DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e)
3239
+        {
3240
+            try
3241
+            {
3242
+                Thumb thu = (Thumb)sender;
3243
+                imgRightDown = new System.Drawing.PointF((float)(imgCanvas.Margin.Left + imgCanvas.ActualWidth), (float)(imgCanvas.Margin.Top + imgCanvas.ActualHeight));
3244
+                HideAngleBorder();
3245
+                switch (thu.Name)
3246
+                {
3247
+                    case "RectLeftUp":
3248
+                        RectLeftUp.Visibility = Visibility.Visible;
3249
+                        break;
3250
+                    case "RectRightUp":
3251
+                        RectRightUp.Visibility = Visibility.Visible;
3252
+                        break;
3253
+                    case "RectLeftDown":
3254
+                        RectLeftDown.Visibility = Visibility.Visible;
3255
+                        break;
3256
+                    case "RectRightDown":
3257
+                        RectRightDown.Visibility = Visibility.Visible;
3258
+                        break;
3259
+                    default:
3260
+                        break;
3261
+                }
3262
+            }
3263
+            catch (Exception ex)
3264
+            {
3265
+                MessageWindow.Show(ex.Message);
3266
+            }
3267
+        }
3268
+        private void RectRightUp_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e)
3269
+        {
3270
+            try
3271
+            {
3272
+            Thumb thu = (Thumb)sender;
3273
+            Canvas.SetLeft(thu, Canvas.GetLeft(thu) + e.HorizontalChange);
3274
+            Canvas.SetTop(thu, Canvas.GetTop(thu) + e.VerticalChange);
3275
+            //lbl1.Content = e.HorizontalChange + "," + e.VerticalChange;
3276
+            lbl2.Content = Mouse.GetPosition(gridM);
3277
+                switch (thu.Name)
3278
+                {
3279
+                    case "RectLeftUp":
3280
+                        //imgCanvas.Width -= e.HorizontalChange;
3281
+                        //imgCanvas.Height -= e.VerticalChange;
3282
+                        //imgCanvas.Margin = new Thickness(Mouse.GetPosition(gridM).X , Mouse.GetPosition(gridM).Y , 0, 0);
3283
+                        ////imgCanvas.Width = imgRightDown.X- Mouse.GetPosition(gridM).X-10.0;
3284
+                        ////imgCanvas.Height = imgRightDown.Y - Mouse.GetPosition(gridM).Y - 10.0
3285
+                        //lbl1.Content = imgRightDown.X + "," + imgRightDown.Y; ;
3286
+                        imgCanvas.Width = imgRightDown.X - (Mouse.GetPosition(gridM).X);
3287
+                        imgCanvas.Height = imgRightDown.Y - (Mouse.GetPosition(gridM).Y);
3288
+                        imgCanvas.Margin = new Thickness(Mouse.GetPosition(gridM).X, Mouse.GetPosition(gridM).Y, 0, 0);
3289
+                        break;
3290
+                    case "RectRightUp":
3291
+                        imgCanvas.Width = Mouse.GetPosition(gridM).X - imgCanvas.Margin.Left;
3292
+                        imgCanvas.Height = imgRightDown.Y - (Mouse.GetPosition(gridM).Y);
3293
+                        imgCanvas.Margin = new Thickness(imgCanvas.Margin.Left, Mouse.GetPosition(gridM).Y, 0, 0);
3294
+                        break;
3295
+                    case "RectLeftDown":
3296
+                        imgCanvas.Width = imgRightDown.X - (Mouse.GetPosition(gridM).X);
3297
+                        imgCanvas.Height = Mouse.GetPosition(gridM).Y - imgCanvas.Margin.Top;
3298
+                        imgCanvas.Margin = new Thickness(Mouse.GetPosition(gridM).X, imgCanvas.Margin.Top, 0, 0);
3299
+                        break;
3300
+                    case "RectRightDown":
3301
+                        imgCanvas.Width += e.HorizontalChange;
3302
+                        imgCanvas.Height += e.VerticalChange;
3303
+                        break;
3304
+                    default:
3305
+                        break;
3306
+                }
3307
+                lbl1.Content = imgCanvas.Margin.Left + "," + imgCanvas.Margin.Top;
3308
+                lbl2.Content = (imgCanvas.Margin.Left+ imgCanvas.Width) +"," + imgCanvas.Margin.Top;
3309
+                lbl3.Content = imgCanvas.Margin.Left + "," + (imgCanvas.Margin.Top+ imgCanvas.Height);
3310
+                lbl4.Content= (imgCanvas.Margin.Left + imgCanvas.Width )+ "," + (imgCanvas.Margin.Top + imgCanvas.Height);
3311
+                //lbl3.Content = imgCanvas.Width + "," + imgCanvas.Height;
3312
+                //lbl4.Content = (imgCanvas.Margin.Left + imgCanvas.ActualWidth)+","+ (imgCanvas.Margin.Top + imgCanvas.ActualHeight);
3313
+            }
3314
+            catch (Exception ex)
3315
+            {
3316
+                MessageWindow.Show(ex.Message);
3317
+            }
3318
+        }
3319
+
3320
+        private void RectRightUp_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e)
3321
+        {
3322
+            ShowAngleBorder();
3323
+        }
3324
+
3325
+        private void gridM_MouseDown(object sender, MouseButtonEventArgs e)
3326
+        {
3327
+        }
3328
+
3329
+        private void Canvas_MouseDown(object sender, MouseButtonEventArgs e)
3330
+        {
3331
+
3332
+        }
3333
+
3334
+        private void IMG_MouseDown(object sender, MouseButtonEventArgs e)
3335
+        {
3336
+        }
3337
+
3338
+        private void GridMain_MouseDown(object sender, MouseButtonEventArgs e)
3339
+        {
3340
+        }
3341
+
3342
+        private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
3343
+        {
3344
+            HideAngleBorder();
3345
+        }
3148 3346
     }
3149 3347
 }

Laden…
Abbrechen
Speichern