jueves, 09 de agosto de 2012 6:38
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.
Todas las respuestas
jueves, 09 de agosto de 2012 8:02
Refer these links,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.
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:
- 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.