mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 09:08:34 +00:00
Added example code
parent
357ab93b95
commit
7cbba6893a
@ -16,5 +16,10 @@ Of course you can always implement [your own brush](https://github.com/DarthAffe
|
||||
### 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.
|
||||
2. As part of an [effect](https://github.com/DarthAffe/CUE.NET/wiki/Understanding-CUE.NET-effects).
|
||||
* Directly apply the brush to any _KeyGroup_ you like (including the keyboard itself). This can be done simply by setting the _Brush_-Property.
|
||||
```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).
|
||||
Loading…
x
Reference in New Issue
Block a user