From 9fabc25ec5a8e3d84042a87899d8b12144de2368 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Wed, 5 Aug 2020 22:06:37 +0800 Subject: [PATCH] add Drawer doc --- .../extend_controls/drawer/index.md | 101 +++++++++++++++++- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/doc/source/handycontrol/extend_controls/drawer/index.md b/doc/source/handycontrol/extend_controls/drawer/index.md index 03c8a6ac..95c586bd 100644 --- a/doc/source/handycontrol/extend_controls/drawer/index.md +++ b/doc/source/handycontrol/extend_controls/drawer/index.md @@ -1,3 +1,102 @@ --- -title: Drawer +title: Drawer 抽屉 --- + +当 `Dialog` 组件不能满足我们的需求时(例如展示一些文档),可以使用 `Drawer`. + +```cs +[ContentProperty("Content")] +public class Drawer : FrameworkElement +``` + +# 属性 + +|属性|描述|默认值|备注| +|-|-|-|-| +|IsOpen|是否关闭||| +|MaskCanClose|点击遮罩层是否可以关闭 Drawer|true|| +|ShowMask|是否显示遮罩层|true|| +|Dock|位置|Dock.Left|| +|ShowMode|显示模式|DrawerShowMode.Cover|| +|MaskBrush|遮罩层颜色||| +|Content|内容|||| + +# 事件 + +|名称|说明| +|-|-| +| Opened | 抽屉打开时触发 | +| Closed | 抽屉关闭时触发 | + +# 案例 + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + +