Click here to Skip to main content
13,836,677 members

Silverlight / WPF

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder16-Jul-09 4:09
adminChris Maunder16-Jul-09 4:09 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Jul-09 4:05
adminChris Maunder16-Jul-09 4:05 
QuestionHave two controls fill the MainWindow and resize automatically Pin
Mc_Topaz16-Jan-19 5:14
memberMc_Topaz16-Jan-19 5:14 
AnswerRe: Have two controls fill the MainWindow and resize automatically Pin
Richard Deeming16-Jan-19 9:07
mveRichard Deeming16-Jan-19 9:07 
GeneralRe: Have two controls fill the MainWindow and resize automatically Pin
Mc_Topaz16-Jan-19 20:22
memberMc_Topaz16-Jan-19 20:22 
QuestionHyperlink Context Menu Pin
Kevin Marois9-Jan-19 16:30
professionalKevin Marois9-Jan-19 16:30 
AnswerRe: Hyperlink Context Menu Pin
Richard Deeming10-Jan-19 1:32
mveRichard Deeming10-Jan-19 1:32 
GeneralRe: Hyperlink Context Menu Pin
Kevin Marois10-Jan-19 5:32
professionalKevin Marois10-Jan-19 5:32 
GeneralRe: Hyperlink Context Menu Pin
Kevin Marois10-Jan-19 6:31
professionalKevin Marois10-Jan-19 6:31 
QuestionTreeView Item Show Button Using Trigger Pin
Kevin Marois1-Jan-19 12:41
professionalKevin Marois1-Jan-19 12:41 
AnswerRe: TreeView Item Show Button Using Trigger Pin
Gerry Schmitz5-Jan-19 8:22
mveGerry Schmitz5-Jan-19 8:22 
GeneralRe: TreeView Item Show Button Using Trigger Pin
Kevin Marois7-Jan-19 8:31
professionalKevin Marois7-Jan-19 8:31 
GeneralRe: TreeView Item Show Button Using Trigger Pin
Gerry Schmitz7-Jan-19 9:39
mveGerry Schmitz7-Jan-19 9:39 
GeneralRe: TreeView Item Show Button Using Trigger Pin
Kevin Marois7-Jan-19 10:18
professionalKevin Marois7-Jan-19 10:18 
QuestionWPF Items Source get the visible items Pin
Paul M Gibson31-Dec-18 8:00
memberPaul M Gibson31-Dec-18 8:00 
AnswerRe: WPF Items Source get the visible items Pin
Gerry Schmitz1-Jan-19 7:42
mveGerry Schmitz1-Jan-19 7:42 
GeneralRe: WPF Items Source get the visible items Pin
Paul M Gibson2-Jan-19 7:22
memberPaul M Gibson2-Jan-19 7:22 
QuestionAd Control / monetization Pin
Super Lloyd18-Dec-18 14:02
memberSuper Lloyd18-Dec-18 14:02 
AnswerRe: Ad Control / monetization Pin
Pete O'Hanlon18-Dec-18 23:17
protectorPete O'Hanlon18-Dec-18 23:17 
GeneralRe: Ad Control / monetization Pin
Super Lloyd19-Dec-18 16:40
memberSuper Lloyd19-Dec-18 16:40 
AnswerRe: Ad Control / monetization Pin
Gerry Schmitz23-Dec-18 10:02
mveGerry Schmitz23-Dec-18 10:02 
GeneralRe: Ad Control / monetization Pin
Super Lloyd23-Dec-18 10:39
memberSuper Lloyd23-Dec-18 10:39 
GeneralRe: Ad Control / monetization Pin
Gerry Schmitz28-Dec-18 10:39
mveGerry Schmitz28-Dec-18 10:39 
QuestionValidation in WPF Pin
Kevin Marois18-Dec-18 7:59
professionalKevin Marois18-Dec-18 7:59 
I was looking at this blog post about WPF Data Validations.

It lays out some basic methods:

Data Annotations
This is nice because you can define model requirements on the model itself. HOW those requirements are enforced is done in whatever applications use those models.

IDataErrorInfo
In this case he invokes a service that does Server Side Validation. I can see this being useful for
things like checking for duplicates against a DB, bit not for simple UI validation like ensuring
required properties on a model are set.

But I can see uses for BOTH methods in an app. The annotations handle the simple, client side validation and the service handles more complex validation in the BL.

What I can't figure out is how to combine BOTH of these. I'd really like to have a generic assembly that I can re-use to handle validation.

Anyone know of a nice example?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Validation in WPF Pin
Super Lloyd18-Dec-18 14:09
memberSuper Lloyd18-Dec-18 14:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190114.1 | Last Updated 17 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid