We have: XAML

<TextBox Height="23" Name="TBLength" Width="60" Text="{Binding Path=L, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextChanged="Beam1_isChanged" /> 

The property is attached to the TextBox :

 public double L { get { return (double)GetValue(LProperty); } set { SetValue(LProperty, value); } } public static readonly DependencyProperty LProperty = DependencyProperty.Register("L", typeof(double), typeof(Beam), new FrameworkPropertyMetadata()); 

And the TextChanged="Beam1_isChanged" event is TextChanged="Beam1_isChanged" method should draw, but when the value in the textbox changes, the method runs with the old parameters, i.e. The property has not been updated. What am I doing wrong?

  • show Beam1_isChanged method Beam1_isChanged - Gardes

0