WPF Validation Simplified
I have just written a new article at codeproject.com which is a simpler approach to labourous WPF Binding/Validation code. I have managed to create a nice re-usable control that makes the whole process a bit easier and clutters the XAML less.
I set out to develop a self binding/validating UserControl that would allow the user to specify the following:
- The underlying bound object property to bind to
- The position of the label
- The label text
- The update trigger to update the underlying data object property
- The type of text that is allowed
It actually work out just fine, and it does all of the above. Further more I think its fairly easy to extend, which you could do. You can read (and even vote) for this article using the following url:
http://www.codeproject.com/KB/WPF/WPF_SelfValidatingTextBox.aspxÂ


























WPF Links - 21 July 2008 - Rudi Grobler said
am July 21 2008 @ 11:22 am
[...] WPF Validation Simplified [...]
Rabeeh Abla said
am September 12 2008 @ 1:58 pm
Nicely done, you have great articles.
I have a question about WPF, am still a starter in WPF architecture and mechanism, what is the difference between WPF and Silver Light?
I found the “WPF Browser Application” in Visual Studio 2008 Sp1, the GUI layer is XAML.
The question is, when hosting this on a web server, what is required from the user to [install], in order to view such file?
I worked a little in Silver Light, what worries me is that it is still beta.
Thank you for your time
Regards
Rabeeh Abla
sacha said
am September 18 2008 @ 10:22 am
Silverlight uses a cutdown runtime, that must be installed, a little like flash plugin.
Silverlight and Flash are comparable.
WPF is the full set of classes/runtime environment, so you can do more. For WPF to work in XBAP, you MUST use IE or FireFox and MUST have .NET framework 3.0/3.5 installed.