This commit is contained in:
NaBian committed 2019-04-10 22:28:09 +08:00
1 parent 16ef430a39
commit 792897291b
445 files changed
+30584 -5

No files matched your search

@@ -0,0 +1,12 @@
---
title: 行为
---
| 名称 | 用途 |
|-|-|
| BehaviorXY200 | 流体移动行为,x、y轴运动,200毫秒结束动画 |
| BehaviorX200 | 流体移动行为,x轴运动,200毫秒结束动画 |
| BehaviorY200 | 流体移动行为,y轴运动,200毫秒结束动画 |
| BehaviorXY400 | 流体移动行为,x、y轴运动,400毫秒结束动画 |
| BehaviorX400 | 流体移动行为,x轴运动,400毫秒结束动画 |
| BehaviorY400 | 流体移动行为,y轴运动,400毫秒结束动画 |
@@ -0,0 +1,36 @@
---
title: 画刷
---
画刷基于颜色,现有的画刷定义如下:
| 名称 | 用途 |
|-|-|
| PrimaryBrush | 主色调 |
| DarkPrimaryBrush | 主色调(深色) |
| DangerBrush | 错误、危险 |
| DarkDangerBrush | 错误、危险(深色) |
| WarningBrush | 警告 |
| DarkWarningBrush | 警告(深色) |
| InfoBrush | 信息 |
| DarkInfoBrush | 信息(深色) |
| SuccessBrush | 成功 |
| DarkSuccessBrush | 成功(深色) |
| PrimaryTextBrush | 主文本 |
| SecondaryTextBrush | 次级文本 |
| ThirdlyTextBrush | 末级文本 |
| ReverseTextBrush | 反色文本 |
| TextIconBrush | 一般用于深色背景下的文字或图标 |
| BorderBrush | 边框 |
| SecondaryBorderBrush | 次级边框 |
| BackgroundBrush | 主背景色 |
| RegionBrush | 区域块背景 |
| SecondaryRegionBrush | 次级区域块背景 |
| ThirdlyRegionBrush | 末级区域块背景 |
| TitleBrush | 标题背景 |
| DefaultBrush | 默认颜色 |
| DarkDefaultBrush | 次级默认颜色 |
| AccentBrush | 提醒 |
| DarkAccentBrush | 提醒(深色) |
| DarkMaskBrush | 作为遮罩使用 |
| DarkOpacityBrush | 半透明背景 |
@@ -0,0 +1,46 @@
---
title: 颜色
---
内置的颜色xaml定义有3个,对它们的描述如下表所示:
| 名称 | 用途 |
|-|-|
| Colors.xaml | 默认配置 |
| ColorsDark.xaml | 暗色配置 |
| ColorsViolet.xaml | 紫色配置 |
每个文件中定义了相同的颜色名称,只是颜色值不同,对颜色名称的描述如下表所示:
| 名称 | 用途 |
|-|-|
| PrimaryColor | 主色调 |
| DarkPrimaryColor | 主色调(深色) |
| DangerColor | 错误、危险 |
| DarkDangerColor | 错误、危险(深色) |
| WarningColor | 警告 |
| DarkWarningColor | 警告(深色) |
| InfoColor | 信息 |
| DarkInfoColor | 信息(深色) |
| SuccessColor | 成功 |
| DarkSuccessColor | 成功(深色) |
| PrimaryTextColor | 主文本 |
| SecondaryTextColor | 次级文本 |
| ThirdlyTextColor | 末级文本 |
| ReverseTextColor | 反色文本 |
| TextIconColor | 一般用于深色背景下的文字或图标 |
| BorderColor | 边框 |
| SecondaryBorderColor | 次级边框 |
| BackgroundColor | 主背景色 |
| RegionColor | 区域块背景 |
| SecondaryRegionColor | 次级区域块背景 |
| ThirdlyRegionColor | 末级区域块背景 |
| TitleColor | 标题背景 |
| SecondaryTitleColor | 次级标题背景 |
| DefaultColor | 默认颜色 |
| DarkDefaultColor | 次级默认颜色 |
| AccentColor | 提醒 |
| DarkAccentColor | 提醒(深色) |
| DarkMaskColor | 作为遮罩使用 |
| DarkOpacityColor | 半透明背景 |
| BlurGradientValue | 仅用于模糊窗口的背景 |
@@ -0,0 +1,63 @@
---
title: 转换器
---
# Boolean2BooleanReConverter
该转换器用于反转布尔类型
# Boolean2StrConverter
该转换器需要提供一个字符串作为参数,该字符串的一般形式为:`[字符串0];[字符串1]`,当转换器获取的值为`true`时,会返回`[字符串0]`,否则返回`[字符串1]`。
# Boolean2VisibilityConverter
该转换器会将`true`转换为`Visible`,会将`false`转换为`Collapse`
# Boolean2VisibilityReConverter
该转换器情况与`Boolean2VisibilityConverter`相反。
# BooleanArr2VisibilityConverter
该转换器会将布尔数组转换为`Visibility`,当数组内全部为`true`时,返回`Visible`,否则返回`Collapse`。
# BorderCircularConverter
该转换器为Border专用,接受`Border`的长和宽合成的一个整型数组,返回它们中最小值的一半,作为圆形Border的半径。
# BorderClipConverter
该转换器为Border专用,接受一个object数组,该数组长度为3,分别对应Border的长、宽和圆角半径,它会返回一个圆形几何形状作为Clip来剪裁Border。
# Color2ChannelAConverter(内部使用)
该转换器会提取`SolidColorBrush.Color`的透明通道(A)的值。
# Color2HexStrConverter
该转换器会将`SolidColorBrush`转换为16进制字符串形式(带“#”)。
# Int2StrConverter
该转换器需要提供一个字符串作为参数,该字符串的一般形式为:`[字符串0];[字符串1];...[字符串n]`,转换器会将一个整型的值作为索引,来获取指定位置的字符串并返回。
# Long2FileSizeConverter
该转换器会将长整型转换为文件大小的字符串。
# Object2BooleanConverter
如果该转换器获取到的值为`null`则返回`false`,否则返回`true`。
# String2VisibilityConverter
该转换器接受一个字符串,如果该字符串为空或者为null,则返回`Collapse`,否则返回`Visible`。
# String2VisibilityReConverter
该转换器情况与`String2VisibilityConverter`相反。
# TreeViewItemMarginConverter(内部使用)
该转换器用于为TreeViewItem提供适当的左边距。
@@ -0,0 +1,5 @@
---
title: 建设中
---
建设中
@@ -0,0 +1,5 @@
---
title: 建设中
---
建设中
@@ -0,0 +1,5 @@
---
title: 建设中
---
建设中
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

@@ -0,0 +1,21 @@
---
title: 基础xaml定义
---
基础xaml定义都在Basic文件夹中,其内部结构如下:
![Basic_Structure](images/Basic_Structure.png)
对它们的描述如下表所示:
| 名称 | 用途 |
|-|-|
| Colors | 包含内置的3个颜色定义文件 |
| Basic.xaml | 包装好的基础xaml定义 |
| Behaviors.xaml | 包含所有的行为定义 |
| Brushes.xaml | 包含所有的画刷定义 |
| Converters.xaml | 包含所有的转换器定义 |
| Effects.xaml | 包含所有的效果定义 |
| Fonts.xaml | 包含所有的字体大小定义 |
| Geometries.xaml | 包含所有的几何形状定义,多用于Path |
| Paths.xaml | 包含所有的Path路径定义 |
| Sizes.xaml | 包含所有的尺寸定义 |
@@ -0,0 +1,5 @@
---
title: 建设中
---
建设中
@@ -0,0 +1,5 @@
---
title: 建设中
---
建设中