1
0
mirror of https://github.com/DarthAffe/CUE.NET.git synced 2025-12-13 09:08:34 +00:00

Added example code

DarthAffe 2015-11-28 23:02:27 +01:00
parent 357ab93b95
commit 7cbba6893a

@ -16,5 +16,10 @@ Of course you can always implement [your own brush](https://github.com/DarthAffe
### Using brushes ### Using brushes
Currently there are two ways of using brushes: Currently there are two ways of using brushes:
1. Directly apply the brush to any _KeyGroup_ you like (including the keyboard itself). This can be done simply by setting the _Brush_-Property. * Directly apply the brush to any _KeyGroup_ you like (including the keyboard itself). This can be done simply by setting the _Brush_-Property.
2. As part of an [effect](https://github.com/DarthAffe/CUE.NET/wiki/Understanding-CUE.NET-effects). ```C#
IBrush brush = new SolidColorBrush(Color.White);
keygroup.Brush = brush;
```
* As part of an [effect](https://github.com/DarthAffe/CUE.NET/wiki/Understanding-CUE.NET-effects).