Click here to Skip to main content
15,895,283 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: More MVVM WPF Angst Pin
Pete O'Hanlon18-Jul-10 21:46
mvePete O'Hanlon18-Jul-10 21:46 
GeneralRe: More MVVM WPF Angst Pin
_Maxxx_19-Jul-10 0:44
professional_Maxxx_19-Jul-10 0:44 
GeneralRe: More MVVM WPF Angst Pin
Pete O'Hanlon19-Jul-10 0:57
mvePete O'Hanlon19-Jul-10 0:57 
GeneralRe: More MVVM WPF Angst Pin
_Maxxx_19-Jul-10 14:36
professional_Maxxx_19-Jul-10 14:36 
QuestionWPF Calendar Binding Pin
carrigart18-Jul-10 6:33
carrigart18-Jul-10 6:33 
AnswerRe: WPF Calendar Binding Pin
Parwej Ahamad18-Jul-10 8:20
professionalParwej Ahamad18-Jul-10 8:20 
GeneralRe: WPF Calendar Binding Pin
carrigart18-Jul-10 9:37
carrigart18-Jul-10 9:37 
QuestionValidator.ValidateProperty always throw error and application is exited Pin
ctlqt1217-Jul-10 23:10
ctlqt1217-Jul-10 23:10 
Hi all,

I checked the validation for my form by using DataAnnotations.

<br />
        [Required(ErrorMessage="User Name is Required")]<br />
        [StringLength(12,MinimumLength=6,ErrorMessage="User Name must be in between 6 to 12 Characters")]<br />
        public string UserName<br />
        {<br />
            get { return _UserName; }<br />
            set <br />
            {<br />
                <br />
                Validator.ValidateProperty(value, new ValidationContext(this, null, null) { MemberName="UserName"});<br />
                _UserName = value; <br />
            }<br />
        } <br />


The error is always throwed at [Validator.ValidateProperty] and applicaton is stopped!! why on my friend's PC is not and the error message is displayed near the textbox normally.

The strange is any source code that i got from internet or from my friend's PC is run normally with DataAnotation. But when i clean project and build it again, the application always throw error ( like : value is required ... ) at Validator.ValidateProperty and application is exited ( or stop running )

How could i solve it ?
QuestionFull Silverlight website Pin
mehrdadc4816-Jul-10 18:33
mehrdadc4816-Jul-10 18:33 
AnswerRe: Full Silverlight website Pin
Kunal Chowdhury «IN»17-Jul-10 4:45
professionalKunal Chowdhury «IN»17-Jul-10 4:45 
AnswerRe: Full Silverlight website Pin
Abhinav S17-Jul-10 6:35
Abhinav S17-Jul-10 6:35 
QuestionWPF MVVM Multiple Vs with one VM Pin
_Maxxx_15-Jul-10 19:51
professional_Maxxx_15-Jul-10 19:51 
AnswerRe: WPF MVVM Multiple Vs with one VM Pin
Arun Jacob15-Jul-10 21:47
Arun Jacob15-Jul-10 21:47 
GeneralRe: WPF MVVM Multiple Vs with one VM Pin
_Maxxx_16-Jul-10 0:20
professional_Maxxx_16-Jul-10 0:20 
GeneralRe: WPF MVVM Multiple Vs with one VM Pin
_Maxxx_16-Jul-10 0:24
professional_Maxxx_16-Jul-10 0:24 
GeneralRe: WPF MVVM Multiple Vs with one VM Pin
Arun Jacob16-Jul-10 0:28
Arun Jacob16-Jul-10 0:28 
GeneralRe: WPF MVVM Multiple Vs with one VM Pin
Pete O'Hanlon16-Jul-10 1:38
mvePete O'Hanlon16-Jul-10 1:38 
AnswerRe: WPF MVVM Multiple Vs with one VM Pin
Jammer15-Jul-10 22:45
Jammer15-Jul-10 22:45 
QuestionHow to set the youtube player location fix in a xaml page, its getting on the botton of the page ...instead of the right position. Pin
Ch.Gayatri Subudhi15-Jul-10 19:10
Ch.Gayatri Subudhi15-Jul-10 19:10 
QuestionWPF equivalent of anchoring controls? Pin
Michael Eber15-Jul-10 10:29
Michael Eber15-Jul-10 10:29 
AnswerRe: WPF equivalent of anchoring controls? Pin
Kubajzz15-Jul-10 11:05
Kubajzz15-Jul-10 11:05 
GeneralRe: WPF equivalent of anchoring controls? Pin
Michael Eber15-Jul-10 11:19
Michael Eber15-Jul-10 11:19 
AnswerRe: WPF equivalent of anchoring controls? Pin
Jammer15-Jul-10 22:24
Jammer15-Jul-10 22:24 
QuestionWPF Resources Pin
t_zano15-Jul-10 8:53
t_zano15-Jul-10 8:53 
AnswerRe: WPF Resources Pin
Parwej Ahamad15-Jul-10 19:52
professionalParwej Ahamad15-Jul-10 19:52 

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.