SettingsPageBase 类
- 程序集
- ClassIsland.Core.dll
设置页面基类
public abstract class SettingsPageBase : Page, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
- 继承
-
SettingsPageBase
- 实现
- 继承成员
字段
CloseDrawerCommand
关闭设置窗口抽屉命令
public static readonly ICommand CloseDrawerCommand
字段值
DialogHostIdentifier
设置窗口的MaterialDesignThemes.Wpf.DialogHost的标识符。
public static readonly string DialogHostIdentifier
字段值
OpenDrawerCommand
打开设置窗口抽屉命令
public static readonly ICommand OpenDrawerCommand
字段值
RequestRestartCommand
请求重启应用命令
public static readonly ICommand RequestRestartCommand
字段值
方法
CloseDrawer()
关闭设置窗口抽屉。
protected void CloseDrawer()
OpenDrawer(object, bool, object?)
在设置窗口打开指定的抽屉。
protected void OpenDrawer(object o, bool useGlobalDataContext = false, object? dataContext = null)
参数
o
object要在抽屉中显示的对象
useGlobalDataContext
bool是否使用设置界面的数据上下文,为false时则使用本页面的数据上下文。
dataContext
object抽屉元素的数据上下文
OpenDrawer(string, bool, object?)
在设置窗口打开指定的抽屉。
protected void OpenDrawer(string key, bool useGlobalDataContext = false, object? dataContext = null)
参数
key
string抽屉资源键名
useGlobalDataContext
bool是否使用设置界面的数据上下文,为false时则使用本页面的数据上下文。
dataContext
object抽屉元素的数据上下文
RequestRestart()
请求重启应用。
protected void RequestRestart()