Hi all,
I got i issue where the validation appear right but the canexecute don't run again. What i mean is if you put a string in the int field the validation don't go to viewmodel again and the button still be enabled and should be disabled. Someone have a solution for that?
view
<TextBlock Grid.Row="2">Age</TextBlock>
<TextBox Grid.Column="1" Grid.Row="2" Margin="5,5,5,5" Text="{Binding Age,ValidatesOnExceptions=True, ValidatesOnDataErrors=True, Mode=TwoWay}"></TextBox>
viewmodel
private int age;
[Required]
public int Age
{
get { return this.age; }
set
{
SetValue<int>(ref this.age, value, true, true,"Age");
}
}