improve:PPT翻页打断
新增设置项
This commit is contained in:
@@ -1944,6 +1944,19 @@
|
|||||||
<TextBlock
|
<TextBlock
|
||||||
Text="# 开启该选项后,长按PPT翻页按钮可以连续翻页,提高翻页效率。"
|
Text="# 开启该选项后,长按PPT翻页按钮可以连续翻页,提高翻页效率。"
|
||||||
TextWrapping="Wrap" Foreground="#a1a1aa" />
|
TextWrapping="Wrap" Foreground="#a1a1aa" />
|
||||||
|
<ui:SimpleStackPanel Orientation="Horizontal"
|
||||||
|
HorizontalAlignment="Left" Margin="0,6,0,0">
|
||||||
|
<TextBlock Foreground="#fafafa" Text="点击翻页时跳过当前页动画,直接切到下一张"
|
||||||
|
VerticalAlignment="Center" FontSize="14" Margin="0,0,16,0" />
|
||||||
|
<ui:ToggleSwitch OnContent="" OffContent=""
|
||||||
|
Name="ToggleSwitchSkipAnimationsWhenGoNext"
|
||||||
|
IsOn="False"
|
||||||
|
FontFamily="Microsoft YaHei UI" FontWeight="Bold"
|
||||||
|
Toggled="ToggleSwitchSkipAnimationsWhenGoNext_OnToggled" />
|
||||||
|
</ui:SimpleStackPanel>
|
||||||
|
<TextBlock
|
||||||
|
Text="# 开启该选项后,点击“下一页”按钮时如果仍停留在同一页,会强制直接切到下一张幻灯片,从而跳过该页的动画。"
|
||||||
|
TextWrapping="Wrap" Foreground="#a1a1aa" />
|
||||||
</ui:SimpleStackPanel>
|
</ui:SimpleStackPanel>
|
||||||
<Line HorizontalAlignment="Center" X1="0" Y1="0" X2="400" Y2="0" Stroke="#3f3f46"
|
<Line HorizontalAlignment="Center" X1="0" Y1="0" X2="400" Y2="0" Stroke="#3f3f46"
|
||||||
StrokeThickness="1" Margin="0,4,0,4" />
|
StrokeThickness="1" Margin="0,4,0,4" />
|
||||||
|
|||||||
@@ -1537,7 +1537,9 @@ namespace Ink_Canvas
|
|||||||
strokesToSave = inkCanvas.Strokes.Clone();
|
strokesToSave = inkCanvas.Strokes.Clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_pptManager?.TryNavigateNext(skipAnimations: true) == true)
|
var skipAnimations = Settings.PowerPointSettings.SkipAnimationsWhenGoNext;
|
||||||
|
|
||||||
|
if (_pptManager?.TryNavigateNext(skipAnimations: skipAnimations) == true)
|
||||||
{
|
{
|
||||||
var currentSlideAfterNavigate = _pptManager?.GetCurrentSlideNumber() ?? 0;
|
var currentSlideAfterNavigate = _pptManager?.GetCurrentSlideNumber() ?? 0;
|
||||||
|
|
||||||
|
|||||||
@@ -578,6 +578,13 @@ namespace Ink_Canvas
|
|||||||
SaveSettingsToFile();
|
SaveSettingsToFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ToggleSwitchSkipAnimationsWhenGoNext_OnToggled(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!isLoaded) return;
|
||||||
|
Settings.PowerPointSettings.SkipAnimationsWhenGoNext = ToggleSwitchSkipAnimationsWhenGoNext.IsOn;
|
||||||
|
SaveSettingsToFile();
|
||||||
|
}
|
||||||
|
|
||||||
private void CheckboxEnableLBPPTButton_IsCheckChanged(object sender, RoutedEventArgs e)
|
private void CheckboxEnableLBPPTButton_IsCheckChanged(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (!isLoaded) return;
|
if (!isLoaded) return;
|
||||||
|
|||||||
@@ -319,6 +319,8 @@ namespace Ink_Canvas
|
|||||||
public bool EnablePowerPointEnhancement { get; set; } = false;
|
public bool EnablePowerPointEnhancement { get; set; } = false;
|
||||||
[JsonProperty("showGestureButtonInSlideShow")]
|
[JsonProperty("showGestureButtonInSlideShow")]
|
||||||
public bool ShowGestureButtonInSlideShow { get; set; } = false;
|
public bool ShowGestureButtonInSlideShow { get; set; } = false;
|
||||||
|
[JsonProperty("skipAnimationsWhenGoNext")]
|
||||||
|
public bool SkipAnimationsWhenGoNext { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Automation
|
public class Automation
|
||||||
|
|||||||
Reference in New Issue
Block a user