Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Use any DataTemplate as an Adorner in WPF

, 18 Nov 2011 CPOL
This article explains a simpler way of attaching adorners by using a WPF behavior class.
AdornerBehaviorSample.zip
AdornerBehaviorSample
.svn
all-wcprops
entries
prop-base
AdornerBehaviorSample.suo.svn-base
EventMapping.png.svn-base
props
BlendSelection.png.svn-work
CodeProject.docx.svn-work
FinalScreen.png.svn-work
text-base
AdornerBehaviorSample.sln.svn-base
AdornerBehaviorSample.suo.svn-base
EventMapping.png.svn-base
tmp
prop-base
props
text-base
~$deProject.docx
AdornerBehaviorSample
.svn
all-wcprops
entries
prop-base
Application.ico.svn-base
Exclamation.png.svn-base
Mail-add.png.svn-base
Paper-pencil.png.svn-base
Pencil.png.svn-base
props
text-base
AdornerBehaviorSample.csproj.svn-base
app.config.svn-base
App.xaml.cs.svn-base
App.xaml.svn-base
Application.ico.svn-base
CaAdornerBehavior.cs.svn-base
Exclamation.png.svn-base
Mail-add.png.svn-base
MainWindow.xaml.cs.svn-base
MainWindow.xaml.svn-base
Paper-pencil.png.svn-base
Pencil.png.svn-base
SampleViewModel.cs.svn-base
Simple Styles.xaml.svn-base
tmp
prop-base
props
text-base
Application.ico
Exclamation.png
Mail-add.png
Paper-pencil.png
Pencil.png
Properties
.svn
all-wcprops
entries
prop-base
props
text-base
AssemblyInfo.cs.svn-base
tmp
prop-base
props
text-base
BlendSelection.png
CodeProject.docx
EventMapping.png
FinalScreen.png
AdornerBehaviorSample2.zip
all-wcprops
entries
AdornerBehaviorSample.suo.svn-base
EventMapping.png.svn-base
BlendSelection.png.svn-work
CodeProject.docx.svn-work
FinalScreen.png.svn-work
AdornerBehaviorSample.sln.svn-base
AdornerBehaviorSample.suo.svn-base
EventMapping.png.svn-base
~$deProject.docx
all-wcprops
entries
Application.ico.svn-base
Exclamation.png.svn-base
Mail-add.png.svn-base
Paper-pencil.png.svn-base
Pencil.png.svn-base
AdornerBehaviorSample.csproj.svn-base
app.config.svn-base
App.xaml.cs.svn-base
App.xaml.svn-base
Application.ico.svn-base
CaAdornerBehavior.cs.svn-base
Exclamation.png.svn-base
Mail-add.png.svn-base
MainWindow.xaml.cs.svn-base
MainWindow.xaml.svn-base
Paper-pencil.png.svn-base
Pencil.png.svn-base
SampleViewModel.cs.svn-base
Simple Styles.xaml.svn-base
Application.ico
Exclamation.png
Mail-add.png
Paper-pencil.png
Pencil.png
all-wcprops
entries
AssemblyInfo.cs.svn-base
BlendSelection.png
CodeProject.docx
EventMapping.png
FinalScreen.png

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Carlos A Alvarez
Windows Consultant
United States United States
20+ yrs Leading and Developing Microsoft products in the Financial Industry.
 
My main background is VC++, server and client development.
 
Currently focused in WPF/XAML, Windows 8 and Windows Azure Server technologies.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 18 Nov 2011
Article Copyright 2011 by Carlos A Alvarez
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid