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 

Advertisements

4 thoughts on “WPF Validation Simplified

  1. […] WPF Validation Simplified […]

  2. […] WPF Validation Simplified (Sacha Barber) […]

  3. Rabeeh Abla says:

    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

  4. sacha says:

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: