Browse Source

录屏 画板功能。

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
5e6fd2992f

+ 3
- 1
XHWK.WKTool/PracticeWindow.xaml.cs View File

@@ -26,7 +26,9 @@ namespace XHWK.WKTool
26 26
         }
27 27
         public void Initialize(string _imgPath)
28 28
         {
29
-            if(File.Exists(_imgPath))
29
+            blackboard_canvas.Strokes.Clear();
30
+            //blackboard_canvas.EditingMode = InkCanvasEditingMode.EraseByStroke;
31
+            if (File.Exists(_imgPath))
30 32
             {
31 33
                 imgCanvas.Source = new BitmapImage(new Uri(_imgPath));
32 34
             }

+ 6
- 2
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

@@ -58,7 +58,10 @@ namespace XHWK.WKTool
58 58
             blackboard_canvas.DefaultDrawingAttributes = drawingAttributes;
59 59
             drawingAttributes.FitToCurve = true;
60 60
             //隐藏画笔工具栏
61
-            BtnToolbarDown_Click(null, null);
61
+            //BtnToolbarDown_Click(null, null);
62
+            gridToolbar.Visibility = Visibility.Hidden;
63
+            gridColour.Visibility = Visibility.Hidden;
64
+            gridThickness.Visibility = Visibility.Hidden;
62 65
         }
63 66
         #endregion
64 67
 
@@ -192,6 +195,7 @@ namespace XHWK.WKTool
192 195
             gridToolbar.Visibility = Visibility.Hidden;
193 196
             gridColour.Visibility = Visibility.Hidden;
194 197
             gridThickness.Visibility = Visibility.Hidden;
198
+            APP.W_PracticeWindow.Hide();
195 199
         }
196 200
         /// <summary>
197 201
         /// 画笔点击事件
@@ -230,7 +234,7 @@ namespace XHWK.WKTool
230 234
                     //practiceWin.Owner = this;
231 235
                 }
232 236
                 APP.W_PracticeWindow.Initialize(imagePath);
233
-                APP.W_PracticeWindow.ShowDialog();
237
+                APP.W_PracticeWindow.Show();
234 238
             }
235 239
             catch (Exception ex)
236 240
             {

Loading…
Cancel
Save