From c46f8a754ce1e69ded6b23d84f9e69d0b0d6caba Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Tue, 28 Jul 2020 23:19:42 +0800 Subject: [PATCH] update doc --- .../extend_controls/comboBox/index.md | 3 +- .../extend_controls/compareSlider/index.md | 55 +++++++++++++++++++ .../extend_controls/coverFlow/index.md | 52 +++++++++++++++++- .../extend_controls/coverView/index.md | 40 +++++++++++++- 4 files changed, 145 insertions(+), 5 deletions(-) diff --git a/doc/source/handycontrol/extend_controls/comboBox/index.md b/doc/source/handycontrol/extend_controls/comboBox/index.md index 4f765c15..3d3836b1 100644 --- a/doc/source/handycontrol/extend_controls/comboBox/index.md +++ b/doc/source/handycontrol/extend_controls/comboBox/index.md @@ -7,6 +7,7 @@ title: ComboBox 组合框 ```cs public class ComboBox : System.Windows.Controls.ComboBox, IDataInput ``` + # 属性 |属性|描述|默认值|备注| @@ -65,4 +66,4 @@ public class ComboBox : System.Windows.Controls.ComboBox, IDataInput ``` -![ColorPicker](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/extend_controls/ComboBox_1.png) \ No newline at end of file +![ComboBox](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/extend_controls/ComboBox_1.png) \ No newline at end of file diff --git a/doc/source/handycontrol/extend_controls/compareSlider/index.md b/doc/source/handycontrol/extend_controls/compareSlider/index.md index c58a6f3a..0a1a7d3d 100644 --- a/doc/source/handycontrol/extend_controls/compareSlider/index.md +++ b/doc/source/handycontrol/extend_controls/compareSlider/index.md @@ -2,3 +2,58 @@ title: CompareSlider 对比滑块 --- +借助对比滑块可以很方便得看出元素改动前后的差异。 + +```cs +public class CompareSlider : Slider +``` + +# 属性 + +|属性|描述|默认值|备注| +|-|-|-|-| +|TargetContent|目标内容||| +|SourceContent|源内容(当前内容)|||| + +# 案例 + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +![CompareSlider](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/CompareSlider-v.gif) + +![CompareSlider](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/CompareSlider-h.gif) \ No newline at end of file diff --git a/doc/source/handycontrol/extend_controls/coverFlow/index.md b/doc/source/handycontrol/extend_controls/coverFlow/index.md index ca12ad62..cd580f7a 100644 --- a/doc/source/handycontrol/extend_controls/coverFlow/index.md +++ b/doc/source/handycontrol/extend_controls/coverFlow/index.md @@ -1,5 +1,53 @@ --- -title: 建设中 +title: CoverFlow 封面流 --- -建设中 \ No newline at end of file +该控件将封面以3D的形式展示出来,可用于增强界面效果。 + +```cs +[TemplatePart(Name = ElementViewport3D, Type = typeof(Viewport3D))] +[TemplatePart(Name = ElementCamera, Type = typeof(ProjectionCamera))] +[TemplatePart(Name = ElementVisualParent, Type = typeof(ModelVisual3D))] +public class CoverFlow : Control +``` + +# 属性 + +|属性|描述|默认值|备注| +|-|-|-|-| +|PageIndex|页码||| +|Loop|是否循环展示|||| + +# 方法 + +|方法|描述| +|-|-| +|Add(string)|添加一项资源| +|Add(Uri)|添加一项资源| +|AddRange(IEnumerable)|批量添加资源| +|JumpTo(int)|跳转| + +# 案例 + +```cs +CoverFlowMain.AddRange(new [] +{ + new Uri(@"pack://application:,,,/Resources/Img/Album/1.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/2.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/3.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/4.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/5.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/6.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/7.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/8.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/9.jpg"), + new Uri(@"pack://application:,,,/Resources/Img/Album/10.jpg") +}); +CoverFlowMain.JumpTo(2); +``` + +```xml + +``` + +![CoverFlow](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/CoverFlow.gif) \ No newline at end of file diff --git a/doc/source/handycontrol/extend_controls/coverView/index.md b/doc/source/handycontrol/extend_controls/coverView/index.md index ca12ad62..fbb5f548 100644 --- a/doc/source/handycontrol/extend_controls/coverView/index.md +++ b/doc/source/handycontrol/extend_controls/coverView/index.md @@ -1,5 +1,41 @@ --- -title: 建设中 +title: CoverView 封面视图 --- -建设中 \ No newline at end of file +仿制Itunes的专辑视图。 + +```cs +public class CoverView : RegularItemsControl +``` + +# 属性 + +|属性|描述|默认值|备注| +|-|-|-|-| +|CoverViewContentStyle|封面内容样式||| +|ItemContentHeight|项内容高度|300|| +|ItemContentHeightFixed|项内容高度是否固定|true|| +|ItemHeaderTemplate|项标题模板||| +|SourceContent|源内容(当前内容)||| +|Groups|组数|||| + +# 案例 + +```xml + + + + + + + + + + + + + + +``` + +![CoverView](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/CoverView.gif) \ No newline at end of file