Answer the question
In order to leave comments, you need to log in
How to make it so that when the TextBox changes, the object is immediately drawn?
We have: XAML
<TextBox Height="23" Name="TBLength" Width="60" Text="{Binding Path=L, Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" TextChanged="Beam1_isChanged" />
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());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question