I know, there is a possibility to extend a currently existing control, but I would like to see how to create a simple custom control in wpf.
The custom control has three properties:
- Value as a bool
- ColorOn as Color and
- ColorOff as a Color
The control is a reactangle or circle. It should be possible to set the two colors and bind a
bool variable to the Value property. If the variable == false, the reactangle should to have the ColorOff as background and if == true - ColorOn. How to do this? I would like simply to understand it.
There are many examples allready, but none of them could solve this issue. Many of them ware too complicated for the start. I'm newbe in wpf, but I can see allready the boundless possibilities of it!
Greets - Raphael
View Complete Post