From 19830c7f6739769ecc348681cfdcad1514683f37 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Wed, 5 Feb 2020 22:25:25 +0800 Subject: [PATCH] update docs of native controls --- .../flowDocumentScrollViewer/index.md | 108 +++++++++++++++++- .../native_controls/seperator/index.md | 6 +- .../native_controls/statusBar/index.md | 6 +- doc/source/handycontrol/tnx/index.md | 4 +- .../HandyControl_Shared.projitems | 4 + .../FlowDocumentScrollViewerBaseStyle.xaml | 55 +++++++++ .../Styles/FlowDocumentScrollViewer.xaml | 52 +-------- 7 files changed, 181 insertions(+), 54 deletions(-) create mode 100644 src/Shared/HandyControl_Shared/Themes/Styles/Base/FlowDocumentScrollViewerBaseStyle.xaml diff --git a/doc/source/handycontrol/native_controls/flowDocumentScrollViewer/index.md b/doc/source/handycontrol/native_controls/flowDocumentScrollViewer/index.md index 79addbe2..eaa3193e 100644 --- a/doc/source/handycontrol/native_controls/flowDocumentScrollViewer/index.md +++ b/doc/source/handycontrol/native_controls/flowDocumentScrollViewer/index.md @@ -1,3 +1,109 @@ --- -title: FlowDocumentScrollViewer +title: FlowDocumentScrollViewer 流文档滚动视图 --- + +# FlowDocumentScrollViewerBaseStyle + +流文档滚动视图默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 + +案例: + +``` xml + + +
+ + Neptune (planet), major planet in the solar system, eighth planet + from the Sun and fourth largest in diameter. Neptune maintains an almost constant + distance, about 4,490 million km (about 2,790 million mi), from the Sun. Neptune + revolves outside the orbit of Uranus and for most of its orbit moves inside the + elliptical path of the outermost planet Pluto (see Solar System). Every 248 years, + Pluto’s elliptical orbit brings the planet inside Neptune’s nearly circular orbit + for about 20 years, temporarily making Neptune the farthest planet from the Sun. + The last time Pluto’s orbit brought it inside Neptune’s orbit was in 1979. In + 1999 Pluto’s orbit carried it back outside Neptune’s orbit. +
+ + Neptune has 72 times Earth's volume... + +
+ + + + + + + + + + Neptune Stats + + + + + Mean Distance from Sun + + + 4,504,000,000 km + + + + + Mean Diameter + + + 49,532 km + + + + + Approximate Mass + + + 1.0247e26 kg + + + + + + Information from the + Encarta + web site. + + + + +
+
+
+ + Astronomers believe Neptune has an inner rocky core that is surrounded by a vast + ocean of water mixed with rocky material. From the inner core, this ocean extends + upward until it meets a gaseous atmosphere of hydrogen, helium, and trace amounts + of methane. Neptune has four rings and 11 known moons. Even though Neptune's volume + is 72 times Earth’s volume, its mass is only 17.15 times Earth’s mass. Because of + its size, scientists classify Neptune—along with Jupiter, Saturn, and Uranus—as + one of the giant or Jovian planets (so-called because they resemble Jupiter). + + +
+ + Neptune has an orbital period of ~20 years... + +
+ Mathematical theories of astronomy led to the discovery of Neptune. To account for + wobbles in the orbit of the planet Uranus, British astronomer John Couch Adams and + French astronomer Urbain Jean Joseph Leverrier independently calculated the existence + and position of a new planet in 1845 and 1846, respectively. They theorized that the + gravitational attraction of this planet for Uranus was causing the wobbles in Uranus’s + orbit. Using information from Leverrier, German astronomer Johann Gottfried Galle first + observed the planet in 1846. +
+
+
+
+``` + +效果: + +![FlowDocumentScrollViewer](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/FlowDocumentScrollViewer.png) \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/seperator/index.md b/doc/source/handycontrol/native_controls/seperator/index.md index d5c4eaa4..9b06017b 100644 --- a/doc/source/handycontrol/native_controls/seperator/index.md +++ b/doc/source/handycontrol/native_controls/seperator/index.md @@ -1,3 +1,7 @@ --- -title: Seperator +title: Seperator 分隔符 --- + +# SeparatorBaseStyle + +分隔符默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 \ No newline at end of file diff --git a/doc/source/handycontrol/native_controls/statusBar/index.md b/doc/source/handycontrol/native_controls/statusBar/index.md index 23fa3e6c..6fe4aa99 100644 --- a/doc/source/handycontrol/native_controls/statusBar/index.md +++ b/doc/source/handycontrol/native_controls/statusBar/index.md @@ -1,3 +1,7 @@ --- -title: StatusBar +title: StatusBar 状态栏 --- + +# StatusBarBaseStyle + +状态栏默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。 \ No newline at end of file diff --git a/doc/source/handycontrol/tnx/index.md b/doc/source/handycontrol/tnx/index.md index 565cb3ca..ca232716 100644 --- a/doc/source/handycontrol/tnx/index.md +++ b/doc/source/handycontrol/tnx/index.md @@ -4,7 +4,7 @@ title: 鸣谢 # 感谢以下Coder提供代码贡献 -

ghost1372Dingping ZhangM0n7y5guanguanchuangyuyanchao891012noctwolfxianyun666afunc233DinoChan

+

ghost1372Dingping ZhangM0n7y5guanguanchuangyuyanchao891012noctwolfxianyun666afunc233DinoChanMrZhangYuan

# 感谢以下组织机构提供开源许可 @@ -12,4 +12,4 @@ title: 鸣谢 # 感谢以下捐赠者 -

bigorange190014632791IUpdatablemapleweisunshang-hlyangkang326zmrbakAFei19911012wayne2006towerDLHBluceBosenMrZhangYuanYC946586

\ No newline at end of file +

bigorange190014632791IUpdatablemapleweisunshang-hlyangkang326zmrbakAFei19911012wayne2006towerDLHBluceBosenMrZhangYuanYC946586

\ No newline at end of file diff --git a/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems b/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems index 8f137a9f..d97060b7 100644 --- a/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems +++ b/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems @@ -398,6 +398,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/Base/FlowDocumentScrollViewerBaseStyle.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/Base/FlowDocumentScrollViewerBaseStyle.xaml new file mode 100644 index 00000000..dc226e95 --- /dev/null +++ b/src/Shared/HandyControl_Shared/Themes/Styles/Base/FlowDocumentScrollViewerBaseStyle.xaml @@ -0,0 +1,55 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/FlowDocumentScrollViewer.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/FlowDocumentScrollViewer.xaml index e64aedab..eab4eb00 100644 --- a/src/Shared/HandyControl_Shared/Themes/Styles/FlowDocumentScrollViewer.xaml +++ b/src/Shared/HandyControl_Shared/Themes/Styles/FlowDocumentScrollViewer.xaml @@ -1,55 +1,9 @@ - + - - + - +