|
@@ -938,6 +938,14 @@ namespace XHWK.WKTool
|
938
|
938
|
|
939
|
939
|
//imgCanvas.Source = new BitmapImage(new Uri(desktopPath));
|
940
|
940
|
}
|
|
941
|
+ public void WindowType()
|
|
942
|
+ {
|
|
943
|
+ if (WindowState == WindowState.Minimized)//截图完恢复窗口
|
|
944
|
+ {
|
|
945
|
+ Topmost = true;
|
|
946
|
+ WindowState = WindowState.Normal;
|
|
947
|
+ }
|
|
948
|
+ }
|
941
|
949
|
/// <summary>
|
942
|
950
|
/// 截图关闭窗口
|
943
|
951
|
/// </summary>
|
|
@@ -992,6 +1000,7 @@ namespace XHWK.WKTool
|
992
|
1000
|
imgCanvas.Source = bitImg;
|
993
|
1001
|
imgCanvas.Width = bitImg.Width;
|
994
|
1002
|
imgCanvas.Height = bitImg.Height;
|
|
1003
|
+ scroMain.ScrollToVerticalOffset(0);
|
995
|
1004
|
APP.PageDrawList[APP.pageData.currpage - 1].ImageSizes = new ScaleTransform
|
996
|
1005
|
{
|
997
|
1006
|
CenterX = imgCanvas.Width,
|
|
@@ -1042,8 +1051,8 @@ namespace XHWK.WKTool
|
1042
|
1051
|
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
|
1043
|
1052
|
ofd = new System.Windows.Forms.OpenFileDialog
|
1044
|
1053
|
{
|
1045
|
|
- Filter = "文档|*.docx;*.doc;*.ppt;*.pptx",
|
1046
|
|
- //Filter = "文档|*.docx;*.doc;*.ppt;*.pptx;*.pdf",
|
|
1054
|
+ //Filter = "文档|*.docx;*.doc;*.ppt;*.pptx",
|
|
1055
|
+ Filter = "文档|*.docx;*.doc;*.ppt;*.pptx;*.pdf",
|
1047
|
1056
|
InitialDirectory = desktopPath,
|
1048
|
1057
|
Multiselect = false,
|
1049
|
1058
|
AddExtension = true,
|
|
@@ -1197,6 +1206,7 @@ namespace XHWK.WKTool
|
1197
|
1206
|
btnScreenshot.IsEnabled = false;
|
1198
|
1207
|
imgDocumentation.Source = null;
|
1199
|
1208
|
imgPPT.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
|
|
1209
|
+ scroMain.ScrollToVerticalOffset(0);
|
1200
|
1210
|
for (int i = iStart; i < iEnd; i++)
|
1201
|
1211
|
{
|
1202
|
1212
|
APP.PageDrawList[i].ImageLocation = new TranslateTransform
|
|
@@ -1328,6 +1338,7 @@ namespace XHWK.WKTool
|
1328
|
1338
|
btnScreenshot.IsEnabled = false;
|
1329
|
1339
|
imgDocumentation.Source = null;
|
1330
|
1340
|
imgPPT.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));//给当前页面展示图片
|
|
1341
|
+ scroMain.ScrollToVerticalOffset(0);
|
1331
|
1342
|
for (int i = iStart; i < iEnd; i++)
|
1332
|
1343
|
{
|
1333
|
1344
|
APP.PageDrawList[i].ImageLocation = new TranslateTransform
|
|
@@ -1420,6 +1431,7 @@ namespace XHWK.WKTool
|
1420
|
1431
|
btnScreenshot.IsEnabled = false;
|
1421
|
1432
|
imgDocumentation.Visibility = Visibility.Visible;
|
1422
|
1433
|
imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));//给当前页面展示图片
|
|
1434
|
+ scroMain.ScrollToVerticalOffset(0);
|
1423
|
1435
|
}
|
1424
|
1436
|
else
|
1425
|
1437
|
{
|
|
@@ -3498,6 +3510,7 @@ namespace XHWK.WKTool
|
3498
|
3510
|
gridPage.Visibility = Visibility.Visible;//页码大于0 显示
|
3499
|
3511
|
APP.pageData.currpage = APP.pageData.pagenum;
|
3500
|
3512
|
myblackboard.changepage(APP.pageData.currpage - 1);
|
|
3513
|
+ scroMain.ScrollToVerticalOffset(0);
|
3501
|
3514
|
///清空页面图片UI
|
3502
|
3515
|
imgCanvas.Source = null;
|
3503
|
3516
|
imgDocumentation.Source = null;
|