adorner Questions
4
Solved
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 {
dele...
Miscreated asked 14/6, 2010 at 16:41
2
I might be misunderstanding the concept of adorner layers in WPF but I've managed to add a TextBlock to a StackPanel's adorner layer.
How would I clear an adorner layer? So the StackPanel no long...
3
I have an ItemsControl in a ScrollViewer. The items in the ItemsControl are expanded to a DataTemplate which basically consists of an Adorner.
Now the problem is, when scrolling, the Visual Childr...
3
Solved
I am working on taking screenshot of UI Element (WPF) in various size and i'm able to achieve this using "RenderTargetBitmap. But the UIElement which has an Adorner part is not coming while take co...
2
Solved
I'm using an Adorner in .NET 3.5, and I'm able to draw by overriding OnRender, but I need the ability to redraw the adorner to change its appearance.
Essentially I'm looking for a way to clear the...
2
Solved
I want to do something that sounds extremely simple, yet I find it very hard to achieve.
Let's assume I have some content which is bound to a slow-loading operation. For example, an observable lis...
3
Solved
It appears that the maximum number of adorners that work without any breakage is 144.
I have a ScrollView with a bunch of objects, and many of them come with adorners. The first 144 adorners are p...
2
Solved
I've got a user control with a control template to show validation errors, validation template:
<ControlTemplate x:Key="TextBoxPropertyValidationTemplate">
<StackPanel>
<Border Bo...
Stlouis asked 29/6, 2011 at 5:25
1
Solved
I have a WPF window with a textbox control. The control has an adorner that is made visible when the textbox has keyboardfocus.
As you can see in the screenshot below, the adorner is limited to th...
4
Solved
I'm using the System.Windows.Controls.WebBrowser for various things in my app and I've noticed that adorners are cut off when they are supposed to appear over a WebBrowser. I realize that the WebBr...
Finlay asked 17/2, 2010 at 19:4
2
Solved
I assume that previewdrop/drop events fired when it detect a drag target with an element as a drop target . In this case , my drop target is a textbox and my drag target is a label. Both of them ar...
Terryn asked 12/8, 2013 at 6:31
1
I am building a control, where the user can "draw" resizable rectangles that are laid over the content. To resize those rectangles, I use an Adorner on top of them which contains 4 Thumbs to change...
3
Solved
Almost all the questions on stackoverflow dealing with drag and drop in WPF refer back to this article. However, the source code for the article is missing. Does anyone have a copy or know where to...
Bemis asked 8/1, 2013 at 21:19
2
Solved
How, in WPF, do you hide the validation error template adornment (red box by default) when you hide a control? When I hide my controls (to facilitate switching between views) the error adornment st...
1
Solved
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 i...
Normally asked 20/4, 2012 at 8:21
2
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 wh...
Couching asked 30/7, 2010 at 12:13
1
Solved
Using the DrawingContext class I've been able to use the DrawRectangle() method to successfully add an adorner to my adornedElement.
Is it possible to construct a stackpanel, with a textbox and i...
Fleischer asked 20/12, 2011 at 13:58
1
Solved
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: ...
Bodoni asked 13/6, 2011 at 23:9
2
I am trying to make a nice "drag and drop zone" in WPF that is displayed in the adorner layer when something is being dragged into the main application. The problem is that I do not get any events ...
2
Solved
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 applicati...
Nicky asked 28/12, 2010 at 13:17
1
What I really want is a version of IsHitTestVisible that ignores mouse click events but still traps mouse enter and leave events.
Background:
An informational overlay pops up under the control wit...
Chastitychasuble asked 8/10, 2010 at 19:44
2
Solved
I work with a lot of floating-point images, and would find it extremely useful to have an image-based representation of my arrays. I'd like to create a WPF UserControl that renders the data array (...
Emmons asked 9/11, 2010 at 22:46
1
I am trying to position an Adorner depending on the dimensions of the parent of the adorned element. For example, I have a textbox. I want to adorn this textbox so it looks something like this:
h...
Misreport asked 5/1, 2010 at 2:32
2
Solved
I'm trying to add an overlay effect to my UserControl and I know that's what adorners are used for in WPF. But I'm a bit confused about how they supposedly work. I figured that adorner layer is imp...
Republican asked 16/4, 2010 at 10:52
2
Solved
I have an Adorner which adornes a Border (please see screenshot below). The MouseDown Event for the Adorner is however only raised, when clicking on an element in the adorner. I need the MouseDown ...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.