Coder Social home page Coder Social logo

Comments (18)

sirWest avatar sirWest commented on May 14, 2024

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.

flagbug avatar flagbug commented on May 14, 2024

Here is a tutorial: http://codeblitz.wordpress.com/2009/05/08/wpf-validation-made-easy-with-idataerrorinfo/

from mahapps.metro.

flagbug avatar flagbug commented on May 14, 2024

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.

flagbug avatar flagbug commented on May 14, 2024

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.

flagbug avatar flagbug commented on May 14, 2024

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.

ktei avatar ktei commented on May 14, 2024

Still no one trying to fix this issue? Come on guys, this is easy to reproduce.

from mahapps.metro.

 avatar commented on May 14, 2024

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.

flagbug avatar flagbug commented on May 14, 2024

Why did this got closed? :(

from mahapps.metro.

 avatar commented on May 14, 2024

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.

flagbug avatar flagbug commented on May 14, 2024

Oh, ok, I just asked because I saw the "useless issue..." label and don't know what I did wrong

from mahapps.metro.

rasheedb avatar rasheedb commented on May 14, 2024

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:

sample

from mahapps.metro.

shiftkey avatar shiftkey commented on May 14, 2024

@punker76 improved the validation bits a while ago. You shouldn't need to delete the ErrorTemplate.

See #357 for details.

from mahapps.metro.

punker76 avatar punker76 commented on May 14, 2024

i agree with @rasheedb that this is still a nasty behaviour. the tooltip is not moving or closing if i move the main window.

2013-03-26_20h55_19

from mahapps.metro.

shiftkey avatar shiftkey commented on May 14, 2024

@punker76 ok, I've reopened it then now that I can see it is still occurring.

from mahapps.metro.

punker76 avatar punker76 commented on May 14, 2024

@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.

rasheedb avatar rasheedb commented on May 14, 2024

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)

sample2

from mahapps.metro.

punker76 avatar punker76 commented on May 14, 2024

@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.

freeqaz avatar freeqaz commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.