Comments (18)
I would love to test/debug this but frankly I have no idea how to create a simple test code to show this invalid message box :) Can you give some simple snippet to insert to MetroDemo for testing this issue?
from mahapps.metro.
Here is a tutorial: http://codeblitz.wordpress.com/2009/05/08/wpf-validation-made-easy-with-idataerrorinfo/
from mahapps.metro.
I think the best way would be to implement IDataErrorInfo
in the MainViewModel
class and create a new property for the textbox to bind on.
from mahapps.metro.
Sorry, I didn't had time the past days. I've created an example code for the error validation at my "validation-test" branch.
Now, when you enter the word "Test" into the textbox with the username watermark, the validation error message ""Test" is not a valid input." appears. Now drag the window around and you can see that the message remains at it's original position and does not stick to the textbox.
from mahapps.metro.
Woops, I've just noticed that I deleted the branch for testing this issue.
I have now recreated it, just follow the steps I explained in my last post.
from mahapps.metro.
Still no one trying to fix this issue? Come on guys, this is easy to reproduce.
from mahapps.metro.
You're welcome to send a pull request or post a complete reproduction. But come on, that would be being helpful.
Sent from my Windows Phone
From: Rui Cheng
Sent: 16/11/2012 10:38 AM
To: MahApps/MahApps.Metro
Subject: Re: [MahApps.Metro] Validation error tooltip floats around when moving window (#71)
Still no one trying to fix this issue? Come on guys, this is easy to reproduce.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/71#issuecomment-10430770.
from mahapps.metro.
Why did this got closed? :(
from mahapps.metro.
because nobody is working on it, @ktei was good enough to whinge about it, and I don't use validation stuff so I have little desire to fix it.
from mahapps.metro.
Oh, ok, I just asked because I saw the "useless issue..." label and don't know what I did wrong
from mahapps.metro.
This issue can be resolved by using the "Validation.ErrorTemplate" instead. Remove their validation template (ValidationErrorElement and storyboards that go with it) and use the code below.
Example:
from mahapps.metro.
@punker76 improved the validation bits a while ago. You shouldn't need to delete the ErrorTemplate.
See #357 for details.
from mahapps.metro.
i agree with @rasheedb that this is still a nasty behaviour. the tooltip is not moving or closing if i move the main window.
from mahapps.metro.
@punker76 ok, I've reopened it then now that I can see it is still occurring.
from mahapps.metro.
@shiftkey i think, if we replace it with a Validation.ErrorTemplate
we lost the cool tooltip feature. maybe is this a bug in wpf, because the current validation feature (style) is the same as by msdn.
from mahapps.metro.
You can still have the "cool" transitions if you like. I ended up doing the following, where the message shows when the user has clicked (focus) into the control only. I do a horizontal slide to show storyboard.
(sorry about not known how to post code in these comments)
from mahapps.metro.
@rasheedb that's not the same! the errorMessage is only shown within the MainWindow/Control. so if their is not enough space it looks nasty (so you must have enough space around the control with the error). the tooltip solution shows the error also outside the window (no extra space around the control is necessary).
look at the help for posting code here: https://help.github.com/articles/github-flavored-markdown
from mahapps.metro.
Unbaked the code in that png... Didn't fix my issue though :P
https://gist.github.com/freeqaz/6541325
from mahapps.metro.
Related Issues (20)
- Missing PART in the datagrid HOT 6
- Flyout overlapping to Menubar within the animation HOT 2
- Xaml warning: Resource '{x:Type MahApps.Metro.Controls.MetroWindow}' is not found HOT 4
- MultiSelectionComboBox / MultiSelectorHelper.SelectedItems one step behind
- The HamburgerMenu control uses the HamburgerMenuListBox control to show the menu items. You can use a DataTemplate with an Expander control with an HamburgerMenuListBox control as the Child to show submenu items:
- Add Filter Buttons in DataGridColumn Headers HOT 1
- MultiSelectorHelper.SelectedItems throws Exception when an Item is selected from a ListBox which is nested inside a ListView
- RoutedEventArgs is empty
- mahapps.metro is missing NuGet package README file
- Detected package version outside of dependency constraint: MahApps.Metro 2.4.10 requires ControlzEx (>= 4.4.0 && < 6.0.0) but version ControlzEx 6.0.0 was resolved. HOT 1
- Colon between Hour/Minute in TimePicker when PickerVisibility is set to Minute,Second
- Bindings are broken in SplitView
- The value of the ValueProperty of NumericUpDown gets lost during navigation
- 1NNAP4ZYwn63KHZXG5vPaP26W3ixdFSw45 #95943
- RichTextBox and Themes HOT 3
- MetroWindow : Unloaded event HOT 1
- Replace + and - for arrows in NumericUpDown HOT 3
- Style NumericUpDown Exception HOT 3
- MetroWindow Background HOT 2
- The invocation of the constructor on type 'MahApps.Metro.Controls.MetroWindow' that matches the specified binding constraints threw an exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mahapps.metro.