How can we calculate the width from the text of textbox control in WPF?
DoubleAnimation doubleAnimation = new DoubleAnimation();
doubleAnimation.From = -tbmarquee.ActualWidth;
doubleAnimation.To = canMain.ActualWidth;
doubleAnimation.RepeatBehavior = RepeatBehavior.Forever;
doubleAnimation.Duration = new Duration(TimeSpan.Parse("0:0:20"));
tbmarquee.BeginAnimation(Canvas.LeftProperty, doubleAnimation);
tbmarquee.actualwidth giving 0 value
please give me solution to find out the width of tbmarquee according to text
Piyush PansuriyaPosted Jul 31, 2015, 8:46 AM