If you require a generic piece of UI that could be applied in various scenarios, an adorner might come in useful.
An adorner is applied as an overlay to your controls.
In this example, each adorner will add a circle above different types of UI elements (buttons, labels, textblocks and textbox).
Adorner
Display Xaml
Code behind applying the adorner to each UI Element
Source code: http://stevenhollidge.com/blog-source-code/WpfAdorner.zip
No comments:
Post a Comment