-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/HandyOrg/HandyControl
- Loading branch information
Showing
53 changed files
with
343 additions
and
4,227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
--- | ||
title: GrowlInfo | ||
date: 2019-04-02 22:16:16 | ||
--- | ||
|
||
{% note info no-icon %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
--- | ||
title: InfoType | ||
date: 2019-04-02 22:27:13 | ||
--- | ||
|
||
{% note info no-icon %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,73 @@ | ||
--- | ||
title: Effect | ||
title: Effect 特效 | ||
--- | ||
|
||
# BlendEffectBox 特效混合器 | ||
|
||
通过特效混合器可以很方便得把多种特效应用在同一个控件上: | ||
|
||
```xml | ||
<hc:BlendEffectBox> | ||
<hc:BlendEffectBox.Effects> | ||
<BlurEffect Radius="30"/> | ||
<hc:BrightnessEffect Brightness="1"/> | ||
<hc:ContrastEffect Contrast="20"/> | ||
</hc:BlendEffectBox.Effects> | ||
// 你的控件 | ||
</hc:BlendEffectBox> | ||
``` | ||
|
||
# BrightnessEffect 明度特效 | ||
|
||
```xml | ||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg"> | ||
<Image.Effect> | ||
<hc:BrightnessEffect Brightness="1"/> | ||
</Image.Effect> | ||
</Image> | ||
``` | ||
|
||
# ColorComplementEffect 补色特效 | ||
|
||
```xml | ||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg"> | ||
<Image.Effect> | ||
<hc:ColorComplementEffect/> | ||
</Image.Effect> | ||
</Image> | ||
``` | ||
|
||
# ColorMatrixEffect 颜色矩阵特效 | ||
|
||
```xml | ||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg"> | ||
<Image.Effect> | ||
<hc:ColorMatrixEffect M11="-1" M22="-1" M33="-1" M41="1" M42="1" M43="1" M44="1" M51="1"/> | ||
</Image.Effect> | ||
</Image> | ||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg"> | ||
<Image.Effect> | ||
<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"/> | ||
</Image.Effect> | ||
</Image> | ||
``` | ||
|
||
# ContrastEffect 对比度特效 | ||
|
||
```xml | ||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg"> | ||
<Image.Effect> | ||
<hc:ContrastEffect Contrast="20"/> | ||
</Image.Effect> | ||
</Image> | ||
``` | ||
|
||
# GrayScaleEffect 灰度特效 | ||
|
||
```xml | ||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg"> | ||
<Image.Effect> | ||
<hc:GrayScaleEffect Scale=".7"/> | ||
</Image.Effect> | ||
</Image> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
--- | ||
title: HatchBrushGenerator | ||
title: HatchBrushGenerator 阴影画笔生成器 | ||
--- | ||
|
||
HC提供了50多种不同图案的阴影样式,其行为与winform中的表现一致. | ||
|
||
# 案例 | ||
|
||
## 基础用法 | ||
|
||
我们先创建一个阴影画笔生成器实例: | ||
|
||
```cs | ||
var brushGenerator = new HatchBrushGenerator(); | ||
``` | ||
|
||
再调用 `GetHatchBrush` 方法,传入 `HatchStyle` 枚举、前景色、背景色,即可返回一个 `DrawingBrush` 画刷. | ||
|
||
```cs | ||
var brush = brushGenerator.GetHatchBrush(HatchStyle.Horizontal, 前景色, 背景色); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: 建设中 | ||
title: 工具和扩展 | ||
--- | ||
|
||
建设中 | ||
除了扩展控件,hc还提供了很多有用的工具和扩展,包括特效、动画、笔刷等等。 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.