DoubleEditBox wrap text or ScrollToHome()

Editors for WPF Forum

Posted 1 year ago by Daniel Constantin - ModuleWorks GmbH
Version: 19.1.0687
Avatar

Hi!

I have a DoubleEditBox control in which I can add a very big number but I do not want to resize the control.

For this particular case the TextAlignment is Center. My problem is after adding a very big number (maybe on LostFocus) I want to have visible in the control the left part of the number as it is the most important part.

I looked also for a way to scroll the text to the left like ScrollToHome() but I could not found a way.

Kind regards,

Daniel

Comments (2)

Answer - Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Daniel,

There is a TextBox in the edit box's visual hierarchy that is what you actually edit in.  You would probably have to get an instance of that with our VisualTreeHelperExtended.GetDescendant method and then call the ScrollToHome() method on that.


Actipro Software Support

Posted 1 year ago by Daniel Constantin - ModuleWorks GmbH
Avatar

Thank you for the quick response!

Daniel

The latest build of this product (v24.1.2) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.