Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2387
Setting TextBox width on dynamic form
posted

 

I am working on an application that generates a user defined form.  One of the requirements is: 

Allow the form designer to set the max number of characters that can be entered into a XamTextEditor.  During data entry, make the XamTextEditor the appropriate size for the max number of characters.

Example:

XamTextEditor A’s max length = 32 chars

XamTextEditor B’s max length = 1 char

XamTextEditor C’s max length = 10 chars

When these XamTextEditor are displayed, A needs to be long enough to hold 32 characters, B only 1, C only 10.  It is ok if they are a bit wide, like 34, 3, and 12 respectfully.  How would one go about figuring how wide to make the XamTextEditores?

Sam