|
|
@ -38,7 +38,8 @@ |
|
|
|
<TextBox Grid.Column="1" Grid.Row="0" Margin="5" |
|
|
|
<TextBox Grid.Column="1" Grid.Row="0" Margin="5" |
|
|
|
Text="{Binding Name, Mode=TwoWay}"/> |
|
|
|
Text="{Binding Name, Mode=TwoWay}"/> |
|
|
|
<TextBox x:Name="tbxAge" Grid.Column="1" Grid.Row="1" Margin="5" |
|
|
|
<TextBox x:Name="tbxAge" Grid.Column="1" Grid.Row="1" Margin="5" |
|
|
|
ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"> |
|
|
|
ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" |
|
|
|
|
|
|
|
Foreground="{Binding Path=Age, Mode=TwoWay, Converter={StaticResource cvtAgeToBrush}}"> |
|
|
|
<TextBox.Text> |
|
|
|
<TextBox.Text> |
|
|
|
<Binding Path="Age" |
|
|
|
<Binding Path="Age" |
|
|
|
Mode="TwoWay" |
|
|
|
Mode="TwoWay" |
|
|
@ -49,8 +50,7 @@ |
|
|
|
</Binding> |
|
|
|
</Binding> |
|
|
|
</TextBox.Text> |
|
|
|
</TextBox.Text> |
|
|
|
</TextBox> |
|
|
|
</TextBox> |
|
|
|
<TextBox Grid.Column="1" Grid.Row="2" Margin="5" |
|
|
|
<TextBox Grid.Column="1" Grid.Row="2" Margin="5" Foreground="Blue" |
|
|
|
Foreground="{Binding Path=Age, Mode=TwoWay, Converter={StaticResource cvtAgeToBrush}}" |
|
|
|
|
|
|
|
Text="{Binding PhoneNumber, Mode=TwoWay}"/> |
|
|
|
Text="{Binding PhoneNumber, Mode=TwoWay}"/> |
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Height="30"> |
|
|
|
<Grid Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Height="30"> |
|
|
|