update docs of native controls
This commit is contained in:
1 parent
0258c19640
commit
19830c7f67
7 files changed
+181
-54
No files matched your search
@@ -1,3 +1,109 @@
|
||||
---
|
||||
title: FlowDocumentScrollViewer
|
||||
title: FlowDocumentScrollViewer 流文档滚动视图
|
||||
---
|
||||
|
||||
# FlowDocumentScrollViewerBaseStyle
|
||||
|
||||
流文档滚动视图默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
|
||||
案例:
|
||||
|
||||
``` xml
|
||||
<FlowDocumentScrollViewer IsToolBarVisible="True" Width="502" Height="400" Margin="32">
|
||||
<FlowDocument ColumnWidth="400" IsOptimalParagraphEnabled="True" IsHyphenationEnabled="True">
|
||||
<Section FontSize="12">
|
||||
<Paragraph>
|
||||
<Bold>Neptune</Bold> (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.
|
||||
<Figure Width="140" Height="50" Background="GhostWhite" HorizontalAnchor="PageLeft" HorizontalOffset="100" VerticalOffset="20">
|
||||
<Paragraph FontStyle="Italic" TextAlignment="Left" Background="Beige" Foreground="DarkGreen">
|
||||
Neptune has 72 times Earth's volume...
|
||||
</Paragraph>
|
||||
</Figure>
|
||||
<Floater Background="GhostWhite" Width="285" HorizontalAlignment="Left">
|
||||
<Table CellSpacing="5">
|
||||
<Table.Columns>
|
||||
<TableColumn Width="155"/>
|
||||
<TableColumn Width="130"/>
|
||||
</Table.Columns>
|
||||
<TableRowGroup>
|
||||
<TableRow>
|
||||
<TableCell ColumnSpan="3">
|
||||
<Paragraph>Neptune Stats</Paragraph>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow Background="LightGoldenrodYellow" FontSize="12">
|
||||
<TableCell>
|
||||
<Paragraph FontWeight="Bold">Mean Distance from Sun</Paragraph>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Paragraph>4,504,000,000 km</Paragraph>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow FontSize="12" Background="LightGray">
|
||||
<TableCell>
|
||||
<Paragraph FontWeight="Bold">Mean Diameter</Paragraph>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Paragraph>49,532 km</Paragraph>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow Background="LightGoldenrodYellow" FontSize="12">
|
||||
<TableCell>
|
||||
<Paragraph FontWeight="Bold">Approximate Mass</Paragraph>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Paragraph>1.0247e26 kg</Paragraph>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<TableCell ColumnSpan="4">
|
||||
<Paragraph FontSize="10" FontStyle="Italic">
|
||||
Information from the
|
||||
<Hyperlink NavigateUri="http://encarta.msn.com/encnet/refpages/artcenter.aspx">Encarta</Hyperlink>
|
||||
web site.
|
||||
</Paragraph>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableRowGroup>
|
||||
</Table>
|
||||
</Floater>
|
||||
</Paragraph>
|
||||
<Paragraph>
|
||||
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).
|
||||
</Paragraph>
|
||||
<Paragraph>
|
||||
<Figure Width="140" Height="50" Background="GhostWhite" TextAlignment="Left" HorizontalAnchor="PageCenter" WrapDirection="Both">
|
||||
<Paragraph FontStyle="Italic" Background="Beige" Foreground="DarkGreen" >
|
||||
Neptune has an orbital period of ~20 years...
|
||||
</Paragraph>
|
||||
</Figure>
|
||||
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.
|
||||
</Paragraph>
|
||||
</Section>
|
||||
</FlowDocument>
|
||||
</FlowDocumentScrollViewer>
|
||||
```
|
||||
|
||||
效果:
|
||||
|
||||

|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
title: Seperator
|
||||
title: Seperator 分隔符
|
||||
---
|
||||
|
||||
# SeparatorBaseStyle
|
||||
|
||||
分隔符默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
title: StatusBar
|
||||
title: StatusBar 状态栏
|
||||
---
|
||||
|
||||
# StatusBarBaseStyle
|
||||
|
||||
状态栏默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
@@ -4,7 +4,7 @@ title: 鸣谢
|
||||
|
||||
# 感谢以下Coder提供代码贡献
|
||||
|
||||
<p><a style="border:0" href="https://github.com/ghost1372" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars0.githubusercontent.com/u/9213496?s=400&v=4" alt="ghost1372"></a><a style="border:0" href="https://github.com/DingpingZhang" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars0.githubusercontent.com/u/8541016?s=400&v=4" alt="Dingping Zhang"></a><a style="border:0" href="https://github.com/M0n7y5" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars0.githubusercontent.com/u/17201053?s=400&v=4" alt="M0n7y5"></a><a style="border:0" href="https://github.com/guanguanchuangyu" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/25916858?s=400&v=4" alt="guanguanchuangyu"></a><a style="border:0" href="https://github.com/yanchao891012" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars0.githubusercontent.com/u/16846702?s=400&v=4" alt="yanchao891012"></a><a style="border:0" href="https://github.com/noctwolf" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars3.githubusercontent.com/u/21022467?s=400&v=4" alt="noctwolf"></a><a style="border:0" href="https://github.com/xianyun666" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/22339210?s=400&v=4" alt="xianyun666"></a><a style="border:0" href="https://github.com/afunc233" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/19919631?s=400&v=4" alt="afunc233"></a><a style="border:0" href="https://github.com/DinoChan" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/6076257?s=400&v=4" alt="DinoChan"></a></p>
|
||||
<p><a style="border:0" href="https://github.com/ghost1372" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/9213496?s=400&v=4" alt="ghost1372"></a><a style="border:0" href="https://github.com/DingpingZhang" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/8541016?s=400&v=4" alt="Dingping Zhang"></a><a style="border:0" href="https://github.com/M0n7y5" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/17201053?s=400&v=4" alt="M0n7y5"></a><a style="border:0" href="https://github.com/guanguanchuangyu" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/25916858?s=400&v=4" alt="guanguanchuangyu"></a><a style="border:0" href="https://github.com/yanchao891012" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/16846702?s=400&v=4" alt="yanchao891012"></a><a style="border:0" href="https://github.com/noctwolf" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/21022467?s=400&v=4" alt="noctwolf"></a><a style="border:0" href="https://github.com/xianyun666" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/22339210?s=400&v=4" alt="xianyun666"></a><a style="border:0" href="https://github.com/afunc233" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/19919631?s=400&v=4" alt="afunc233"></a><a style="border:0" href="https://github.com/DinoChan" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/6076257?s=400&v=4" alt="DinoChan"></a><a style="border:0" href="https://github.com/MrZhangYuan" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/16384123?s=400&v=4" alt="MrZhangYuan"></a></p>
|
||||
|
||||
# 感谢以下组织机构提供开源许可
|
||||
|
||||
@@ -12,4 +12,4 @@ title: 鸣谢
|
||||
|
||||
# 感谢以下捐赠者
|
||||
|
||||
<p><a style="border:0" href="https://github.com/bigorange1900" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/49062011?s=400&v=4" alt="bigorange1900"></a><a style="border:0" href="https://github.com/14632791" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars3.githubusercontent.com/u/27358331?s=400&v=4" alt="14632791"></a><a style="border:0" href="https://github.com/IUpdatable" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars2.githubusercontent.com/u/51181716?s=400&v=4" alt="IUpdatable"></a><a style="border:0" href="https://github.com/maplewei" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/13778095?s=400&v=4" alt="maplewei"></a><a style="border:0" href="https://github.com/sunshang-hl" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/34593206?s=400&v=4" alt="sunshang-hl"></a><a style="border:0" href="https://github.com/yangkang326" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/51224259?s=400&v=4" alt="yangkang326"></a><a style="border:0" href="https://github.com/zmrbak" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars3.githubusercontent.com/u/7257543?s=400&v=4" alt="zmrbak"></a><a style="border:0" href="https://github.com/AFei19911012" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars0.githubusercontent.com/u/31465314?s=400&v=4" alt="AFei19911012"></a><a style="border:0" href="https://github.com/wayne2006" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars0.githubusercontent.com/u/21210915?s=400&v=4" alt="wayne2006"></a><a style="border:0" href="https://github.com/towerDLH" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars1.githubusercontent.com/u/53053537?s=400&v=4" alt="towerDLH"></a><a style="border:0" href="https://github.com/BluceBosen" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars3.githubusercontent.com/u/24750822?s=400&v=4" alt="BluceBosen"></a><a style="border:0" href="https://github.com/MrZhangYuan" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars2.githubusercontent.com/u/16384123?s=400&v=4" alt="MrZhangYuan"></a><a style="border:0" href="https://github.com/YC946586" target="_blank" rel="noopener"><img width="120" height="120" src="https://avatars2.githubusercontent.com/u/49895722?s=400&v=4" alt="YC946586"></a></p>
|
||||
<p><a style="border:0" href="https://github.com/bigorange1900" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/49062011?s=400&v=4" alt="bigorange1900"></a><a style="border:0" href="https://github.com/14632791" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/27358331?s=400&v=4" alt="14632791"></a><a style="border:0" href="https://github.com/IUpdatable" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/51181716?s=400&v=4" alt="IUpdatable"></a><a style="border:0" href="https://github.com/maplewei" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/13778095?s=400&v=4" alt="maplewei"></a><a style="border:0" href="https://github.com/sunshang-hl" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/34593206?s=400&v=4" alt="sunshang-hl"></a><a style="border:0" href="https://github.com/yangkang326" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/51224259?s=400&v=4" alt="yangkang326"></a><a style="border:0" href="https://github.com/zmrbak" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/7257543?s=400&v=4" alt="zmrbak"></a><a style="border:0" href="https://github.com/AFei19911012" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/31465314?s=400&v=4" alt="AFei19911012"></a><a style="border:0" href="https://github.com/wayne2006" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/21210915?s=400&v=4" alt="wayne2006"></a><a style="border:0" href="https://github.com/towerDLH" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/53053537?s=400&v=4" alt="towerDLH"></a><a style="border:0" href="https://github.com/BluceBosen" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/24750822?s=400&v=4" alt="BluceBosen"></a><a style="border:0" href="https://github.com/MrZhangYuan" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/16384123?s=400&v=4" alt="MrZhangYuan"></a><a style="border:0" href="https://github.com/YC946586" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/49895722?s=400&v=4" alt="YC946586"></a></p>
|
||||
Reference in new issue
Block a user