Table of Contents

Class PPTUIManager

Namespace
Ink_Canvas.Helpers
Assembly
InkCanvasForClass.dll

PPT UI管理器 - 统一管理PPT相关的UI更新和样式设置

public class PPTUIManager
Inheritance
PPTUIManager
Inherited Members

Constructors

PPTUIManager(MainWindow)

public PPTUIManager(MainWindow mainWindow)

Parameters

mainWindow MainWindow

Properties

EnablePPTButtonLongPressPageTurn

public bool EnablePPTButtonLongPressPageTurn { get; set; }

Property Value

bool

EnablePPTButtonPageClickable

public bool EnablePPTButtonPageClickable { get; set; }

Property Value

bool

PPTBButtonsOption

public int PPTBButtonsOption { get; set; }

Property Value

int

PPTButtonsDisplayOption

public int PPTButtonsDisplayOption { get; set; }

Property Value

int

PPTLBButtonOpacity

public double PPTLBButtonOpacity { get; set; }

Property Value

double

PPTLBButtonPosition

public int PPTLBButtonPosition { get; set; }

Property Value

int

PPTLSButtonOpacity

public double PPTLSButtonOpacity { get; set; }

Property Value

double

PPTLSButtonPosition

public int PPTLSButtonPosition { get; set; }

Property Value

int

PPTRBButtonOpacity

public double PPTRBButtonOpacity { get; set; }

Property Value

double

PPTRBButtonPosition

public int PPTRBButtonPosition { get; set; }

Property Value

int

PPTRSButtonOpacity

public double PPTRSButtonOpacity { get; set; }

Property Value

double

PPTRSButtonPosition

public int PPTRSButtonPosition { get; set; }

Property Value

int

PPTSButtonsOption

public int PPTSButtonsOption { get; set; }

Property Value

int

ShowPPTButton

public bool ShowPPTButton { get; set; }

Property Value

bool

Methods

HideAllNavigationPanels()

隐藏所有导航面板

public void HideAllNavigationPanels()

OnSlideShowStateChanged(bool)

处理PPT放映状态变化

public void OnSlideShowStateChanged(bool isInSlideShow)

Parameters

isInSlideShow bool

SetFloatingBarOpacity(double)

设置浮动栏透明度

public void SetFloatingBarOpacity(double opacity)

Parameters

opacity double

SetMainPanelMargin(Thickness)

设置主面板边距

public void SetMainPanelMargin(Thickness margin)

Parameters

margin Thickness

UpdateConnectionStatus(bool)

更新PPT连接状态UI

public void UpdateConnectionStatus(bool isConnected)

Parameters

isConnected bool

UpdateCurrentSlideNumber(int, int)

更新当前页码显示

public void UpdateCurrentSlideNumber(int currentSlide, int totalSlides)

Parameters

currentSlide int
totalSlides int

UpdateNavigationButtonStyles()

更新导航按钮样式

public void UpdateNavigationButtonStyles()

UpdateNavigationPanelsVisibility()

更新导航面板显示状态

public void UpdateNavigationPanelsVisibility()

UpdateSidebarExitButtons(bool)

显示/隐藏侧边栏退出按钮

public void UpdateSidebarExitButtons(bool show)

Parameters

show bool

UpdateSlideShowStatus(bool, int, int)

更新幻灯片放映状态UI

public void UpdateSlideShowStatus(bool isInSlideShow, int currentSlide = 0, int totalSlides = 0)

Parameters

isInSlideShow bool
currentSlide int
totalSlides int