Skip to content

Commit 86f7c30

Browse files
committed
2 parents d9db496 + 594e867 commit 86f7c30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+343
-4227
lines changed

doc/source/handycontrol/data/GrowlInfo/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: GrowlInfo
3-
date: 2019-04-02 22:16:16
43
---
54

65
{% note info no-icon %}

doc/source/handycontrol/data/InfoType/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: InfoType
3-
date: 2019-04-02 22:27:13
43
---
54

65
{% note info no-icon %}
Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
11
---
2-
title: Effect
2+
title: Effect 特效
33
---
4+
5+
# BlendEffectBox 特效混合器
6+
7+
通过特效混合器可以很方便得把多种特效应用在同一个控件上:
8+
9+
```xml
10+
<hc:BlendEffectBox>
11+
<hc:BlendEffectBox.Effects>
12+
<BlurEffect Radius="30"/>
13+
<hc:BrightnessEffect Brightness="1"/>
14+
<hc:ContrastEffect Contrast="20"/>
15+
</hc:BlendEffectBox.Effects>
16+
// 你的控件
17+
</hc:BlendEffectBox>
18+
```
19+
20+
# BrightnessEffect 明度特效
21+
22+
```xml
23+
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
24+
<Image.Effect>
25+
<hc:BrightnessEffect Brightness="1"/>
26+
</Image.Effect>
27+
</Image>
28+
```
29+
30+
# ColorComplementEffect 补色特效
31+
32+
```xml
33+
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
34+
<Image.Effect>
35+
<hc:ColorComplementEffect/>
36+
</Image.Effect>
37+
</Image>
38+
```
39+
40+
# ColorMatrixEffect 颜色矩阵特效
41+
42+
```xml
43+
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
44+
<Image.Effect>
45+
<hc:ColorMatrixEffect M11="-1" M22="-1" M33="-1" M41="1" M42="1" M43="1" M44="1" M51="1"/>
46+
</Image.Effect>
47+
</Image>
48+
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
49+
<Image.Effect>
50+
<hc:ColorMatrixEffect M11="1.5" M21="1.5" M31="1.5" M12="1.5" M22="1.5" M32="1.5" M13="1.5" M23="1.5" M33="1.5" M51="-1" M52="-1" M53="-1"/>
51+
</Image.Effect>
52+
</Image>
53+
```
54+
55+
# ContrastEffect 对比度特效
56+
57+
```xml
58+
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
59+
<Image.Effect>
60+
<hc:ContrastEffect Contrast="20"/>
61+
</Image.Effect>
62+
</Image>
63+
```
64+
65+
# GrayScaleEffect 灰度特效
66+
67+
```xml
68+
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
69+
<Image.Effect>
70+
<hc:GrayScaleEffect Scale=".7"/>
71+
</Image.Effect>
72+
</Image>
73+
```
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
---
2-
title: HatchBrushGenerator
2+
title: HatchBrushGenerator 阴影画笔生成器
33
---
4+
5+
HC提供了50多种不同图案的阴影样式,其行为与winform中的表现一致.
6+
7+
# 案例
8+
9+
## 基础用法
10+
11+
我们先创建一个阴影画笔生成器实例:
12+
13+
```cs
14+
var brushGenerator = new HatchBrushGenerator();
15+
```
16+
17+
再调用 `GetHatchBrush` 方法,传入 `HatchStyle` 枚举、前景色、背景色,即可返回一个 `DrawingBrush` 画刷.
18+
19+
```cs
20+
var brush = brushGenerator.GetHatchBrush(HatchStyle.Horizontal, 前景色, 背景色);
21+
```
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 建设中
2+
title: 工具和扩展
33
---
44

5-
建设中
5+
除了扩展控件,hc还提供了很多有用的工具和扩展,包括特效、动画、笔刷等等。

doc/themes/next/.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)