fix:插入图片
This commit is contained in:
@@ -5346,7 +5346,6 @@
|
|||||||
<ui:SimpleStackPanel Margin="0,0,0,0" Height="40" Spacing="0"
|
<ui:SimpleStackPanel Margin="0,0,0,0" Height="40" Spacing="0"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<ui:SimpleStackPanel MouseDown="Border_MouseDown"
|
<ui:SimpleStackPanel MouseDown="Border_MouseDown"
|
||||||
MouseUp="SymbolIconScreenshot_MouseUp"
|
|
||||||
Margin="0,0,0,0" Height="38" Width="32"
|
Margin="0,0,0,0" Height="38" Width="32"
|
||||||
Orientation="Vertical">
|
Orientation="Vertical">
|
||||||
<Image Margin="0,4,0,2" Height="19" Width="19">
|
<Image Margin="0,4,0,2" Height="19" Width="19">
|
||||||
@@ -7717,7 +7716,6 @@
|
|||||||
<ui:SimpleStackPanel Margin="0,0,0,0" Height="40" Spacing="0"
|
<ui:SimpleStackPanel Margin="0,0,0,0" Height="40" Spacing="0"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<ui:SimpleStackPanel MouseDown="Border_MouseDown"
|
<ui:SimpleStackPanel MouseDown="Border_MouseDown"
|
||||||
MouseUp="SymbolIconScreenshot_MouseUp"
|
|
||||||
Margin="0,0,0,0" Height="38" Width="32"
|
Margin="0,0,0,0" Height="38" Width="32"
|
||||||
Orientation="Vertical">
|
Orientation="Vertical">
|
||||||
<Image Margin="0,4,0,2" Height="19" Width="19">
|
<Image Margin="0,4,0,2" Height="19" Width="19">
|
||||||
|
|||||||
@@ -209,7 +209,6 @@ namespace Ink_Canvas {
|
|||||||
BoardBorderLeftPageListView.Visibility = Visibility.Collapsed;
|
BoardBorderLeftPageListView.Visibility = Visibility.Collapsed;
|
||||||
BoardBorderRightPageListView.Visibility = Visibility.Collapsed;
|
BoardBorderRightPageListView.Visibility = Visibility.Collapsed;
|
||||||
BoardImageOptionsPanel.Visibility = Visibility.Collapsed;
|
BoardImageOptionsPanel.Visibility = Visibility.Collapsed;
|
||||||
ScreenshotOptionsPanel.Visibility = Visibility.Collapsed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -281,8 +280,6 @@ namespace Ink_Canvas {
|
|||||||
AnimationsHelper.HideWithSlideAndFade(BorderDrawShape);
|
AnimationsHelper.HideWithSlideAndFade(BorderDrawShape);
|
||||||
AnimationsHelper.HideWithSlideAndFade(BoardBorderLeftPageListView);
|
AnimationsHelper.HideWithSlideAndFade(BoardBorderLeftPageListView);
|
||||||
AnimationsHelper.HideWithSlideAndFade(BoardBorderRightPageListView);
|
AnimationsHelper.HideWithSlideAndFade(BoardBorderRightPageListView);
|
||||||
AnimationsHelper.HideWithSlideAndFade(BoardImageOptionsPanel);
|
|
||||||
AnimationsHelper.HideWithSlideAndFade(ScreenshotOptionsPanel);
|
|
||||||
|
|
||||||
// 隐藏背景设置面板
|
// 隐藏背景设置面板
|
||||||
var bgPalette = LogicalTreeHelper.FindLogicalNode(this, "BackgroundPalette") as Border;
|
var bgPalette = LogicalTreeHelper.FindLogicalNode(this, "BackgroundPalette") as Border;
|
||||||
@@ -731,61 +728,6 @@ namespace Ink_Canvas {
|
|||||||
HideSubPanels();
|
HideSubPanels();
|
||||||
BtnSettings_Click(null, null);
|
BtnSettings_Click(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void SymbolIconScreenshot_MouseUp(object sender, MouseButtonEventArgs e) {
|
|
||||||
HideSubPanelsImmediately();
|
|
||||||
await Task.Delay(50);
|
|
||||||
|
|
||||||
// 显示截图选项面板
|
|
||||||
ShowScreenshotOptionsPanel();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ShowScreenshotOptionsPanel() {
|
|
||||||
// 隐藏其他面板
|
|
||||||
HideSubPanelsImmediately();
|
|
||||||
|
|
||||||
// 显示截图选项面板
|
|
||||||
if (ScreenshotOptionsPanel.Visibility == Visibility.Collapsed) {
|
|
||||||
// 添加调试信息
|
|
||||||
LogHelper.WriteLogToFile("显示截图选项面板", LogHelper.LogType.Info);
|
|
||||||
|
|
||||||
// 直接设置可见性,不使用动画
|
|
||||||
ScreenshotOptionsPanel.Visibility = Visibility.Visible;
|
|
||||||
|
|
||||||
// 显示通知确认面板已显示
|
|
||||||
ShowNotification("截图选项面板已显示");
|
|
||||||
} else {
|
|
||||||
LogHelper.WriteLogToFile("隐藏截图选项面板", LogHelper.LogType.Info);
|
|
||||||
ScreenshotOptionsPanel.Visibility = Visibility.Collapsed;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CloseScreenshotOptionsPanel_MouseUp(object sender, MouseButtonEventArgs e) {
|
|
||||||
AnimationsHelper.HideWithSlideAndFade(ScreenshotOptionsPanel);
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void FullScreenScreenshot_MouseUp(object sender, MouseButtonEventArgs e) {
|
|
||||||
// 隐藏选项面板
|
|
||||||
AnimationsHelper.HideWithSlideAndFade(ScreenshotOptionsPanel);
|
|
||||||
|
|
||||||
// 等待面板隐藏
|
|
||||||
await Task.Delay(100);
|
|
||||||
|
|
||||||
// 执行全屏截图
|
|
||||||
SaveScreenShotToDesktop();
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void AreaScreenshot_MouseUp(object sender, MouseButtonEventArgs e) {
|
|
||||||
// 隐藏选项面板
|
|
||||||
AnimationsHelper.HideWithSlideAndFade(ScreenshotOptionsPanel);
|
|
||||||
|
|
||||||
// 等待面板隐藏
|
|
||||||
await Task.Delay(100);
|
|
||||||
|
|
||||||
// 执行区域截图
|
|
||||||
await CaptureScreenshotToClipboard();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void ImageCountdownTimer_MouseUp(object sender, MouseButtonEventArgs e) {
|
private void ImageCountdownTimer_MouseUp(object sender, MouseButtonEventArgs e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user