index > Windows Presentation Foundation ("Avalon") > Unbound validation

Unbound validation

I've seen some great info about how to validate controls in WPF, but they all require that the control is bound. The validation infrastructure seems to be part of databinding, namely the ValidationRules of the Binding class and the ErrorTemplate of Validation (which works with Binding's ValidationRules).

I have been wondering, however, if WPF provides validation support for controls which are not bound to a data source. Is this available? If so, please point me to an article or page in the SDK which demostrates it. If not, why not? Is it expected that controls will always be bound?

Thanks for any information.




Josh Smith - http://www.infusionblogs.com/blogs/jsmith/default.aspx
Josh Smith

Hi Josh,

Unfortunately there is no Validation support outside of data binding scenarios in V1. We've been discussing this internally, and I completely agree with you, just like WinForms, Avalon should provide validation for non data bound scenarios. This is already listed as part of our VNext planning discussions, so hopefully you will see that in a future version of Avalon.

Thanks,

Bea




http://www.beacosta.com
Beatriz Costa - MSFT
reply 2

You can use google to search for other answers

 

More Articles

• Skyboxes in WPF
• ItemsControl in virtual mode
• Nested/Inner Classes and the x:Type Markup Extension
• DATA BINDING: Problems attaching a ValidationRules and Converter ...
• Opening .xaml file using ImageBrush in IE
• Multiple background images
• sparkle correct version
• Disabling autocomplete for Combobox
• XML serialization and cloning...
• Design and Generics
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Finding Height of a chid control in a cu
• load xaml dynamically in to a parent obj
• TemplateBinding bug?
• How to ignore subsequent mouse clicks wi
• Offline binding
• Property trigger ExitActions
• How to generate XSD from custom XAML ser
• ListBox not Displaying Feeds Help Please
• About event handler of overlay controls
• file IO permission for XBAP
• When to use windows browser app?
• pie chart
• ObjectDataProvider and ConstructorParame
• Changing FillBehaviour at animation end.
• MenuItem DataTrigger error trying to cha

Hot Articles

• Which eventhandler to use to get ItemCol
• FormsAuthenticationCookie in WPF
• Session ID equivalent in XBAP
• Outlook Bar like control in WPF
• Data binding, Fixed Documents and Xps
• Post file in WinFX
• Vista style blur?
• culture of IValueConverter.Convert method
• What is System.Windows.Documents.Glyphs?
• Need HELP getting started with WPF... (d
• XamlParseException Line1 Postion 9????
• Threading suggestions by experts
• Animating a TextBlock's background
• Data Binding and element serialization.
• Issue with WPF Designer in Vista Build 5

Recommend Articles

• stupid question: how to use the "co
• Navigation Window: Can it be Like a web
• SplitButton
• Bug Fixes
• ContextMenu : Cannot find TargetName in
• How can I avoid Thread Safety in WPF?
• Back to back video playback: problems +
• Animated Scrolling Text inside ListBox
• Bug ? The Enabled control is not effecti
• Dwm thumbnails / Milcore / WPF
• server.mappath equivalent in xaml
• how to generate xps document with conten
• RC1 of .NetFx 3.0 released on September
• Is it possible to add Calendar and popup
• MouseEnter + grid row + animation problem