merged pr
This commit is contained in:
1 parent
8da45a30fc
commit
aa6587022b
6 files changed
+23
-59
No files matched your search
@@ -4,39 +4,18 @@ title: RichTextBox 富文本框
|
||||
|
||||
# TextBoxBaseBaseStyle
|
||||
|
||||
该样式属于文本框基础样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
基础文本控件默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
|
||||
# RichTextBoxBaseStyle : TextBoxBaseBaseStyle
|
||||
|
||||
富文本框默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<Style x:Key="RichTextBoxBaseStyle" BasedOn="{StaticResource TextBoxBaseBaseStyle}" TargetType="RichTextBox">
|
||||
<Setter Property="MinWidth" Value="10"/>
|
||||
</Style>
|
||||
```
|
||||
|
||||
# RichTextBoxBaseStyle:TextBoxBaseBaseStyle
|
||||
|
||||
富文本框的基础样式,作为默认富文本框的基类样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<Style BasedOn="{StaticResource RichTextBoxBaseStyle}" TargetType="RichTextBox"/>
|
||||
```
|
||||
|
||||
`xaml`中:
|
||||
|
||||
```xml
|
||||
<RichTextBox Margin="10,10" VerticalAlignment="Center" HorizontalAlignment="Center"></RichTextBox>
|
||||
```
|
||||
|
||||
|
||||
|
||||
效果:
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
|
||||

|
||||
@@ -4,16 +4,10 @@ title: ScrollViewer 滚动视图
|
||||
|
||||
# ScrollViewerNativeBaseStyle
|
||||
|
||||
滚动视图的基础样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
原生滚动视图默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<Style BasedOn="{StaticResource ScrollViewerNativeBaseStyle}" TargetType="ScrollViewer"/>
|
||||
```
|
||||
|
||||
`xaml`中:
|
||||
|
||||
```xml
|
||||
<ScrollViewer>
|
||||
<Grid Height="500">
|
||||
@@ -33,7 +27,7 @@ title: ScrollViewer 滚动视图
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<ScrollViewer Style="{DynamicResource ScrollViewerUpDown}">
|
||||
<ScrollViewer Style="{StaticResource ScrollViewerUpDown}">
|
||||
<StackPanel Height="500">
|
||||
<TextBlock Text="内容区域" Height="250"></TextBlock>
|
||||
<TextBlock Text="内容区域" Height="250"></TextBlock>
|
||||
|
||||
@@ -4,15 +4,12 @@ title: Slider 滑块
|
||||
|
||||
# SliderBaseStyle
|
||||
|
||||
滑块基础样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
滑块默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<UniformGrid.Resources>
|
||||
<Style BasedOn="{StaticResource SliderBaseStyle}" TargetType="Slider"/>
|
||||
</UniformGrid.Resources>
|
||||
<Slider Margin="10,30"></Slider>
|
||||
<Slider VerticalAlignment="Center" Width="400" Value="40" Maximum="100"/>
|
||||
```
|
||||
|
||||
效果:
|
||||
|
||||
@@ -4,16 +4,10 @@ title: TabControl 选项卡控件
|
||||
|
||||
# TabControlBaseStyle
|
||||
|
||||
选项卡控件默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用
|
||||
选项卡控件默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<Style BasedOn="{StaticResource TabControlBaseStyle}" TargetType="TabControl"/>
|
||||
```
|
||||
|
||||
`xaml`中:
|
||||
|
||||
```xml
|
||||
<TabControl Margin="10">
|
||||
<TabItem Header="选项卡1">
|
||||
@@ -29,14 +23,14 @@ title: TabControl 选项卡控件
|
||||
|
||||

|
||||
|
||||
# TabControlInLine
|
||||
# TabControlInLine : TabControlBaseStyle
|
||||
|
||||
行内选中选项卡样式
|
||||
单行填充选项卡样式
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<TabControl Margin="10" Style="{DynamicResource TabControlInLine}">
|
||||
<TabControl Margin="10" Style="{StaticResource TabControlInLine}">
|
||||
<TabItem Header="选项卡1">
|
||||
</TabItem>
|
||||
<TabItem Header="选项卡2">
|
||||
@@ -52,12 +46,12 @@ title: TabControl 选项卡控件
|
||||
|
||||
# TabControlCapsule
|
||||
|
||||
简约选项卡样式
|
||||
胶囊状选项卡样式
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<TabControl Margin="10" Style="{DynamicResource TabControlCapsule}">
|
||||
<TabControl Margin="10" Style="{StaticResource TabControlCapsule}">
|
||||
<TabItem Header="选项卡1">
|
||||
</TabItem>
|
||||
<TabItem Header="选项卡2">
|
||||
@@ -71,12 +65,14 @@ title: TabControl 选项卡控件
|
||||
|
||||

|
||||
|
||||
# TabControlCapsuleSolid
|
||||
# TabControlCapsuleSolid : TabControlCapsule
|
||||
|
||||
胶囊状(实心)选项卡样式
|
||||
|
||||
案例:
|
||||
|
||||
```xml
|
||||
<TabControl Margin="10" Style="{DynamicResource TabControlCapsuleSolid}">
|
||||
<TabControl Margin="10" Style="{StaticResource TabControlCapsuleSolid}">
|
||||
<TabItem Header="选项卡1">
|
||||
</TabItem>
|
||||
<TabItem Header="选项卡2">
|
||||
@@ -92,6 +88,6 @@ title: TabControl 选项卡控件
|
||||
|
||||
# 温馨提示
|
||||
|
||||
使用属性`TabStripPlacement`设定头部标题的位置,效果如下:
|
||||
可以使用属性`TabStripPlacement`设定头部标题的位置,效果如下:
|
||||
|
||||

|
||||
Vendored
+1
-1
@@ -872,7 +872,7 @@ needmoreshare2:
|
||||
# localhost_ignored: true
|
||||
|
||||
# CNZZ count
|
||||
#cnzz_siteid:
|
||||
cnzz_siteid: 1278600916
|
||||
|
||||
# Application Insights
|
||||
# See: https://azure.microsoft.com/en-us/services/application-insights
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
{% if theme.cnzz_siteid %}
|
||||
<div style="display: none;">
|
||||
<script src="//s95.cnzz.com/z_stat.php?id={{ theme.cnzz_siteid }}&web_id={{ theme.cnzz_siteid }}"></script>
|
||||
</div>
|
||||
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_{{ theme.cnzz_siteid }}'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s4.cnzz.com/z_stat.php%3Fid%3D{{ theme.cnzz_siteid }}%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user