19 questions
0
votes
0
answers
18
views
My dragvisual appears with a wierd offset
I have currently the Problem, that my dragged Visual offset is depending on the Current adornerlayer, I tried it with a adorner decorater but it doesn't seem to work.
I want to achieve that the drag ...
1
vote
0
answers
58
views
WPF - validation adorners do not position correctly when there multiple controls with validation errors
I have a WPF application built with .NET Framework 4.8. I have a viewmodel that implements INotifyDataErrorInfo for validation. In my XAML I am using the default Validation.ErrorTemplate, but I have ...
-1
votes
1
answer
425
views
How to change AdornerLayer to show ValidationError (WPF)
I created a descendant of RangeBase. In this descendant I created Template where I used TextBox control. Now I need validate Value (of inherited RangeBase) when is invalid value is entered to TextBox(...
5
votes
2
answers
2k
views
WPF TextBox with validation loses ErrorTemplate
I have an issue very similar to these:
Issue with WPF validation(IDataErrorInfo) and tab focusing
TextBox with validation loses ErrorTemplate on tab change
AdornerDecorator do the trick within the ...
3
votes
1
answer
2k
views
WPF DataGrid and Adorners
I am using an Adorner to place an indicator triangle in selected cells of a WPF DataGrid (the same effect as you get when inserting a comment in a cell in Excel). Unfortunately I am getting random ...
2
votes
1
answer
2k
views
How to hide an adorner?
I have tried to hide/show an adorner of a specific element:
1) by trying to hide the adorned element, but with no success.
2) by using the following code, but when i apply it to the specific ...
1
vote
1
answer
582
views
WPF IDataErrorInfo issues
I've used WPF and IDataErrorInfo in the past apps to display errors to the user via a controltemplate by putting an image in the adorner and adding a tooltip to the image like this;
<Style x:Key="...
3
votes
2
answers
6k
views
How to draw WPF Adorners on top of everything else?
I've added an Adorner to my DateTimePicker control but it's not shown on top of the other controls. Why? How do I fix it?
My XAML currently goes like this:
<UserControl x:Class="IntelliMap.WPF....
4
votes
2
answers
3k
views
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 ...
1
vote
1
answer
524
views
Setting up multiple decorators with pico container
I have been using the pico container in java to do DI for a minecraft plugin framework I designed.
The plugins have event listener methods that are defined in interfaces, one method per interface.
...
1
vote
2
answers
3k
views
Validated Textbox in a UserControl
I have created a UserControl - a Labeled TextBox which is working pretty well, except for the validation template. When there's an error the validation control template shows up but it fills the whole ...
5
votes
1
answer
3k
views
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 ...
0
votes
1
answer
975
views
Update text in adorner on button click
I have created my custom adorner to cover my main window with a gray canvas alongwith a textblock at center to show some status text while i was working on other window.
What i am currently doing is ...
5
votes
1
answer
2k
views
WPF- Validation -The validation error message goes behind the other controls because of AdornerDecorator
I have implemented IDataErrorInfo in my ViewModel to return a string if the text box has error.
public string this[string columnName]
{
get { return "Error-- This is a long error ...
5
votes
1
answer
2k
views
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, ...