here is my Code
<StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" Grid.ColumnSpan="3" Height="auto" Grid.RowSpan="2" >
<TextBox Name="TextBox" Width="50" Margin="0,0,10,0" Height="21" FontSize="12" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" >
<TextBox.Text>
<Binding Path="SetTemperature" UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<local:TemperaturesValidationRule />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
The problem I have is, if I enter an incorrect value my button becomes disable , which is right, However then when I try and change the value, It never clears the error on the textbox, because the button can't lose focus. it cant because the button is disable. So It can never clear the error.
If I use
UpdateSourceTrigger="PropertyChanged"
Then my decimal points will not show up and I do not know why.
and if I add a delay the decimals only show up part of the time.
Does anyone have a good working fixed for this? I cant be the only one with this problem.
c#
