From 790d95cf84096a94dddc021d463d56eb5463a3fe Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Sat, 8 Feb 2020 13:58:59 +0800
Subject: [PATCH] update doc
---
.../basic_xaml/geometries/index.md | 7 +
.../native_controls/frame/index.md | 17 ++
.../native_controls/textBlock/index.md | 36 +++-
.../native_controls/textBox/index.md | 39 +++-
.../native_controls/toggleButton/index.md | 176 +++++++++++++++++-
.../native_controls/toolBar/index.md | 20 +-
.../native_controls/toolTip/index.md | 6 +-
.../native_controls/treeView/index.md | 34 +++-
.../native_controls/window/index.md | 12 +-
doc/source/handykeras/index.md | 4 -
doc/themes/next/_config.yml | 1 +
.../next/source/css/_custom/custom.styl | 1 +
.../Themes/Styles/Base/TreeViewBaseStyle.xaml | 1 +
.../HandyControl_Shared.projitems | 4 +
.../Themes/Basic/Geometries.xaml | 4 +-
.../Themes/Styles/Base/FrameBaseStyle.xaml | 4 +-
.../Styles/Base/ToggleButtonBaseStyle.xaml | 1 -
.../Themes/Styles/Base/ToolTipBaseStyle.xaml | 22 +++
.../Themes/Styles/ToggleButton.xaml | 1 -
.../Themes/Styles/ToolTip.xaml | 24 +--
20 files changed, 372 insertions(+), 42 deletions(-)
create mode 100644 doc/source/handycontrol/native_controls/frame/index.md
delete mode 100644 doc/source/handykeras/index.md
create mode 100644 src/Shared/HandyControl_Shared/Themes/Styles/Base/ToolTipBaseStyle.xaml
diff --git a/doc/source/handycontrol/basic_xaml/geometries/index.md b/doc/source/handycontrol/basic_xaml/geometries/index.md
index 7304c03f..3d01060e 100644
--- a/doc/source/handycontrol/basic_xaml/geometries/index.md
+++ b/doc/source/handycontrol/basic_xaml/geometries/index.md
@@ -16,6 +16,7 @@ HandyControl中自带了一些几何形状定义,但要应用于生产中显
| LeftGeometry | 左 |
| RightGeometry | 右 |
| RotateLeftGeometry | 向左旋转 |
+| RotateRightGeometry | 向左旋转 |
| EnlargeGeometry | 放大 |
| ReduceGeometry | 缩小 |
| DownloadGeometry | 下载 |
@@ -28,6 +29,12 @@ HandyControl中自带了一些几何形状定义,但要应用于生产中显
| WindowMinGeometry | 窗口最小化 |
| WindowRestoreGeometry | 窗口还原 |
| WindowMaxGeometry | 窗口最大化 |
+| CheckedGeometry | 选中 |
+| PageModeGeometry | 单页模式 |
+| TwoPageModeGeometry | 双页模式 |
+| ScrollModeGeometry | 滚动模式 |
+| EyeOpenGeometry | 睁眼 |
+| EyeCloseGeometry | 闭眼 |
| AudioGeometry | 声音 |
| BubbleTailGeometry | 气泡的尾巴 |
| StarGeometry | 爱心 |
diff --git a/doc/source/handycontrol/native_controls/frame/index.md b/doc/source/handycontrol/native_controls/frame/index.md
new file mode 100644
index 00000000..b78c4faa
--- /dev/null
+++ b/doc/source/handycontrol/native_controls/frame/index.md
@@ -0,0 +1,17 @@
+---
+title: Frame 导航框架
+---
+
+# FrameBaseStyle
+
+导航框架默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+案例:
+
+``` xml
+
+```
+
+效果:
+
+
\ No newline at end of file
diff --git a/doc/source/handycontrol/native_controls/textBlock/index.md b/doc/source/handycontrol/native_controls/textBlock/index.md
index ca12ad62..b1baf500 100644
--- a/doc/source/handycontrol/native_controls/textBlock/index.md
+++ b/doc/source/handycontrol/native_controls/textBlock/index.md
@@ -1,5 +1,37 @@
---
-title: 建设中
+title: TextBlock 文本块
---
-建设中
\ No newline at end of file
+# TextBlockBaseStyle
+
+文本块默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+# TextBlockBoldBaseStyle
+
+文本块粗体默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+# 案例
+
+```xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
+
\ No newline at end of file
diff --git a/doc/source/handycontrol/native_controls/textBox/index.md b/doc/source/handycontrol/native_controls/textBox/index.md
index ca12ad62..b9a3dcc8 100644
--- a/doc/source/handycontrol/native_controls/textBox/index.md
+++ b/doc/source/handycontrol/native_controls/textBox/index.md
@@ -1,5 +1,40 @@
---
-title: 建设中
+title: TextBox 文本框
---
-建设中
\ No newline at end of file
+# TextBoxBaseStyle
+
+原生文本框默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+- 默认样式
+``
+
+
+# TextBoxExtendBaseStyle : TextBoxBaseStyle
+
+原生文本框扩展默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+# TextBoxExtend : TextBoxExtendBaseStyle
+
+相对于原生文本框默认样式,它借助于附加属性可以实现标题、水印的功能。
+
+- 标题在上
+``
+
+
+- 标题在左
+``
+
+
+{% note warning %}
+标题在左时,为了多个输入框左侧对齐,需要设置标题宽度,标题宽度无需逐个设置,可在外部容器上统一设置。
+{% endnote %}
+
+- 标题在上,带有水印
+[参见Combobox](https://handyorg.github.io/handycontrol/native_controls/comboBox/)
+
+- 标题在上,带有水印,且为必填
+[参见Combobox](https://handyorg.github.io/handycontrol/native_controls/comboBox/)
+
+- 标题在上,带有水印,且为必填,同时自定义必填提示符
+[参见Combobox](https://handyorg.github.io/handycontrol/native_controls/comboBox/)
\ No newline at end of file
diff --git a/doc/source/handycontrol/native_controls/toggleButton/index.md b/doc/source/handycontrol/native_controls/toggleButton/index.md
index ca12ad62..c2e65ddc 100644
--- a/doc/source/handycontrol/native_controls/toggleButton/index.md
+++ b/doc/source/handycontrol/native_controls/toggleButton/index.md
@@ -1,5 +1,177 @@
---
-title: 建设中
+title: ToggleButton 切换按钮
---
-建设中
\ No newline at end of file
+# ToggleButtonBaseStyle : ButtonBaseBaseStyle
+
+切换按钮默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+{% note info %}
+所有继承此样式的按钮都可以使用`IconElement`中定义的附加属性来控制按钮中几何图形的属性。
+{% endnote %}
+
+{% note info %}
+所有继承此样式的按钮都可以使用`BorderElement.CornerRadius`附加属性来控制按钮的圆角大小。
+{% endnote %}
+
+## 相关样式
+
+| 名称 | 继承自 | 用途描述 |
+| - | - | - |
+| ToggleButtonPrimary | ToggleButtonBaseStyle | 主要 |
+| ToggleButtonSuccess | ToggleButtonBaseStyle | 成功 |
+| ToggleButtonInfo | ToggleButtonBaseStyle | 信息 |
+| ToggleButtonWarning | ToggleButtonBaseStyle | 警告 |
+| ToggleButtonDanger | ToggleButtonBaseStyle | 危险 |
+
+案例:
+
+```xml
+
+
+
+
+
+
+
+
+```
+
+效果:
+
+
+
+# ToggleButtonIconBaseStyle : BaseStyle
+
+只显示图标的切换按钮,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+{% note info %}
+所有继承此样式的按钮都可以使用`IconElement`中定义的附加属性来控制按钮中几何图形的属性。
+{% endnote %}
+
+{% note info %}
+所有继承此样式的按钮都可以使用`BorderElement.CornerRadius`附加属性来控制按钮的圆角大小。
+{% endnote %}
+
+## 相关样式
+
+| 名称 | 继承自 | 用途描述 |
+| - | - | - |
+| ToggleButtonIcon | ToggleButtonIconBaseStyle | 默认 |
+| ToggleButtonIconPrimary | ToggleButtonIconBaseStyle | 主要 |
+| ToggleButtonIconSuccess | ToggleButtonIconBaseStyle | 成功 |
+| ToggleButtonIconInfo | ToggleButtonIconBaseStyle | 信息 |
+| ToggleButtonIconWarning | ToggleButtonIconBaseStyle | 警告 |
+| ToggleButtonIconDanger | ToggleButtonIconBaseStyle | 危险 |
+| ToggleButtonIconTransparent | ToggleButtonIconBaseStyle | 透明 |
+
+案例:
+
+```xml
+
+
+
+
+
+
+
+
+
+```
+
+效果:
+
+
+
+# ToggleButtonSwitchBaseStyle : BaseStyle
+
+开关式切换按钮,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+## 相关样式
+
+| 名称 | 继承自 |
+| - | - | - |
+| ToggleButtonSwitch | ToggleButtonSwitchBaseStyle |
+
+案例:
+
+```xml
+
+
+
+
+```
+
+效果:
+
+
+
+# ToggleButtonFlip : BaseStyle
+
+翻转式切换按钮。
+
+案例:
+
+```xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
+效果:
+
+
+
+# ToggleButtonCustom : BaseStyle
+
+如果想完全自定义按钮的内容,则推荐使用此样式。`ToggleButtonCustom`中的内容完全由你自己决定。
+
+案例:
+
+```xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
+效果:
+
+
\ No newline at end of file
diff --git a/doc/source/handycontrol/native_controls/toolBar/index.md b/doc/source/handycontrol/native_controls/toolBar/index.md
index ca12ad62..17b6d024 100644
--- a/doc/source/handycontrol/native_controls/toolBar/index.md
+++ b/doc/source/handycontrol/native_controls/toolBar/index.md
@@ -1,5 +1,21 @@
---
-title: 建设中
+title: ToolBar 工具条
---
-建设中
\ No newline at end of file
+# ToolBarBaseStyle
+
+工具条默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+案例:
+
+```xml
+
+
+
+
+
+```
+
+效果:
+
+
\ No newline at end of file
diff --git a/doc/source/handycontrol/native_controls/toolTip/index.md b/doc/source/handycontrol/native_controls/toolTip/index.md
index ca12ad62..57eb7c77 100644
--- a/doc/source/handycontrol/native_controls/toolTip/index.md
+++ b/doc/source/handycontrol/native_controls/toolTip/index.md
@@ -1,5 +1,7 @@
---
-title: 建设中
+title: ToolTip 工具提示
---
-建设中
\ No newline at end of file
+# ToolTipBaseStyle
+
+工具提示默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
\ No newline at end of file
diff --git a/doc/source/handycontrol/native_controls/treeView/index.md b/doc/source/handycontrol/native_controls/treeView/index.md
index ca12ad62..be3ad34f 100644
--- a/doc/source/handycontrol/native_controls/treeView/index.md
+++ b/doc/source/handycontrol/native_controls/treeView/index.md
@@ -1,5 +1,35 @@
---
-title: 建设中
+title: TreeView 树视图
---
-建设中
\ No newline at end of file
+# TreeViewBaseStyle : BaseStyle
+
+树视图默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
+
+案例:
+
+ ```xml
+
+
+
+
+
+
+
+
+
+
+
+
+ ```
+
+效果:
+
+
+
+# 相关样式
+
+| 名称 | 继承自 | 用途描述 |
+| - | - | - |
+| TreeViewItemBaseStyle | BaseStyle | 树视图项默认样式 |
+| ExpandCollapseToggleStyle | | 树视图折叠按钮样式 |
\ No newline at end of file
diff --git a/doc/source/handycontrol/native_controls/window/index.md b/doc/source/handycontrol/native_controls/window/index.md
index ca12ad62..e5275a54 100644
--- a/doc/source/handycontrol/native_controls/window/index.md
+++ b/doc/source/handycontrol/native_controls/window/index.md
@@ -1,5 +1,13 @@
---
-title: 建设中
+title: Window 窗口
---
-建设中
\ No newline at end of file
+`wpf`中窗口不会自动应用隐式样式,`hc`中提供了相关方法用以解决这个问题。
+
+# Window 窗口
+
+可通过 `ConfigHelper.Instance.SetWindowDefaultStyle()` 来设置窗口的默认样式。
+
+# NavigationWindow 导航窗口
+
+可通过 `ConfigHelper.Instance.SetNavigationWindowDefaultStyle()` 来设置导航窗口的默认样式。
\ No newline at end of file
diff --git a/doc/source/handykeras/index.md b/doc/source/handykeras/index.md
deleted file mode 100644
index 76441549..00000000
--- a/doc/source/handykeras/index.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
-title: handykeras
-date: 2019-04-02 00:03:48
----
diff --git a/doc/themes/next/_config.yml b/doc/themes/next/_config.yml
index 757820ce..6e310349 100644
--- a/doc/themes/next/_config.yml
+++ b/doc/themes/next/_config.yml
@@ -204,6 +204,7 @@ menu:
DatePicker 日期选择器: /datePicker/ ||
Expander 展开框: /expander/ ||
FlowDocument 流文档: /flowDocument/ ||
+ Frame 导航框架: /frame/ ||
GroupBox 分组框: /groupBox/ ||
Image 图片: /image/ ||
Label 标签: /label/ ||
diff --git a/doc/themes/next/source/css/_custom/custom.styl b/doc/themes/next/source/css/_custom/custom.styl
index 1821a436..371e0204 100644
--- a/doc/themes/next/source/css/_custom/custom.styl
+++ b/doc/themes/next/source/css/_custom/custom.styl
@@ -3,6 +3,7 @@
margin: 3px;
display: inline;
padding: 3px !important;
+ border: 0;
}
.post-body h2 {
diff --git a/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml b/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml
index b556d943..fd88df4e 100644
--- a/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml
+++ b/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml
@@ -10,6 +10,7 @@
+
+
+
diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/ToggleButton.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/ToggleButton.xaml
index 2c7e5ded..f694cbb1 100644
--- a/src/Shared/HandyControl_Shared/Themes/Styles/ToggleButton.xaml
+++ b/src/Shared/HandyControl_Shared/Themes/Styles/ToggleButton.xaml
@@ -264,7 +264,6 @@
-
diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/ToolTip.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/ToolTip.xaml
index 99db4872..5af974d0 100644
--- a/src/Shared/HandyControl_Shared/Themes/Styles/ToolTip.xaml
+++ b/src/Shared/HandyControl_Shared/Themes/Styles/ToolTip.xaml
@@ -1,21 +1,9 @@
-
+
-
+
+
+
+
+