AdornerDecorator and AdornerLayer
-
jueves, 09 de agosto de 2012 6:38
Hi,
Can any one ex-plane in about the use of AdornerDecorator and AdornerLayer. i went through the microsoftsite unfortunately
iam was not able to get clear picture.
Regards,
sajith
Todas las respuestas
-
jueves, 09 de agosto de 2012 8:02
Hi sajithgs,
Refer these links,
http://www.artfulbits.com/Technologies/WinFX/Adorners.aspx
http://wangmo.wordpress.com/2008/10/19/relations-between-adorner-adornerlayer-and-adornerdecorator/- Editado Srithar jueves, 09 de agosto de 2012 8:03
-
jueves, 09 de agosto de 2012 9:01Moderador
You use an AdornerDecorator to specify where the AdornerLayer will be.
The AdornerDecorator "Provides an AdornerLayer for the child elements in the visual tree. "
By default, the only AdornerLayer is your Window.
When you add validation (which uses a validation template to show controls in error) this catch-all layer can trip over itself and not work as expect. So you may want to specify other AdornerLayers by placing the AdornerDecorator where you want them, like each Tab of a TabControl may have it's own AdornerDecorator, so each Tab maintains it's own AdornerLayer.
Basically, you can't use AdornerLayer in xaml, you use AdornerDecorator, which creates the layer. Then you refer to the Adornerlayer from code.
Here's another link to add to Srithar's offerings:
http://blog.pixelingene.com/2006/11/dont-forget-the-adornerdecorator/
#PEJL
- Marcado como respuesta sajithtgs viernes, 10 de agosto de 2012 7:54
-
viernes, 10 de agosto de 2012 7:57
Many thanks Sridhar/Smith,
Your Post was Really Help-full ,thanks a lot.
Regards,
sajith

