Displaying Validation
-
I've been looking at how I can display validation failures in WPF. The examples I've been looking at, typically create a style based on a control type. Is the approach really to create a 'validation error' style for every control type? Isn't there a more generic approach? Also some of my screens have grids, and I've worked out how I can either show the validation template per cell or the row, but I'm not sure I like the approach. Is it possible to display the validation messages in a completely different location from the control(or controls), rather than adorned to them, say a textblock at the bottom of the screen. I suppose the type of presentation I'd like is similar to the way Visual Studio has the errors window that gathers all the problems in one place.
-
I've been looking at how I can display validation failures in WPF. The examples I've been looking at, typically create a style based on a control type. Is the approach really to create a 'validation error' style for every control type? Isn't there a more generic approach? Also some of my screens have grids, and I've worked out how I can either show the validation template per cell or the row, but I'm not sure I like the approach. Is it possible to display the validation messages in a completely different location from the control(or controls), rather than adorned to them, say a textblock at the bottom of the screen. I suppose the type of presentation I'd like is similar to the way Visual Studio has the errors window that gathers all the problems in one place.