From e114ba0527bf256b061cf445ce06aad6d28fbf09 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Mon, 3 Aug 2020 22:22:31 +0800 Subject: [PATCH] add dialog doc --- .../extend_controls/dialog/index.md | 104 +++++++++++++++++- 1 file changed, 102 insertions(+), 2 deletions(-) diff --git a/doc/source/handycontrol/extend_controls/dialog/index.md b/doc/source/handycontrol/extend_controls/dialog/index.md index ca12ad62..e1fd778a 100644 --- a/doc/source/handycontrol/extend_controls/dialog/index.md +++ b/doc/source/handycontrol/extend_controls/dialog/index.md @@ -1,5 +1,105 @@ --- -title: 建设中 +title: Dialog 对话框 --- -建设中 \ No newline at end of file +在保留当前页面状态的情况下,告知用户并承载相关操作。 + +```cs +public class Dialog : ContentControl +``` + +# 属性 + +|属性|描述|默认值|备注| +|-|-|-|-| +|IsClosed|是否关闭|||| + +# 附加属性 + +|名称|说明| +|-|-| +| Token | 用于设置消息标记 | + +# 方法 + +|名称|说明| +|-|-| +| Show(object, string) | 显示承载内容 | +| Show(string) | 显示承载内容(自动实例化承载内容) | +| Close( ) | 关闭 | +| Register(string, FrameworkElement) | 为指定的元素注册消息标记 | +| Unregister(string, Panel) | 为指定的元素取消消息标记的注册 | +| Unregister(Panel) | 如果该元素注册了消息标记则取消注册 | +| Unregister(string) | 如果该消息标记有对应的元素则取消注册 | + +# 案例 + +## 基本用法 + +```xml + + + +