add:展台

This commit is contained in:
2026-02-19 18:34:30 +08:00
parent b16ec37df3
commit 1a585d353f
3 changed files with 25 additions and 10 deletions
@@ -70,7 +70,7 @@ namespace Ink_Canvas.Helpers
try
{
LogHelper.WriteLogToFile($"ProcessProtectionManager.WithWriteAccess: 获取写入门闩超时({gateTimeoutMs}ms),将降级直接执行写入动作。目标: {targetPath}",
LogHelper.LogType.Warn);
LogHelper.LogType.Warning);
}
catch
{
+6 -9
View File
@@ -10552,15 +10552,15 @@
</Border>
<!-- 底部按钮区域 -->
<Grid Grid.Row="4" Height="60">
<StackPanel
<Grid Grid.Row="4" Height="Auto" Margin="0,0,0,6">
<WrapPanel
Margin="10,5"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Orientation="Horizontal">
Orientation="Horizontal"
ItemHeight="40">
<ToggleButton
x:Name="BtnToggleVideoPresenterLiveOnCanvas"
Width="90"
Height="40"
Margin="3,0"
Background="{DynamicResource FloatBarBackground}"
@@ -10576,7 +10576,6 @@
</ToggleButton>
<ToggleButton
x:Name="CheckBoxEnablePhotoCorrection"
Width="110"
Height="40"
Margin="3,0"
Background="{DynamicResource FloatBarBackground}"
@@ -10588,11 +10587,10 @@
FontSize="12"
FontWeight="SemiBold"
Foreground="{DynamicResource FloatBarForeground}"
Text="实时矫正" />
Text="矫正" />
</ToggleButton>
<Button
x:Name="BtnCapturePhoto"
Width="90"
Height="40"
Margin="3,0"
Background="{DynamicResource FloatBarBackground}"
@@ -10607,7 +10605,6 @@
</Button>
<Button
x:Name="BtnRotateImage"
Width="90"
Height="40"
Margin="3,0"
Background="{DynamicResource FloatBarBackground}"
@@ -10620,7 +10617,7 @@
Foreground="{DynamicResource FloatBarForeground}"
Text="旋转" />
</Button>
</StackPanel>
</WrapPanel>
</Grid>
</Grid>
</Border>
@@ -183,6 +183,15 @@ namespace Ink_Canvas
Visibility = Visibility.Visible,
Opacity = 1.0
};
// 让它具备与“普通插入图片”一致的选中/拖拽/缩放行为
try
{
InitializeElementTransform(img);
BindElementEvents(img);
}
catch { }
_liveFrameImageByPage[page] = img;
return img;
}
@@ -290,6 +299,15 @@ namespace Ink_Canvas
inkCanvas.Children.Add(img);
}
// 上屏后自动切到选择模式,否则用户在笔模式下点不中元素
try
{
SetCurrentToolMode(InkCanvasEditingMode.Select);
UpdateCurrentToolMode("select");
HideSubPanels("select");
}
catch { }
// 立即用侧栏预览刷新一次
if (VideoPresenterPreviewImage?.Source is BitmapImage bi)
{