From 7cbba6893aab25d4e7fa21f1afacf64205855095 Mon Sep 17 00:00:00 2001 From: DarthAffe Date: Sat, 28 Nov 2015 23:02:27 +0100 Subject: [PATCH] Added example code --- Understanding-CUE.NET-brushes.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Understanding-CUE.NET-brushes.md b/Understanding-CUE.NET-brushes.md index 03bb782..5426f45 100644 --- a/Understanding-CUE.NET-brushes.md +++ b/Understanding-CUE.NET-brushes.md @@ -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). \ No newline at end of file +* 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). \ No newline at end of file