ValdationRule and ValueConverter

ValdationRule and ValueConverter

Old forum URL: forums.lhotka.net/forums/t/10628.aspx


jsrolfe posted on Monday, August 22, 2011

I have properties that are stored in the database and are used by the application as a double value.  These properties contain measurements saved in inches.  What I need to do is allow the user to enter the value as a string in feet and inches like this, 42'6".  Now I can get the value converter to work just fine.  The issue I am having is when I include an edit in the value converter to ensure they at least include the single quote for feet or double quote for inches.  The validation works in the valueconverter, but I do not get an error displayed in the UI.  The CSLA framework takes the value entered and passes it back to the UI going through the converter and formatting as a string.  So I enter in 25, and the UI displays 2'1".  How do I get that error to display in the UI?

Copyright (c) Marimer LLC