Click here to Skip to main content
15,890,282 members
Home / Discussions / WPF
   

WPF

 
QuestionMore complex databinding Pin
Lutosław1-Jun-10 2:40
Lutosław1-Jun-10 2:40 
AnswerRe: More complex databinding Pin
Abhinav S1-Jun-10 3:16
Abhinav S1-Jun-10 3:16 
QuestionRe: More complex databinding Pin
Lutosław1-Jun-10 5:00
Lutosław1-Jun-10 5:00 
AnswerRe: More complex databinding Pin
AspDotNetDev2-Jun-10 12:56
protectorAspDotNetDev2-Jun-10 12:56 
QuestionAs www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Ch.Gayatri Subudhi30-May-10 20:12
Ch.Gayatri Subudhi30-May-10 20:12 
AnswerRe: As www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Abhinav S30-May-10 20:23
Abhinav S30-May-10 20:23 
GeneralRe: As www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Ch.Gayatri Subudhi30-May-10 20:34
Ch.Gayatri Subudhi30-May-10 20:34 
QuestionValidation in silverlight datagrid? Pin
mittalpa30-May-10 6:11
mittalpa30-May-10 6:11 
Hi I know that we can add the Validator.ValidateProperty call inside the buisness object and decorate it as [Required] like as follows. Reference : http://blogs.msdn.com/b/nagasatish/archive/2009/03/22/datagrid-validation.aspx

[Required]
public string FirstName
{
    get { return firstName; }
    set
    {
        if (value != firstName)
        {
            Validator.ValidateProperty(value, new ValidationContext(this, null, null) { MemberName = "FirstName" });
            firstName = value;
            NotifyPropertyChanged("FirstName");
        }
    }
}


My problem with this approach is that auto generated classes do not contain any validation logic inside them. I am generating the classes from an xsd (XSD2Code utility) and have to use these DTOs because all layers are utilizing them.

Silverlight->WCF->Business layer->Data Access layer : All using common DTO classes

My questions are :

1. How can I incorporate validations for datagrid entry fields without adding them into plain classes?

2. Is there a way that I can add all these rules in xsd and have them written out inside classes?

Please advise. Thanks
AJ
Follow your goals, Means will follow you ---Gandhi---

QuestionWPF and Threading Pin
cdpace30-May-10 2:44
cdpace30-May-10 2:44 
AnswerRe: WPF and Threading Pin
Abhishek Sur1-Jun-10 0:48
professionalAbhishek Sur1-Jun-10 0:48 
GeneralRe: WPF and Threading Pin
AspDotNetDev2-Jun-10 9:14
protectorAspDotNetDev2-Jun-10 9:14 
QuestionAdd a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Lutosław30-May-10 0:57
Lutosław30-May-10 0:57 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 8:24
professionalKevin Marois1-Jun-10 8:24 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Lutosław1-Jun-10 8:50
Lutosław1-Jun-10 8:50 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 10:26
professionalKevin Marois1-Jun-10 10:26 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Pete O'Hanlon1-Jun-10 21:20
mvePete O'Hanlon1-Jun-10 21:20 
QuestionStoryboard animation should be infinite Pin
Tripathi Swati29-May-10 1:13
Tripathi Swati29-May-10 1:13 
AnswerRe: Storyboard animation should be infinite Pin
Not Active29-May-10 3:22
mentorNot Active29-May-10 3:22 
GeneralRe: Storyboard animation should be infinite Pin
Tripathi Swati31-May-10 0:13
Tripathi Swati31-May-10 0:13 
QuestionData Binding - I Don't Get It Pin
#realJSOP27-May-10 12:22
mve#realJSOP27-May-10 12:22 
AnswerRe: Data Binding - I Don't Get It Pin
Pete O'Hanlon27-May-10 12:34
mvePete O'Hanlon27-May-10 12:34 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP27-May-10 23:23
mve#realJSOP27-May-10 23:23 
GeneralRe: Data Binding - I Don't Get It Pin
Pete O'Hanlon28-May-10 4:42
mvePete O'Hanlon28-May-10 4:42 
AnswerRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 13:48
protectorAspDotNetDev27-May-10 13:48 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 14:10
protectorAspDotNetDev27-May-10 14:10 

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.