add:侧边栏退出放映按钮 #38
This commit is contained in:
@@ -7841,6 +7841,16 @@
|
||||
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
|
||||
<TextBlock Text="白板" Foreground="Black" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
|
||||
</ui:SimpleStackPanel>
|
||||
<ui:SimpleStackPanel
|
||||
x:Name="BtnExitPptFromSidebarLeft"
|
||||
MouseUp="ExitPPTSlideShow_MouseUp"
|
||||
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
|
||||
Width="32" Margin="0" Visibility="Collapsed">
|
||||
<Image Source="/Resources/new-icons/end-slides-show.png"
|
||||
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
|
||||
<TextBlock Text="退出放映" Foreground="Black" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
|
||||
</ui:SimpleStackPanel>
|
||||
|
||||
<ui:SimpleStackPanel
|
||||
MouseUp="UnFoldFloatingBar_MouseUp"
|
||||
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
|
||||
@@ -7914,6 +7924,16 @@
|
||||
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
|
||||
<TextBlock Text="白板" Foreground="Black" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
|
||||
</ui:SimpleStackPanel>
|
||||
<ui:SimpleStackPanel
|
||||
x:Name="BtnExitPptFromSidebarRight"
|
||||
MouseUp="ExitPPTSlideShow_MouseUp"
|
||||
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
|
||||
Width="32" Margin="0" Visibility="Collapsed">
|
||||
<Image Source="/Resources/new-icons/end-slides-show.png"
|
||||
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
|
||||
<TextBlock Text="退出放映" Foreground="Black" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
|
||||
</ui:SimpleStackPanel>
|
||||
|
||||
<ui:SimpleStackPanel
|
||||
MouseUp="UnFoldFloatingBar_MouseUp"
|
||||
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
|
||||
|
||||
@@ -1306,5 +1306,11 @@ namespace Ink_Canvas {
|
||||
currentPageIndex = whiteboardPages.Count - 1;
|
||||
ShowPage(currentPageIndex);
|
||||
}
|
||||
// 快速面板退出PPT放映按钮事件
|
||||
private void ExitPPTSlideShow_MouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
// 直接调用PPT放映结束按钮的逻辑
|
||||
BtnPPTSlideShowEnd_Click(BtnPPTSlideShowEnd, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -711,8 +711,15 @@ namespace Ink_Canvas {
|
||||
})).Start();
|
||||
}
|
||||
});
|
||||
await Application.Current.Dispatcher.InvokeAsync(() => {
|
||||
if (BtnExitPptFromSidebarLeft != null)
|
||||
BtnExitPptFromSidebarLeft.Visibility = Visibility.Visible;
|
||||
if (BtnExitPptFromSidebarRight != null)
|
||||
BtnExitPptFromSidebarRight.Visibility = Visibility.Visible;
|
||||
});
|
||||
}
|
||||
catch (Exception ex) {
|
||||
LogHelper.WriteLogToFile("PowerPoint Application Slide Show Begin Error: " + ex.ToString(), LogHelper.LogType.Error);
|
||||
LogHelper.WriteLogToFile(ex.ToString(), LogHelper.LogType.Error);
|
||||
}
|
||||
}
|
||||
@@ -1304,6 +1311,12 @@ namespace Ink_Canvas {
|
||||
{
|
||||
LogHelper.WriteLogToFile($"结束PPT放映操作异常: {ex.ToString()}", LogHelper.LogType.Error);
|
||||
}
|
||||
await Application.Current.Dispatcher.InvokeAsync(() => {
|
||||
if (BtnExitPptFromSidebarLeft != null)
|
||||
BtnExitPptFromSidebarLeft.Visibility = Visibility.Collapsed;
|
||||
if (BtnExitPptFromSidebarRight != null)
|
||||
BtnExitPptFromSidebarRight.Visibility = Visibility.Collapsed;
|
||||
});
|
||||
}
|
||||
|
||||
private void GridPPTControlPrevious_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user