Sunday, October 23, 2011

Use any DataTemplate as an Adorner in WPF

Introduction

Adorners are great and sometimes you want to quickly put some adorners up with ease.  All samples today usually include custom building adorners with code, or some other class.

This article explains a simpler way of attaching adorners by using a behavior class.  The attached example was created with Expression Blend 4.0 but you can open it in Visual Studio 2010.

All code described here is in the attached project.

Below find the final screen.  Adorners are composed of any visual elements via the DataTemplate.

FinalScreen.png

Read more: Codeproject
QR: CaAdornerBehavior.aspx

Posted via email from Jasper-Net