Parcourir la source

录制倒计时过程禁止暂停

录制保存过程中禁止退出
录制结束时禁止暂停
倒计时过程中禁止停止
倒计时时禁止退出
tags/对接微服务前
张剑 il y a 2 ans
Parent
révision
95df6d0f39

+ 2
- 2
XHWK.WKTool/App.config Voir le fichier

@@ -9,8 +9,8 @@
9 9
     <!--参数是否加密 0不加密 1加密-->
10 10
     <add key="IsParameterEncryption" value="0" />
11 11
     <!--版本号-->
12
-    <add key="VersionCode" value="103" />
13
-    <add key="VersionName" value="3.1.9" />
12
+    <add key="VersionCode" value="105" />
13
+    <add key="VersionName" value="3.1.11" />
14 14
     <!--皮肤样式 0白 1蓝 2黑色 -->
15 15
     <add key="SkinStyle" value="0" />
16 16
     <!--是否输出视频记录日志:0否-->

+ 4
- 4
XHWK.WKTool/MainWindow.xaml Voir le fichier

@@ -341,11 +341,11 @@
341 341
                                 Background="#FFE5E5E5" />
342 342
                         </Grid>
343 343
                         <!--  录屏按钮  -->
344
-                        <Grid Grid.Column="2">
344
+                        <Grid Name="start_pause_grid" Grid.Column="2">
345 345
                             <StackPanel Orientation="Horizontal" />
346 346
                             <Button
347 347
                                 x:Name="BtnRecord"
348
-                                Margin="10,5,0,5"
348
+                                Margin="5,0"
349 349
                                 HorizontalAlignment="Stretch"
350 350
                                 VerticalAlignment="Center"
351 351
                                 Button.Template="{DynamicResource SkinBtnRecord}"
@@ -365,7 +365,7 @@
365 365
                                 Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
366 366
                                 Visibility="Collapsed" />
367 367
                         </Grid>
368
-                        <Grid Grid.Column="3">
368
+                        <Grid Name="stop_grid" Grid.Column="3">
369 369
                             <Button
370 370
                                 x:Name="BtnStop"
371 371
                                 Margin="5,0"
@@ -380,7 +380,7 @@
380 380
                     </Grid>
381 381
 
382 382
                     <!--  关闭  -->
383
-                    <Grid Grid.Column="2">
383
+                    <Grid Name="close_grid" Grid.Column="2">
384 384
                         <Label
385 385
                             Width="2"
386 386
                             Margin="0,15"

+ 126
- 114
XHWK.WKTool/MainWindow.xaml.cs Voir le fichier

@@ -2835,6 +2835,8 @@ namespace XHWK.WKTool
2835 2835
         //录制麦克风的声音
2836 2836
         private WaveInEvent waveIn = null;
2837 2837
 
2838
+        private bool waveIn_runing = false;
2839
+
2838 2840
         //音频写入
2839 2841
         private WaveFileWriter writer = null;
2840 2842
 
@@ -2845,7 +2847,7 @@ namespace XHWK.WKTool
2845 2847
         /// </param>
2846 2848
         /// <param name="e">
2847 2849
         /// </param>
2848
-        private void BtnRecord_Click(object sender, RoutedEventArgs e)
2850
+        private async void BtnRecord_Click(object sender, RoutedEventArgs e)
2849 2851
         {
2850 2852
             #region 防止连击
2851 2853
 
@@ -2873,73 +2875,74 @@ namespace XHWK.WKTool
2873 2875
 
2874 2876
             if (RecordType == 0)
2875 2877
             {
2876
-                ThreadPool.QueueUserWorkItem(o =>
2878
+                bool microphoneGood = true;
2879
+                start_pause_grid.Visibility = Visibility.Hidden;
2880
+                stop_grid.Visibility = Visibility.Hidden;
2881
+                close_grid.Visibility = Visibility.Hidden;
2882
+                await Task.Run(() =>
2877 2883
                 {
2878
-                    bool microphoneGood = ZAudioRecordHelper.IsDeviceGood(ZAudioRecordHelper.RecordType.microphone);
2884
+                    microphoneGood = ZAudioRecordHelper.IsDeviceGood(ZAudioRecordHelper.RecordType.microphone);
2885
+                });
2886
+                if (!microphoneGood)
2887
+                {
2888
+                    start_pause_grid.Visibility = Visibility.Visible;
2889
+                    stop_grid.Visibility = Visibility.Visible;
2890
+                    close_grid.Visibility = Visibility.Visible;
2891
+                    MessageWindow.Show("麦克风不可用");
2892
+                    return;
2893
+                }
2879 2894
 
2880
-                    Dispatcher.Invoke(() =>
2881
-                    {
2882
-                        if (!microphoneGood)
2883
-                        {
2884
-                            MessageWindow.Show("麦克风不可用");
2885
-                            return;
2886
-                        }
2895
+                blackboard_canvas.Visibility = Visibility.Visible;
2896
+                if (RectImgBorder.Visibility != Visibility.Hidden)
2897
+                {
2898
+                    HideAngleBorder();
2899
+                }
2887 2900
 
2888
-                        //停止中开始录制
2889
-                        RecordType = 3;
2890
-                        blackboard_canvas.Visibility = Visibility.Visible;
2891
-                        if (RectImgBorder.Visibility != Visibility.Hidden)
2892
-                        {
2893
-                            HideAngleBorder();
2894
-                        }
2901
+                Record();
2895 2902
 
2896
-                        Record();
2903
+                BtnPrint.IsEnabled = false;
2904
+                BtnScreenshot.IsEnabled = false;
2905
+                BtnImport.IsEnabled = false;
2906
+                BtnScreenRecording.IsEnabled = false;
2907
+                BtnUpload.IsEnabled = false;
2908
+                BtnSetUp.IsEnabled = false;
2909
+                BtnDevice.IsEnabled = false;
2897 2910
 
2898
-                        BtnPrint.IsEnabled = false;
2899
-                        BtnScreenshot.IsEnabled = false;
2900
-                        BtnImport.IsEnabled = false;
2901
-                        BtnScreenRecording.IsEnabled = false;
2902
-                        BtnUpload.IsEnabled = false;
2903
-                        BtnSetUp.IsEnabled = false;
2904
-                        BtnDevice.IsEnabled = false;
2911
+                BtnLoginType.IsEnabled = false;
2912
+                blackboard_canvas.Visibility = Visibility.Visible;
2905 2913
 
2906
-                        BtnLoginType.IsEnabled = false;
2907
-                        blackboard_canvas.Visibility = Visibility.Visible;
2914
+                TxbType.Text = "准备录制";
2915
+                BtnRecord.Visibility = Visibility.Collapsed;
2916
+                BtnRecordSuspend.Visibility = Visibility.Visible;
2917
+                BtnRecord.IsEnabled = true;
2918
+                BtnStop.IsEnabled = true;
2908 2919
 
2909
-                        TxbType.Text = "准备录制";
2910
-                        BtnRecord.Visibility = Visibility.Collapsed;
2911
-                        BtnRecordSuspend.Visibility = Visibility.Visible;
2912
-                        BtnRecord.IsEnabled = true;
2913
-                        BtnStop.IsEnabled = true;
2920
+                #region 录像倒计时
2914 2921
 
2915
-                        #region 录像倒计时
2922
+                if (APP.W_CountdownWindow == null)
2923
+                {
2924
+                    APP.W_CountdownWindow = new CountdownWindow();
2925
+                    APP.W_CountdownWindow.Initialize();
2926
+                }
2927
+                else
2928
+                {
2929
+                    APP.W_CountdownWindow.Initialize();
2930
+                }
2931
+                APP.W_CountdownWindow.Show();
2916 2932
 
2917
-                        if (APP.W_CountdownWindow == null)
2918
-                        {
2919
-                            APP.W_CountdownWindow = new CountdownWindow();
2920
-                            APP.W_CountdownWindow.Initialize();
2921
-                        }
2922
-                        else
2923
-                        {
2924
-                            APP.W_CountdownWindow.Initialize();
2925
-                        }
2926
-                        APP.W_CountdownWindow.Show();
2933
+                #endregion 录像倒计时
2927 2934
 
2928
-                        #endregion 录像倒计时
2935
+                await Task.Delay(3000);
2936
+                //停止中开始录制
2937
+                RecordType = 3;
2938
+                close_grid.Visibility = Visibility.Visible;
2929 2939
 
2930
-                        new Thread(new ThreadStart(new Action(() =>
2931
-                        {
2932
-                            Thread.Sleep(3000);
2940
+                TxbType.Text = "正在录制";
2941
+                RecordType = 1;
2942
+                await StartRecord();
2933 2943
 
2934
-                            Dispatcher.Invoke(() =>
2935
-                            {
2936
-                                TxbType.Text = "正在录制";
2937
-                            });
2938
-                            RecordType = 1;
2939
-                            StartRecord();
2940
-                        }))).Start();
2941
-                    });
2942
-                });
2944
+                start_pause_grid.Visibility = Visibility.Visible;
2945
+                stop_grid.Visibility = Visibility.Visible;
2943 2946
             }
2944 2947
             else if (RecordType == 1)
2945 2948
             {
@@ -3007,11 +3010,11 @@ namespace XHWK.WKTool
3007 3010
 
3008 3011
             if (RecordType != 0)
3009 3012
             {
3010
-                RecordType = 0;
3011 3013
                 blackboard_canvas.Visibility = Visibility.Collapsed;
3012 3014
                 //鼠标模式
3013 3015
                 luoBoPenUtil.lb_device_mouse();
3014 3016
                 await EndRecord();
3017
+                RecordType = 0;
3015 3018
             }
3016 3019
         }
3017 3020
 
@@ -3050,6 +3053,8 @@ namespace XHWK.WKTool
3050 3053
 
3051 3054
             TxbTime.Text = "00:00";
3052 3055
             TxbType.Text = "保存中";
3056
+
3057
+            start_pause_grid.Visibility = Visibility.Hidden;
3053 3058
             await Task.Run(() =>
3054 3059
             {
3055 3060
                 try
@@ -3057,7 +3062,11 @@ namespace XHWK.WKTool
3057 3062
                     videoWriter.Close();
3058 3063
                     waveIn.StopRecording();
3059 3064
 
3060
-                    Thread.Sleep(300);
3065
+                    //等待音频结束回调
3066
+                    while (waveIn_runing)
3067
+                    {
3068
+                        Thread.Sleep(300);
3069
+                    }
3061 3070
 
3062 3071
                     Process[] KillProcessArray = Process.GetProcessesByName("ffmpeg");
3063 3072
                     foreach (Process KillProcess in KillProcessArray)
@@ -3134,6 +3143,7 @@ namespace XHWK.WKTool
3134 3143
             TxbType.Text = "准备就绪";
3135 3144
             BtnRecord.Visibility = Visibility.Visible;
3136 3145
             BtnRecordSuspend.Visibility = Visibility.Collapsed;
3146
+            start_pause_grid.Visibility = Visibility.Visible;
3137 3147
         }
3138 3148
 
3139 3149
         /// <summary>
@@ -3170,75 +3180,77 @@ namespace XHWK.WKTool
3170 3180
         /// <summary>
3171 3181
         /// 开始录制和暂停录制
3172 3182
         /// </summary>
3173
-        private void StartRecord()
3183
+        private async Task StartRecord()
3174 3184
         {
3175
-            //电子版切换笔模式
3176
-            luoBoPenUtil.lb_device_hand();
3177
-
3178
-            VideoInfo = new Model_Video
3185
+            await Task.Run(() =>
3179 3186
             {
3180
-                VideoType = (Enum_VideoType)int.Parse(FileToolsCommon.GetConfigValue("VideoType")),
3181
-                WkType = Enum_WKVidetype.RecordingLessons
3182
-            };
3187
+                //电子版切换笔模式
3188
+                luoBoPenUtil.lb_device_hand();
3183 3189
 
3184
-            FileToolsCommon.DeleteDirectory(APP.WKData.WkPath + "temp/");
3185
-            FileToolsCommon.CreateDirectory(APP.WKData.WkPath);
3190
+                VideoInfo = new Model_Video
3191
+                {
3192
+                    VideoType = (Enum_VideoType)int.Parse(FileToolsCommon.GetConfigValue("VideoType")),
3193
+                    WkType = Enum_WKVidetype.RecordingLessons
3194
+                };
3186 3195
 
3187
-            VideoSavePathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制." + VideoInfo.VideoType.ToString();
3196
+                FileToolsCommon.DeleteDirectory(APP.WKData.WkPath + "temp/");
3197
+                FileToolsCommon.CreateDirectory(APP.WKData.WkPath);
3188 3198
 
3189
-            TempVideoPathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制Syn.avi";
3190
-            int num = 1;
3191
-            while (FileToolsCommon.IsExistFile(VideoSavePathName))
3192
-            {
3193
-                VideoSavePathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制_" + num + "." + VideoInfo.VideoType.ToString();
3194
-                TempVideoPathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制Syn_" + num + ".avi";
3195
-                num++;
3196
-            }
3199
+                VideoSavePathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制." + VideoInfo.VideoType.ToString();
3197 3200
 
3198
-            TempAudioPathName = TempVideoPathName.Replace(".avi", ".mp3");
3199
-            gridActWidth = (int)(GridMain.ActualWidth * (PrimaryScreen.DpiX / 96f) / 2) * 2;
3200
-            gridActHeight = (int)(GridMain.ActualHeight * (PrimaryScreen.DpiY / 96f) / 2) * 2;
3201
-
3202
-            lock (this)
3203
-            {
3204
-                videoWriter.Open(
3205
-                    TempVideoPathName,
3206
-                    gridActWidth,
3207
-                    gridActHeight,
3208
-                    5,
3209
-                    VideoCodec.MPEG4,
3210
-                    gridActWidth * gridActHeight * 10
3211
-                );
3212
-
3213
-                waveIn = new WaveInEvent();
3214
-                writer = new WaveFileWriter(TempAudioPathName, waveIn.WaveFormat);
3215
-                //开始录音,写数据
3216
-                waveIn.DataAvailable += (s, a) =>
3201
+                TempVideoPathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制Syn.avi";
3202
+                int num = 1;
3203
+                while (FileToolsCommon.IsExistFile(VideoSavePathName))
3217 3204
                 {
3218
-                    if (RecordType == 1)
3219
-                    {
3220
-                        writer.Write(a.Buffer, 0, a.BytesRecorded);
3221
-                    }
3222
-                };
3205
+                    VideoSavePathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制_" + num + "." + VideoInfo.VideoType.ToString();
3206
+                    TempVideoPathName = APP.WKData.WkPath + APP.WKData.WkName + "_录制Syn_" + num + ".avi";
3207
+                    num++;
3208
+                }
3223 3209
 
3224
-                //结束录音
3225
-                waveIn.RecordingStopped += (s, a) =>
3210
+                TempAudioPathName = TempVideoPathName.Replace(".avi", ".mp3");
3211
+                gridActWidth = (int)(GridMain.ActualWidth * (PrimaryScreen.DpiX / 96f) / 2) * 2;
3212
+                gridActHeight = (int)(GridMain.ActualHeight * (PrimaryScreen.DpiY / 96f) / 2) * 2;
3213
+
3214
+                lock (this)
3226 3215
                 {
3227
-                    writer.Dispose();
3228
-                    writer = null;
3229
-                    waveIn.Dispose();
3230
-                };
3216
+                    videoWriter.Open(
3217
+                        TempVideoPathName,
3218
+                        gridActWidth,
3219
+                        gridActHeight,
3220
+                        5,
3221
+                        VideoCodec.MPEG4,
3222
+                        gridActWidth * gridActHeight * 10
3223
+                    );
3231 3224
 
3232
-                waveIn.StartRecording();
3233
-            }
3234
-            Dispatcher.Invoke(() =>
3235
-            {
3236
-                SRTime = Convert.ToDateTime("2020-01-01 00:00:00");
3237
-                Recorddt = DateTime.Now;
3225
+                    waveIn = new WaveInEvent();
3226
+                    waveIn_runing = true;
3227
+                    writer = new WaveFileWriter(TempAudioPathName, waveIn.WaveFormat);
3228
+                    //开始录音,写数据
3229
+                    waveIn.DataAvailable += (s, a) =>
3230
+                    {
3231
+                        if (RecordType == 1)
3232
+                        {
3233
+                            writer.Write(a.Buffer, 0, a.BytesRecorded);
3234
+                        }
3235
+                    };
3236
+
3237
+                    //结束录音
3238
+                    waveIn.RecordingStopped += (s, a) =>
3239
+                    {
3240
+                        writer.Dispose();
3241
+                        writer = null;
3242
+                        waveIn.Dispose();
3243
+                        waveIn_runing = false;
3244
+                    };
3245
+
3246
+                    waveIn.StartRecording();
3247
+                }
3238 3248
             });
3249
+            SRTime = Convert.ToDateTime("2020-01-01 00:00:00");
3250
+            Recorddt = DateTime.Now;
3239 3251
 
3240 3252
             ///启动截图
3241
-            timer = new System.Threading.Timer(new TimerCallback(Timer_Elapsed), null, 0, 200);
3253
+            timer = new Timer(new TimerCallback(Timer_Elapsed), null, 0, 200);
3242 3254
         }
3243 3255
 
3244 3256
         /// <summary>

+ 280
- 154
XHWK.WKTool/Skin/SkinDictionary_TechnologyBlue.xaml Voir le fichier

@@ -1,328 +1,454 @@
1
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
-                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3 2
 
4
-    <!--Title背景-->
5
-    <ImageBrush x:Key="BackTitle" ImageSource="/SkinImages/TechnologyBlue/HM_BJTitle.png"/>
6
-    <!--工具栏背景-->
7
-    <ImageBrush x:Key="BackTool" ImageSource="/SkinImages/TechnologyBlue/HM_BJTool.png"/>
8
-    <!--笔状态图标-->
9
-    <Style x:Key="TitlePenState"  TargetType="{x:Type Image}">
10
-        <Setter Property="Source" Value="/SkinImages/TechnologyBlue/HM_PenState.png"/>
3
+    <!--  Title背景  -->
4
+    <ImageBrush x:Key="BackTitle" ImageSource="/SkinImages/TechnologyBlue/HM_BJTitle.png" />
5
+    <!--  工具栏背景  -->
6
+    <ImageBrush x:Key="BackTool" ImageSource="/SkinImages/TechnologyBlue/HM_BJTool.png" />
7
+    <!--  笔状态图标  -->
8
+    <Style x:Key="TitlePenState" TargetType="{x:Type Image}">
9
+        <Setter Property="Source" Value="/SkinImages/TechnologyBlue/HM_PenState.png" />
11 10
     </Style>
12
-    <!--笔状态颜色-->
13
-    <Style x:Key="PenStateColor"  TargetType="TextBlock">
14
-        <Setter Property="Foreground" Value="#FFFFFFFF"/>
11
+    <!--  笔状态颜色  -->
12
+    <Style x:Key="PenStateColor" TargetType="TextBlock">
13
+        <Setter Property="Foreground" Value="#FFFFFFFF" />
15 14
     </Style>
16
-    <!--时间图标-->
17
-    <Style x:Key="TitleLZTimeImg"  TargetType="{x:Type Image}">
18
-        <Setter Property="Source" Value="/SkinImages/TechnologyBlue/HM_LZIMG.png"/>
15
+    <!--  时间图标  -->
16
+    <Style x:Key="TitleLZTimeImg" TargetType="{x:Type Image}">
17
+        <Setter Property="Source" Value="/SkinImages/TechnologyBlue/HM_LZIMG.png" />
19 18
     </Style>
20
-    <!--LOGO颜色-->
21
-    <Style x:Key="LogoColor"  TargetType="TextBlock">
22
-        <Setter Property="Foreground" Value="#FFFFFFFF"/>
19
+    <!--  LOGO颜色  -->
20
+    <Style x:Key="LogoColor" TargetType="TextBlock">
21
+        <Setter Property="Foreground" Value="#FFFFFFFF" />
23 22
     </Style>
24
-    <!--消息颜色-->
25
-    <Style x:Key="TxbMesColor"  TargetType="TextBlock">
26
-        <Setter Property="Foreground" Value="#FFFFFFFF"/>
23
+    <!--  消息颜色  -->
24
+    <Style x:Key="TxbMesColor" TargetType="TextBlock">
25
+        <Setter Property="Foreground" Value="#FFFFFFFF" />
27 26
     </Style>
28
-    <!--登陆颜色-->
29
-    <Style x:Key="LoginTypeColor"  TargetType="TextBlock">
30
-        <Setter Property="Foreground" Value="#FFFFFFFF"/>
27
+    <!--  登陆颜色  -->
28
+    <Style x:Key="LoginTypeColor" TargetType="TextBlock">
29
+        <Setter Property="Foreground" Value="#FFFFFFFF" />
31 30
     </Style>
32
-    
33
-    <!--关闭按钮-->
31
+
32
+    <!--  关闭按钮  -->
34 33
     <ControlTemplate x:Key="SkinBtnClose" TargetType="{x:Type Button}">
35 34
         <Grid>
36 35
             <Grid.ColumnDefinitions>
37
-                <ColumnDefinition Width="23*"/>
38
-                <ColumnDefinition Width="72*"/>
36
+                <ColumnDefinition Width="23*" />
37
+                <ColumnDefinition Width="72*" />
39 38
             </Grid.ColumnDefinitions>
40
-            <Image Grid.ColumnSpan="2" x:Name="ImgSetUp" Source="/SkinImages/TechnologyBlue/HM_Close.png"/>
41
-            <Label Grid.Column="1" x:Name="Word" Content="关闭程序" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
39
+            <Image
40
+                x:Name="ImgSetUp"
41
+                Grid.ColumnSpan="2"
42
+                Source="/SkinImages/TechnologyBlue/HM_Close.png" />
43
+            <Label
44
+                x:Name="Word"
45
+                Grid.Column="1"
46
+                HorizontalAlignment="Center"
47
+                VerticalAlignment="Center"
48
+                Content="关闭程序"
49
+                FontSize="{TemplateBinding FontSize}"
50
+                Foreground="#FFFFFFFF" />
42 51
         </Grid>
43 52
         <ControlTemplate.Triggers>
44 53
             <Trigger Property="IsMouseOver" Value="True">
45
-                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/HM_Close_MI.png"/>
46
-                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff"/>
54
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/HM_Close_MI.png" />
55
+                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff" />
47 56
             </Trigger>
48 57
         </ControlTemplate.Triggers>
49 58
     </ControlTemplate>
50 59
 
51
-    <!--录制按钮-->
60
+    <!--  录制按钮  -->
52 61
     <ControlTemplate x:Key="SkinBtnRecord" TargetType="{x:Type Button}">
53 62
         <Grid>
54 63
             <Grid.ColumnDefinitions>
55
-                <ColumnDefinition Width="23*"/>
56
-                <ColumnDefinition Width="72*"/>
64
+                <ColumnDefinition Width="23*" />
65
+                <ColumnDefinition Width="72*" />
57 66
             </Grid.ColumnDefinitions>
58
-            <Image Grid.ColumnSpan="2" x:Name="ImgRecord" Source="/SkinImages/TechnologyBlue/Toolbar_LZ.png"/>
59
-            <Label Grid.Column="1" x:Name="Word" Content="开始录制" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
67
+            <Image
68
+                x:Name="ImgRecord"
69
+                Grid.ColumnSpan="2"
70
+                Source="/SkinImages/TechnologyBlue/Toolbar_LZ.png" />
71
+            <Label
72
+                x:Name="Word"
73
+                Grid.Column="1"
74
+                HorizontalAlignment="Center"
75
+                VerticalAlignment="Center"
76
+                Content="开始录制"
77
+                FontSize="{TemplateBinding FontSize}"
78
+                Foreground="#FFFFFFFF" />
60 79
         </Grid>
61 80
         <ControlTemplate.Triggers>
62 81
             <Trigger Property="IsMouseOver" Value="True">
63
-                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png"/>
64
-                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff"/>
82
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png" />
83
+                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff" />
65 84
             </Trigger>
66 85
             <Trigger Property="IsPressed" Value="True">
67
-                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png"/>
68
-                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff"/>
86
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png" />
87
+                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff" />
69 88
             </Trigger>
70 89
             <Trigger Property="IsEnabled" Value="False">
71
-                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_N.png"/>
72
-                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3"/>
90
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_N.png" />
91
+                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3" />
73 92
             </Trigger>
74 93
         </ControlTemplate.Triggers>
75 94
     </ControlTemplate>
76
-    <!--录制暂停按钮-->
95
+    <!--  录制暂停按钮  -->
77 96
     <ControlTemplate x:Key="SkinBtnRecordSuspend" TargetType="{x:Type Button}">
78 97
         <Grid>
79 98
             <Grid.ColumnDefinitions>
80
-                <ColumnDefinition Width="23*"/>
81
-                <ColumnDefinition Width="72*"/>
99
+                <ColumnDefinition Width="23*" />
100
+                <ColumnDefinition Width="72*" />
82 101
             </Grid.ColumnDefinitions>
83
-            <Image Grid.ColumnSpan="2" x:Name="ImgRecordSuspend" Source="/SkinImages/TechnologyBlue/Toolbar_LZZT.png"/>
84
-            <Label Grid.Column="1" x:Name="Word" Content="录制暂停" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
102
+            <Image
103
+                x:Name="ImgRecordSuspend"
104
+                Grid.ColumnSpan="2"
105
+                Source="/SkinImages/TechnologyBlue/Toolbar_LZZT.png" />
106
+            <Label
107
+                x:Name="Word"
108
+                Grid.Column="1"
109
+                HorizontalAlignment="Center"
110
+                VerticalAlignment="Center"
111
+                Content="暂停录制"
112
+                FontSize="{TemplateBinding FontSize}"
113
+                Foreground="#FFFFFFFF" />
85 114
         </Grid>
86 115
         <ControlTemplate.Triggers>
87 116
             <Trigger Property="IsMouseOver" Value="True">
88
-                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png"/>
89
-                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff"/>
117
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png" />
118
+                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff" />
90 119
             </Trigger>
91 120
             <Trigger Property="IsPressed" Value="True">
92
-                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png"/>
93
-                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff"/>
121
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png" />
122
+                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff" />
94 123
             </Trigger>
95 124
             <Trigger Property="IsEnabled" Value="False">
96
-                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_N.png"/>
97
-                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3"/>
125
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_N.png" />
126
+                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3" />
98 127
             </Trigger>
99 128
         </ControlTemplate.Triggers>
100 129
     </ControlTemplate>
101
-    <!--录制保存按钮-->
130
+    <!--  录制保存按钮  -->
102 131
     <ControlTemplate x:Key="SkinBtnRecordStop" TargetType="{x:Type Button}">
103 132
         <Grid>
104 133
             <Grid.ColumnDefinitions>
105
-                <ColumnDefinition Width="23*"/>
106
-                <ColumnDefinition Width="72*"/>
134
+                <ColumnDefinition Width="23*" />
135
+                <ColumnDefinition Width="72*" />
107 136
             </Grid.ColumnDefinitions>
108
-            <Image Grid.ColumnSpan="2" x:Name="ImgRecordStop" Source="/SkinImages/TechnologyBlue/Toolbar_Save.png"/>
109
-            <Label Grid.Column="1" x:Name="Word" Content="保存录制" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
137
+            <Image
138
+                x:Name="ImgRecordStop"
139
+                Grid.ColumnSpan="2"
140
+                Source="/SkinImages/TechnologyBlue/Toolbar_Save.png" />
141
+            <Label
142
+                x:Name="Word"
143
+                Grid.Column="1"
144
+                HorizontalAlignment="Center"
145
+                VerticalAlignment="Center"
146
+                Content="保存录制"
147
+                FontSize="{TemplateBinding FontSize}"
148
+                Foreground="#FFFFFFFF" />
110 149
         </Grid>
111 150
         <ControlTemplate.Triggers>
112 151
             <Trigger Property="IsMouseOver" Value="True">
113
-                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_MI.png"/>
114
-                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff"/>
152
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_MI.png" />
153
+                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff" />
115 154
             </Trigger>
116 155
             <Trigger Property="IsPressed" Value="True">
117
-                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_MI.png"/>
118
-                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff"/>
156
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_MI.png" />
157
+                <Setter TargetName="Word" Property="Foreground" Value="#3f6fff" />
119 158
             </Trigger>
120 159
             <Trigger Property="IsEnabled" Value="False">
121
-                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_N.png"/>
122
-                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3"/>
160
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_N.png" />
161
+                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3" />
123 162
             </Trigger>
124 163
         </ControlTemplate.Triggers>
125 164
     </ControlTemplate>
126 165
 
127
-    <!--录屏按钮-->
166
+    <!--  录屏按钮  -->
128 167
     <ControlTemplate x:Key="SkinBtnScreenRecording" TargetType="{x:Type Button}">
129 168
         <Grid>
130 169
             <Grid.ColumnDefinitions>
131
-                <ColumnDefinition Width="100*"/>
132
-                <ColumnDefinition Width="60*"/>
133
-                <ColumnDefinition Width="40*"/>
170
+                <ColumnDefinition Width="100*" />
171
+                <ColumnDefinition Width="60*" />
172
+                <ColumnDefinition Width="40*" />
134 173
             </Grid.ColumnDefinitions>
135
-            <Image Grid.ColumnSpan="3" x:Name="ImgScreenRecording" Source="/SkinImages/TechnologyBlue/Toolbar_LP.png" Stretch="Fill"/>
136
-            <Label Grid.Column="1" x:Name="Word" Content="录屏" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
174
+            <Image
175
+                x:Name="ImgScreenRecording"
176
+                Grid.ColumnSpan="3"
177
+                Source="/SkinImages/TechnologyBlue/Toolbar_LP.png"
178
+                Stretch="Fill" />
179
+            <Label
180
+                x:Name="Word"
181
+                Grid.Column="1"
182
+                HorizontalAlignment="Center"
183
+                VerticalAlignment="Center"
184
+                Content="录屏"
185
+                FontSize="{TemplateBinding FontSize}"
186
+                Foreground="#FFFFFFFF" />
137 187
         </Grid>
138 188
         <ControlTemplate.Triggers>
139 189
             <Trigger Property="IsMouseOver" Value="True">
140
-                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_MI.png"/>
190
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_MI.png" />
141 191
             </Trigger>
142 192
             <Trigger Property="IsPressed" Value="True">
143
-                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_CL.png"/>
144
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
193
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_CL.png" />
194
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
145 195
             </Trigger>
146 196
             <Trigger Property="IsEnabled" Value="False">
147
-                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_N.png"/>
148
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
197
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_N.png" />
198
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
149 199
             </Trigger>
150 200
         </ControlTemplate.Triggers>
151 201
     </ControlTemplate>
152
-    <!--截图按钮-->
202
+    <!--  截图按钮  -->
153 203
     <ControlTemplate x:Key="SkinBtnScreenshot" TargetType="{x:Type Button}">
154 204
         <Grid>
155 205
             <Grid.ColumnDefinitions>
156
-                <ColumnDefinition Width="100*"/>
157
-                <ColumnDefinition Width="60*"/>
158
-                <ColumnDefinition Width="40*"/>
206
+                <ColumnDefinition Width="100*" />
207
+                <ColumnDefinition Width="60*" />
208
+                <ColumnDefinition Width="40*" />
159 209
             </Grid.ColumnDefinitions>
160
-            <Image Grid.ColumnSpan="3" x:Name="ImgScreenshot" Source="/SkinImages/TechnologyBlue/Toolbar_JT.png" Stretch="Fill"/>
161
-            <Label Grid.Column="1" x:Name="Word" Content="截图" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
210
+            <Image
211
+                x:Name="ImgScreenshot"
212
+                Grid.ColumnSpan="3"
213
+                Source="/SkinImages/TechnologyBlue/Toolbar_JT.png"
214
+                Stretch="Fill" />
215
+            <Label
216
+                x:Name="Word"
217
+                Grid.Column="1"
218
+                HorizontalAlignment="Center"
219
+                VerticalAlignment="Center"
220
+                Content="截图"
221
+                FontSize="{TemplateBinding FontSize}"
222
+                Foreground="#FFFFFFFF" />
162 223
         </Grid>
163 224
         <ControlTemplate.Triggers>
164 225
             <Trigger Property="IsMouseOver" Value="True">
165
-                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_MI.png"/>
226
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_MI.png" />
166 227
             </Trigger>
167 228
             <Trigger Property="IsPressed" Value="True">
168
-                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_CL.png"/>
169
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
229
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_CL.png" />
230
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
170 231
             </Trigger>
171 232
             <Trigger Property="IsEnabled" Value="False">
172
-                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_N.png"/>
173
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
233
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_N.png" />
234
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
174 235
             </Trigger>
175 236
         </ControlTemplate.Triggers>
176 237
     </ControlTemplate>
177
-    <!--导入按钮-->
238
+    <!--  导入按钮  -->
178 239
     <ControlTemplate x:Key="SkinBtnImport" TargetType="{x:Type Button}">
179 240
         <Grid>
180 241
             <Grid.ColumnDefinitions>
181
-                <ColumnDefinition Width="100*"/>
182
-                <ColumnDefinition Width="60*"/>
183
-                <ColumnDefinition Width="40*"/>
242
+                <ColumnDefinition Width="100*" />
243
+                <ColumnDefinition Width="60*" />
244
+                <ColumnDefinition Width="40*" />
184 245
             </Grid.ColumnDefinitions>
185
-            <Image Grid.ColumnSpan="3" x:Name="ImgImport" Source="/SkinImages/TechnologyBlue/Toolbar_DR.png" Stretch="Fill"/>
186
-            <Label Grid.Column="1" x:Name="Word" Content="导入" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
246
+            <Image
247
+                x:Name="ImgImport"
248
+                Grid.ColumnSpan="3"
249
+                Source="/SkinImages/TechnologyBlue/Toolbar_DR.png"
250
+                Stretch="Fill" />
251
+            <Label
252
+                x:Name="Word"
253
+                Grid.Column="1"
254
+                HorizontalAlignment="Center"
255
+                VerticalAlignment="Center"
256
+                Content="导入"
257
+                FontSize="{TemplateBinding FontSize}"
258
+                Foreground="#FFFFFFFF" />
187 259
         </Grid>
188 260
         <ControlTemplate.Triggers>
189 261
             <Trigger Property="IsMouseOver" Value="True">
190
-                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_MI.png"/>
262
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_MI.png" />
191 263
             </Trigger>
192 264
             <Trigger Property="IsPressed" Value="True">
193
-                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_CL.png"/>
194
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
265
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_CL.png" />
266
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
195 267
             </Trigger>
196 268
             <Trigger Property="IsEnabled" Value="False">
197
-                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_N.png"/>
198
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
269
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_N.png" />
270
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
199 271
             </Trigger>
200 272
         </ControlTemplate.Triggers>
201 273
     </ControlTemplate>
202
-    <!--加页按钮-->
274
+    <!--  加页按钮  -->
203 275
     <ControlTemplate x:Key="SkinBtnAdd" TargetType="{x:Type Button}">
204 276
         <Grid>
205 277
             <Grid.ColumnDefinitions>
206
-                <ColumnDefinition Width="100*"/>
207
-                <ColumnDefinition Width="60*"/>
208
-                <ColumnDefinition Width="40*"/>
278
+                <ColumnDefinition Width="100*" />
279
+                <ColumnDefinition Width="60*" />
280
+                <ColumnDefinition Width="40*" />
209 281
             </Grid.ColumnDefinitions>
210
-            <Image Grid.ColumnSpan="3" x:Name="ImgAdd" Source="/SkinImages/TechnologyBlue/Toolbar_JY.png" Stretch="Fill"/>
211
-            <Label Grid.Column="1" x:Name="Word" Content="加页" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
282
+            <Image
283
+                x:Name="ImgAdd"
284
+                Grid.ColumnSpan="3"
285
+                Source="/SkinImages/TechnologyBlue/Toolbar_JY.png"
286
+                Stretch="Fill" />
287
+            <Label
288
+                x:Name="Word"
289
+                Grid.Column="1"
290
+                HorizontalAlignment="Center"
291
+                VerticalAlignment="Center"
292
+                Content="加页"
293
+                FontSize="{TemplateBinding FontSize}"
294
+                Foreground="#FFFFFFFF" />
212 295
         </Grid>
213 296
         <ControlTemplate.Triggers>
214 297
             <Trigger Property="IsMouseOver" Value="True">
215
-                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_MI.png"/>
298
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_MI.png" />
216 299
             </Trigger>
217 300
             <Trigger Property="IsPressed" Value="True">
218
-                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_CL.png"/>
219
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
301
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_CL.png" />
302
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
220 303
             </Trigger>
221 304
             <Trigger Property="IsEnabled" Value="False">
222
-                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_N.png"/>
223
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
305
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_N.png" />
306
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
224 307
             </Trigger>
225 308
         </ControlTemplate.Triggers>
226 309
     </ControlTemplate>
227
-    <!--打印按钮-->
310
+    <!--  打印按钮  -->
228 311
     <ControlTemplate x:Key="SkinBtnPrint" TargetType="{x:Type Button}">
229 312
         <Grid>
230 313
             <Grid.ColumnDefinitions>
231
-                <ColumnDefinition Width="100*"/>
232
-                <ColumnDefinition Width="60*"/>
233
-                <ColumnDefinition Width="40*"/>
314
+                <ColumnDefinition Width="100*" />
315
+                <ColumnDefinition Width="60*" />
316
+                <ColumnDefinition Width="40*" />
234 317
             </Grid.ColumnDefinitions>
235
-            <Image Grid.ColumnSpan="3" x:Name="ImgPrint" Source="/SkinImages/TechnologyBlue/Toolbar_DY.png" Stretch="Fill"/>
236
-            <Label Grid.Column="1" x:Name="Word" Content="打印" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
318
+            <Image
319
+                x:Name="ImgPrint"
320
+                Grid.ColumnSpan="3"
321
+                Source="/SkinImages/TechnologyBlue/Toolbar_DY.png"
322
+                Stretch="Fill" />
323
+            <Label
324
+                x:Name="Word"
325
+                Grid.Column="1"
326
+                HorizontalAlignment="Center"
327
+                VerticalAlignment="Center"
328
+                Content="打印"
329
+                FontSize="{TemplateBinding FontSize}"
330
+                Foreground="#FFFFFFFF" />
237 331
         </Grid>
238 332
         <ControlTemplate.Triggers>
239 333
             <Trigger Property="IsMouseOver" Value="True">
240
-                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_MI.png"/>
334
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_MI.png" />
241 335
             </Trigger>
242 336
             <Trigger Property="IsPressed" Value="True">
243
-                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_CL.png"/>
244
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
337
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_CL.png" />
338
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
245 339
             </Trigger>
246 340
             <Trigger Property="IsEnabled" Value="False">
247
-                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_N.png"/>
248
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
341
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_N.png" />
342
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
249 343
             </Trigger>
250 344
         </ControlTemplate.Triggers>
251 345
     </ControlTemplate>
252
-    <!--我的按钮-->
346
+    <!--  我的按钮  -->
253 347
     <ControlTemplate x:Key="SkinBtnMy" TargetType="{x:Type Button}">
254 348
         <Grid>
255 349
             <Grid.ColumnDefinitions>
256
-                <ColumnDefinition Width="100*"/>
257
-                <ColumnDefinition Width="60*"/>
258
-                <ColumnDefinition Width="40*"/>
350
+                <ColumnDefinition Width="100*" />
351
+                <ColumnDefinition Width="60*" />
352
+                <ColumnDefinition Width="40*" />
259 353
             </Grid.ColumnDefinitions>
260
-            <Image Grid.ColumnSpan="3" x:Name="ImgMy" Source="/SkinImages/TechnologyBlue/Toolbar_MY.png" Stretch="Fill"/>
261
-            <Label Grid.Column="1" x:Name="Word" Content="我的" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
354
+            <Image
355
+                x:Name="ImgMy"
356
+                Grid.ColumnSpan="3"
357
+                Source="/SkinImages/TechnologyBlue/Toolbar_MY.png"
358
+                Stretch="Fill" />
359
+            <Label
360
+                x:Name="Word"
361
+                Grid.Column="1"
362
+                HorizontalAlignment="Center"
363
+                VerticalAlignment="Center"
364
+                Content="我的"
365
+                FontSize="{TemplateBinding FontSize}"
366
+                Foreground="#FFFFFFFF" />
262 367
         </Grid>
263 368
         <ControlTemplate.Triggers>
264 369
             <Trigger Property="IsMouseOver" Value="True">
265
-                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_MI.png"/>
370
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_MI.png" />
266 371
             </Trigger>
267 372
             <Trigger Property="IsPressed" Value="True">
268
-                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_CL.png"/>
269
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
373
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_CL.png" />
374
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
270 375
             </Trigger>
271 376
             <Trigger Property="IsEnabled" Value="False">
272
-                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_N.png"/>
273
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
377
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_N.png" />
378
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
274 379
             </Trigger>
275 380
         </ControlTemplate.Triggers>
276 381
     </ControlTemplate>
277
-    <!--检测按钮-->
382
+    <!--  检测按钮  -->
278 383
     <ControlTemplate x:Key="SkinBtnDevice" TargetType="{x:Type Button}">
279 384
         <Grid>
280 385
             <Grid.ColumnDefinitions>
281
-                <ColumnDefinition Width="100*"/>
282
-                <ColumnDefinition Width="60*"/>
283
-                <ColumnDefinition Width="40*"/>
386
+                <ColumnDefinition Width="100*" />
387
+                <ColumnDefinition Width="60*" />
388
+                <ColumnDefinition Width="40*" />
284 389
             </Grid.ColumnDefinitions>
285
-            <Image Grid.ColumnSpan="3" x:Name="ImgDevice" Source="/SkinImages/TechnologyBlue/Toolbar_JC.png" Stretch="Fill"/>
286
-            <Label Grid.Column="1" x:Name="Word" Content="检测" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
390
+            <Image
391
+                x:Name="ImgDevice"
392
+                Grid.ColumnSpan="3"
393
+                Source="/SkinImages/TechnologyBlue/Toolbar_JC.png"
394
+                Stretch="Fill" />
395
+            <Label
396
+                x:Name="Word"
397
+                Grid.Column="1"
398
+                HorizontalAlignment="Center"
399
+                VerticalAlignment="Center"
400
+                Content="检测"
401
+                FontSize="{TemplateBinding FontSize}"
402
+                Foreground="#FFFFFFFF" />
287 403
         </Grid>
288 404
         <ControlTemplate.Triggers>
289 405
             <Trigger Property="IsMouseOver" Value="True">
290
-                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_MI.png"/>
406
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_MI.png" />
291 407
             </Trigger>
292 408
             <Trigger Property="IsPressed" Value="True">
293
-                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_CL.png"/>
294
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
409
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_CL.png" />
410
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
295 411
             </Trigger>
296 412
             <Trigger Property="IsEnabled" Value="False">
297
-                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_N.png"/>
298
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
413
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_N.png" />
414
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
299 415
             </Trigger>
300 416
         </ControlTemplate.Triggers>
301 417
     </ControlTemplate>
302
-    <!--设置按钮-->
418
+    <!--  设置按钮  -->
303 419
     <ControlTemplate x:Key="SkinBtnSetUp" TargetType="{x:Type Button}">
304 420
         <Grid>
305 421
             <Grid.ColumnDefinitions>
306
-                <ColumnDefinition Width="100*"/>
307
-                <ColumnDefinition Width="60*"/>
308
-                <ColumnDefinition Width="40*"/>
422
+                <ColumnDefinition Width="100*" />
423
+                <ColumnDefinition Width="60*" />
424
+                <ColumnDefinition Width="40*" />
309 425
             </Grid.ColumnDefinitions>
310
-            <Image Grid.ColumnSpan="3" x:Name="ImgSetUp" Source="/SkinImages/TechnologyBlue/Toolbar_SZ.png" Stretch="Fill"/>
311
-            <Label Grid.Column="1" x:Name="Word" Content="设置" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
426
+            <Image
427
+                x:Name="ImgSetUp"
428
+                Grid.ColumnSpan="3"
429
+                Source="/SkinImages/TechnologyBlue/Toolbar_SZ.png"
430
+                Stretch="Fill" />
431
+            <Label
432
+                x:Name="Word"
433
+                Grid.Column="1"
434
+                HorizontalAlignment="Center"
435
+                VerticalAlignment="Center"
436
+                Content="设置"
437
+                FontSize="{TemplateBinding FontSize}"
438
+                Foreground="#FFFFFFFF" />
312 439
         </Grid>
313 440
         <ControlTemplate.Triggers>
314 441
             <Trigger Property="IsMouseOver" Value="True">
315
-                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_MI.png"/>
442
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_MI.png" />
316 443
             </Trigger>
317 444
             <Trigger Property="IsPressed" Value="True">
318
-                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_CL.png"/>
319
-                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
445
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_CL.png" />
446
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333" />
320 447
             </Trigger>
321 448
             <Trigger Property="IsEnabled" Value="False">
322
-                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_N.png"/>
323
-                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
449
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_N.png" />
450
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3" />
324 451
             </Trigger>
325 452
         </ControlTemplate.Triggers>
326 453
     </ControlTemplate>
327
-
328 454
 </ResourceDictionary>

+ 1
- 1
星火微课/星火微课-正式.iss Voir le fichier

@@ -3,7 +3,7 @@
3 3
 
4 4
 #define MyAppName "星火微课"  
5 5
 #define MyAppDir "xhwk"
6
-#define MyAppVersion "3.1.9"
6
+#define MyAppVersion "3.1.10"
7 7
 #define MyAppPublisher "河南星火燎原软件科技有限公司"
8 8
 #define MyAppURL "http://www.xhkjedu.com/"
9 9
 #define MySourcePath "D:\Project\CSharp\xhwkclient\XHWK.WKTool\bin\x86\Debug\"

Chargement…
Annuler
Enregistrer