Click here to Skip to main content
15,888,977 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: textbox validation in silverlight Pin
Abhinav S30-Nov-09 21:57
Abhinav S30-Nov-09 21:57 
GeneralRe: textbox validation in silverlight Pin
noufal200930-Nov-09 23:08
noufal200930-Nov-09 23:08 
AnswerRe: textbox validation in silverlight Pin
Abhinav S30-Nov-09 23:15
Abhinav S30-Nov-09 23:15 
GeneralRe: textbox validation in silverlight Pin
noufal200930-Nov-09 23:35
noufal200930-Nov-09 23:35 
AnswerRe: textbox validation in silverlight [modified] Pin
Abhinav S30-Nov-09 23:45
Abhinav S30-Nov-09 23:45 
GeneralRe: textbox validation in silverlight Pin
Mark Salsbery1-Dec-09 8:08
Mark Salsbery1-Dec-09 8:08 
AnswerRe: textbox validation in silverlight Pin
fred_1-Dec-09 4:40
fred_1-Dec-09 4:40 
QuestionValidationRule bind two values Pin
ezazazel30-Nov-09 20:25
ezazazel30-Nov-09 20:25 
Hi folks!

Can anyone please help me with this:

I have two values (one manual input and one from a database) and I need to compare them/ validate them via ValidationRules and show errors if they do not match.

LOGIC: V1 == V2 => OK
V1 != V2 => NOK, Error

<TextBlock>
<TextBlock.Text>
<Binding ...>
<Binding.ValidationRules>
<localValidation:ValidateIt V1={Binding Path=...} V2={Binding Path=}/>
</Binding.ValidationRules/>
<TextBlock.Text/>
</TextBlock>


where

public class ValidateIt : ValidationRule
public int V1 {get;set;}
public int V2 {get;set;}


Unfortunately it tells me, that V1 and V2 cannot be bound due to the fact, that these are no DependencyProperties.

I'm stuck...

Thanks in advance,

eza
AnswerRe: ValidationRule bind two values Pin
Pete O'Hanlon30-Nov-09 21:42
mvePete O'Hanlon30-Nov-09 21:42 
Questionhelp animation wpf - vb Pin
Member 360941530-Nov-09 6:55
Member 360941530-Nov-09 6:55 
AnswerRe: help animation wpf - vb Pin
Christian Graus1-Dec-09 5:32
protectorChristian Graus1-Dec-09 5:32 
QuestionWPF property xaml serialization in design time problem Pin
Thomas Duwe30-Nov-09 3:20
Thomas Duwe30-Nov-09 3:20 
QuestionDesign issue Pin
Tauseef A29-Nov-09 16:51
Tauseef A29-Nov-09 16:51 
AnswerRe: Design issue Pin
Mark Salsbery30-Nov-09 9:17
Mark Salsbery30-Nov-09 9:17 
QuestionAdvantages and disadvantage using sliverlight Pin
Gopal_Kanchana27-Nov-09 18:22
Gopal_Kanchana27-Nov-09 18:22 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Mark Salsbery28-Nov-09 8:40
Mark Salsbery28-Nov-09 8:40 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Kunal Chowdhury «IN»6-Dec-09 7:07
professionalKunal Chowdhury «IN»6-Dec-09 7:07 
GeneralRe: Advantages and disadvantage using sliverlight Pin
Gopal_Kanchana6-Dec-09 18:43
Gopal_Kanchana6-Dec-09 18:43 
GeneralRe: Advantages and disadvantage using sliverlight Pin
Teun L9-Dec-09 1:33
Teun L9-Dec-09 1:33 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Abhinav S6-Dec-09 17:45
Abhinav S6-Dec-09 17:45 
GeneralRe: Advantages and disadvantage using sliverlight Pin
Kunal Chowdhury «IN»11-Dec-09 3:39
professionalKunal Chowdhury «IN»11-Dec-09 3:39 
AnswerRe: Advantages and disadvantage using sliverlight Pin
Michael Eber19-Jan-10 6:24
Michael Eber19-Jan-10 6:24 
QuestionWPF - staggering storyboard executions Pin
gritter27-Nov-09 16:59
gritter27-Nov-09 16:59 
AnswerRe: WPF - staggering storyboard executions Pin
gritter28-Nov-09 3:05
gritter28-Nov-09 3:05 
QuestionMDI type of application using WPF Pin
nilam247726-Nov-09 23:37
nilam247726-Nov-09 23:37 

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.