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(contained in Template).
And here is my problem: If I want to validate new descendant control, only TextBox is adorned with validation error(using appropriate ControlTemplate) - TextBox contains appropriate validation in binding of Text property(
)
But I need it to be adorned my new control, as a whole(not just TextBox):
.
Is there a way to do this?
Perhaps it's needed to change the AdornerLayer so that the adorner does not appear on the TextBox, but on my new element.
How to change AdornerLayer to show ValidationError (WPF)
355 Views Asked by Stefan Babos At
1
There are 1 best solutions below
Related Questions in WPF
- Sorting a List by its property renames all the objects in the List
- Can't open new instance of another window in my app, in WPF .NET 8
- Binding forecolour and ToolTip to a DataGrid
- how to create Infinite Upgrades in a clicker game
- Try Catch exception is not catching the unhandled exception
- Assigning an object to another doesn't raise PropertyChanged event in WPF
- Masking input in TextBox
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- reading configuration file (mytest.exe.config)
- WPF Windows Initializing is locking the separated thread in .Net 8
- How to bind to the DataContext ViewModel of another view?
- mouse coordinates in image go below 0 and above width
- WPF pop up is behaving differently in English language PC and Japanese language PC
- Multi level project reference using dll
- Unable to unzip archive .NET framework
Related Questions in WPF-CONTROLS
- Powershell v5 - variable name replacement when referring to WPF objects
- Custom control's name is not recognized in application's namespace
- Issues with WebView2 in WPF Usercontrol Embeded in Word VSTO CustomTaskPane
- Set button Height from a constant value defined in a class in WPF
- WPF Create a reuseable UserControl that binds to ObservableCollection<float>
- WPF custom control path,clickable background
- How to check the source of PasswordChanged event in WPF PasswordBox?
- Issues with XamlWriter
- How can I make the MediaElement not cutting off my bottom grid?
- WPF Combo box custom template for mouseover main button not dropdown items, styled in the combobox itself
- Can I inherit from MenuItem?
- Is there a way to add a handler for copy event in WPF textbox?
- WPF XAML Menu Binding in Control Template
- How to get the visible size of control after margins are applied in WPF?
- WPF VBnet comboBox dataGrid retrieve value
Related Questions in ADORNER
- Allow users to resize into negative height / width
- Animating a PasswordChar in wpf?
- WPF - validation adorners do not position correctly when there multiple controls with validation errors
- WPF Textbox Adorner
- I want the WPF Adorner to be drawn only on the desired area
- Setting a local style for an adorner
- In my WPF control, can I hide the validation control based on the size of the adorned element's row?
- Image in RichTextBox is blurry after resizing
- In wpf, can an adorner catch a routed command?
- WPF DragDrop Adorner poor performance / laggy
- Auto-connection of shapes dropped in WPF
- Custom window class and adorner layer
- Difference between the AdornerLayer.Update methods
- WPF Adorner for Control User resizable
- Drag Adorner on ListViewItem with a GridView
Related Questions in ADORNERLAYER
- Allow users to resize into negative height / width
- How do you make databindings work in Controls which are in an AdornerLayer?
- How to change AdornerLayer to show ValidationError (WPF)
- Is there always an Adorner Layer between a parent content control and its children?
- Adorner transformation vs pixel width
- Resize more than one different shape at same time using .net adorner
- How to implement window resizing from all sides using an adorner?
- Add Adorner to Image in WPF RichTextBox when loaded
- Drawing Adorner of a UserControl without clipping but over controls below
- Message freezes the UI application without using the pop-up messagebox
- Is It Possible To Draw a UI Element On Top of the Adorner Layer?
- WPF DataGrid and Adorners
- How to fire event under Adorner Layer
- How to get the adorner of a UIElement inside a Scrollviewer?
- How to hide an adorner?
Related Questions in ADORNERDECORATOR
- Animating a PasswordChar in wpf?
- WPF - validation adorners do not position correctly when there multiple controls with validation errors
- How to change AdornerLayer to show ValidationError (WPF)
- WPF TextBox with validation loses ErrorTemplate
- WPF DataGrid and Adorners
- How to hide an adorner?
- WPF IDataErrorInfo issues
- How to draw WPF Adorners on top of everything else?
- Why AdornerLayers are always the top most layers? Is there a way to change it?
- Setting up multiple decorators with pico container
- Validated Textbox in a UserControl
- What's the point to WPF adorners?
- Update text in adorner on button click
- WPF- Validation -The validation error message goes behind the other controls because of AdornerDecorator
- Error Adorner in a Scrollviewer
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to move adorner site from validated control to the main control(a descendant of RangeBase). To this, you can simply use the:
attached property to the TextBox.