Questions tagged [adornerlayer]
45 questions
24
votes
1 answer
Validation ErrorTemplate not showing on data errors
This is a bit of a WPF whodunnit! My validation temples it not appearing when expected
The Problem
Basically, I am using IDataErrorInfo on my view model to provide feedback on data entry errors. I can see this being called and working as…

Noel Kennedy
- 12,128
- 3
- 40
- 57
18
votes
1 answer
AdornerLayer goes outside Border if I zoom the picture WPF
I created the logic that crops an image that is contained inside a border that is inside a grid. The grid has many borders, so this grid will have many pictures. The problem is that when I zoom the picture the logic zoomed the picture (which is…

avmauricio
- 1,008
- 1
- 7
- 19
12
votes
4 answers
GetAdornerLayer mysteriously returning null
I've been using the same bit of code for several versions of my app with no problems, but I'm now mysteriously receiving NullRerefenceExceptions with the following:
this.Loaded += delegate {
deleteBrush = new DeleteBrushAdorner( background );
…

devios1
- 36,899
- 45
- 162
- 260
11
votes
2 answers
How to change z-order of Wpf AdornerLayer children?
I have an image editing application, and I have custom adorners which get added to an AdornerLayer. When the user clicks on an Adorner, I want to bring it to top - meaning if it is dragged over another adorner, I want the first click to be caught by…

Sugrue
- 3,629
- 5
- 35
- 53
10
votes
3 answers
Resize more than one different shape at same time using .net adorner
I am developing a desktop application in WPF, that contains different types of shapes (like circle, radius circle, diameter circle). Now I need to resize shapes on demand so I used .Net adorner which provides the flexibility to drag and resize the…

Soni Vimalkumar
- 1,449
- 15
- 26
6
votes
2 answers
WPF Moving Adorner outside the AdornerLayer or Window
I have an adorner which is moving along with the mouse cursor. However as soon as the mouse moves outside the window the adorner gets cut off.
Is it possible to expand the adorner layer to the whole screen or create a new adorner layer.

anonfdsfd
- 61
- 1
- 3
6
votes
1 answer
How to make sure validation in adorner layer is shown behind other controls
I have a WPF application that has user validation. This is rendered in the adorner layer, that appears above all other layers, according to documentation.
In the screenshot you can see that this isn't exactly what I want. I have a popup called…

Ronald Wildenberg
- 31,634
- 14
- 90
- 133
5
votes
1 answer
Adorner not showing up
I am using an UserControl that contains the Canvas. As child of the canvas there is content control with adorner. Why the adorner is not visible perhaps the adorner layer is ceated.
Everything is created and attached. The adorner layer is very high…

Patrik
- 1,286
- 1
- 31
- 64
5
votes
1 answer
What's the point to WPF adorners?
I've recently developed a drawing component for my company, featuring a Canvas on which you can draw certain shapes using click-and-drag. For each shape, I placed two adorners on its AdornerLayer: One for increased hit detection (basically a…

SoManyGoblins
- 5,605
- 8
- 45
- 65
5
votes
2 answers
Wpf Adorner not responding to interactions
I'm trying to create an overlay in wpf (with darkening background), similar to the ones you can find on the web to popup images.
I would like it to be reusable in more than 1 part of the application, with diffent types of content.
this is the…

nemenos
- 877
- 1
- 10
- 23
5
votes
1 answer
Error Adorner in a Scrollviewer
I'm trying to ensure that my error adorners don't get clipped by my scrollviewer's bounds. I have a series of textboxes that are at the edge of a fixed width scrollviewer (no horizontal scrolling, only vertical). I then have adorners that flag…

Chris Nicol
- 10,256
- 7
- 39
- 49
4
votes
1 answer
No, an Adorner DOES NOT automagically take the DataContext of its AdornedElement in WPF
Original question: Does an Adorner automagically inherit the "DataContext" of its "AdornedElement" in WPF?

Michael Smith
- 305
- 1
- 8
4
votes
2 answers
In WPF, how to display AdornerLayer on top of DataGrid
I am using WPF datagrid from codeplex. I am using DatagridTemplateColumn and I have written datatemplates to display contents in each column.
Now I have to display some help message to a user when the any control in datagrid is focussed.
For this I…

Gurucharan Balakuntla Maheshku
- 2,399
- 9
- 43
- 76
4
votes
2 answers
Why AdornerLayers are always the top most layers? Is there a way to change it?
Why is that the adorner layer is always rendered as the top most layer in an application (under AdornerDecorator - refer screenshot)?
Is there a way to change the layer/level on to which the adorners can be drawn?
In the following screenshot,…

sudarsanyes
- 3,156
- 8
- 42
- 52
3
votes
2 answers
How to fire event under Adorner Layer
I want to click a Button under Adorner Layer.
Off course, In visual tree, Adorner is different branch from controls.
Not able to handle PreviewMouseDown
What to do to fire events under adorner layer?
xaml is below.