Browse Source

zhao:1解决百分比125%遮挡问题。

tags/录制修改前
耀 4 years ago
parent
commit
99adde4732

+ 1
- 1
XHWK.WKTool/CreateAMicroLessonWindow.xaml.cs View File

@@ -29,7 +29,7 @@ namespace XHWK.WKTool
29 29
             ResizeMode = ResizeMode.NoResize;
30 30
             if (!APP.CheckScreenCapturerRecorder())
31 31
             {
32
-                MessageWindow.Show("首次运行需安装环境,请在确定后依次点击“OK-Next>-Next>Install”完成安装!");
32
+                MessageWindow.Show("首次运行需安装环境,请在确定后依次点击“English-OK-Next>-Next>Install”完成安装!");
33 33
                 APP.InstallScreenCapturerRecorder();
34 34
             }
35 35
             txbStoragePath.Text = FileToolsCommon.GetConfigValue("VideoSavePath");

+ 39
- 43
XHWK.WKTool/XHMicroLessonSystemWindow.xaml View File

@@ -318,18 +318,18 @@
318 318
                              MouseWheel="IMG1_MouseWheel" >
319 319
                                             </ContentControl>
320 320
                                         </ScrollViewer>-->
321
-                                    <!--图片表框 -->
322
-                                    <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"/>
323
-                                    <Image Name="imgCanvas" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseLeftButtonDown="imgCanvas_MouseLeftButtonDown" Focusable="True" MouseMove="imgCanvas_MouseMove" MouseUp="imgCanvas_MouseUp"/>
324
-                                    <!--四个点 -->
325
-                                    <Canvas>
326
-                                        <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"/>
327
-                                        <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"/>
328
-                                        <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"/>
329
-                                        <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"/>
330
-                                    </Canvas>
331
-                                </Grid>
332
-                            </Border>
321
+                                        <!--图片表框 -->
322
+                                        <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"/>
323
+                                        <Image x:Name="imgCanvas" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseLeftButtonDown="imgCanvas_MouseLeftButtonDown" Focusable="True" MouseMove="imgCanvas_MouseMove" MouseUp="imgCanvas_MouseUp"/>
324
+                                        <!--四个点 -->
325
+                                        <Canvas>
326
+                                            <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"/>
327
+                                            <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"/>
328
+                                            <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"/>
329
+                                            <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"/>
330
+                                        </Canvas>
331
+                                    </Grid>
332
+                                </Border>
333 333
                             </Grid>
334 334
                             <Image x:Name="imgDocumentation" Visibility="Visible" Stretch="Fill"/>
335 335
                             <!--<Grid Width="auto" Height="auto" HorizontalAlignment="Center" VerticalAlignment="Center">
@@ -338,11 +338,11 @@
338 338
                                 </Border>
339 339
                             </Grid>-->
340 340
                             <Image x:Name="imgPPT" Visibility="Visible" VerticalAlignment="Top"/>
341
-                        <!--导入图片-->
342
-                        <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
343
-                        <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2"/>
344
-                        <!--摄像头-->
345
-                        <!--<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">
341
+                            <!--导入图片-->
342
+                            <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
343
+                            <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2"/>
344
+                            <!--摄像头-->
345
+                            <!--<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">
346 346
                     <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172"  />
347 347
                 </wfi:WindowsFormsHost>-->
348 348
                             <!--<Image x:Name="imgLoad"
@@ -438,14 +438,16 @@
438 438
                             <Button.Template>
439 439
                                 <ControlTemplate TargetType="{x:Type Button}">
440 440
                                     <Border
441
-                                BorderBrush="{TemplateBinding Control.BorderBrush}"
441
+                                BorderBrush="{TemplateBinding BorderBrush}"
442 442
                                 BorderThickness="1"
443 443
                                 CornerRadius="2">
444
-                                        <Border.Background>#EBEFF3</Border.Background>
444
+                                        <Border.Background>
445
+                                            <Brush>#EBEFF3</Brush>
446
+                                        </Border.Background>
445 447
                                         <ContentPresenter
446 448
                                     HorizontalAlignment="Center"
447 449
                                     VerticalAlignment="Center"
448
-                                    Content="{TemplateBinding ContentControl.Content}" />
450
+                                    Content="{TemplateBinding Content}" />
449 451
                                     </Border>
450 452
                                 </ControlTemplate>
451 453
                             </Button.Template>
@@ -471,14 +473,16 @@
471 473
                         <Button.Template>
472 474
                             <ControlTemplate TargetType="{x:Type Button}">
473 475
                                 <Border
474
-                                BorderBrush="{TemplateBinding Control.BorderBrush}"
476
+                                BorderBrush="{TemplateBinding BorderBrush}"
475 477
                                 BorderThickness="1"
476 478
                                 CornerRadius="2">
477
-                                    <Border.Background>#2D8CF0</Border.Background>
479
+                                    <Border.Background>
480
+                                        <Brush>#2D8CF0</Brush>
481
+                                    </Border.Background>
478 482
                                     <ContentPresenter
479 483
                                     HorizontalAlignment="Center"
480 484
                                     VerticalAlignment="Center"
481
-                                    Content="{TemplateBinding ContentControl.Content}" />
485
+                                    Content="{TemplateBinding Content}" />
482 486
                                 </Border>
483 487
                             </ControlTemplate>
484 488
                         </Button.Template>
@@ -553,11 +557,9 @@
553 557
                     x:Name="btnLastPage"
554 558
                     Width="60" Height="20"
555 559
                     Click="BtnLastPage_Click">
556
-                                <Button.Content>
557
-                                    <StackPanel>
558
-                                        <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
559
-                                    </StackPanel>
560
-                                </Button.Content>
560
+                                <StackPanel>
561
+                                    <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
562
+                                </StackPanel>
561 563
                             </Button>
562 564
                             <Grid Width="60"  Background="Transparent">
563 565
                                 <Grid.RowDefinitions>
@@ -576,11 +578,9 @@
576 578
                     x:Name="btnNextPage"  Background="Transparent"
577 579
                     Width="60" Height="20"
578 580
                     Click="BtnNextPage_Click">
579
-                                <Button.Content>
580
-                                    <StackPanel>
581
-                                        <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
582
-                                    </StackPanel>
583
-                                </Button.Content>
581
+                                <StackPanel>
582
+                                    <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
583
+                                </StackPanel>
584 584
                             </Button>
585 585
                         </StackPanel>
586 586
                     </Grid>
@@ -645,11 +645,9 @@
645 645
                     Width="28" Height="20"
646 646
                     Click="last_button_Click">
647 647
 
648
-                            <Button.Content>
649
-                                <StackPanel>
650
-                                    <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
651
-                                </StackPanel>
652
-                            </Button.Content>
648
+                            <StackPanel>
649
+                                <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
650
+                            </StackPanel>
653 651
                         </Button>
654 652
                         <Grid Width="60"  Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
655 653
                             <Grid.RowDefinitions>
@@ -668,11 +666,9 @@
668 666
                     x:Name="next_btn"  Background="Transparent"
669 667
                     Width="28" Height="20"
670 668
                     Click="next_btn_Click">
671
-                            <Button.Content>
672
-                                <StackPanel>
673
-                                    <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
674
-                                </StackPanel>
675
-                            </Button.Content>
669
+                            <StackPanel>
670
+                                <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
671
+                            </StackPanel>
676 672
                         </Button>
677 673
                     </StackPanel>
678 674
                 </Grid>

+ 4
- 5
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

@@ -2776,6 +2776,8 @@ namespace XHWK.WKTool
2776 2776
         /// </summary>
2777 2777
         private void W_ScreenRecordingToolbarWindow_Click_stopRecordingScreen()
2778 2778
         {
2779
+            txbTime.Text = "";
2780
+            txbTime.Visibility = Visibility.Hidden;
2779 2781
             txbType.Visibility = Visibility.Visible;
2780 2782
             txbType.Text = "保存中";
2781 2783
             btnScreenRecording.IsEnabled = false;
@@ -3326,8 +3328,6 @@ namespace XHWK.WKTool
3326 3328
                     //根据录制时间长度确定是否保存
3327 3329
                     if (SRTime.Hour > 0 || SRTime.Minute > 0 || SRTime.Second > 3)
3328 3330
                     {
3329
-                        txbType.Visibility = Visibility.Visible;
3330
-                        txbType.Text = "保存中";
3331 3331
                         #region 2秒内不可点击
3332 3332
                         new Thread(new ThreadStart(new Action(() =>
3333 3333
                         {
@@ -3359,6 +3359,8 @@ namespace XHWK.WKTool
3359 3359
                                 //End();
3360 3360
                                 txbTime.Text = "";
3361 3361
                                 txbTime.Visibility = Visibility.Hidden;
3362
+                                txbType.Visibility = Visibility.Visible;
3363
+                                txbType.Text = "保存中";
3362 3364
                             });
3363 3365
                             //}))).Start();
3364 3366
                             //new Thread(new ThreadStart(new Action(() =>
@@ -3455,9 +3457,6 @@ namespace XHWK.WKTool
3455 3457
                         timer.Dispose();
3456 3458
                         IsFirstR = true;
3457 3459
 
3458
-
3459
-
3460
-
3461 3460
                         BtnRecord.IsEnabled = true;
3462 3461
                         btnStop.IsEnabled = true;
3463 3462
                         TxbRecordingWord.Text = "录制";

Loading…
Cancel
Save