drl
drl

Reputation: 841

Windows Phone Multi Line Text Box

I want to create a UI element that behaves approximately like the native WP SMS App's input text box.

Basically it should

Any suggestions on how I can do this? I'd rather not use events to see how much text I've entered and expand/compress the text box based on that, or create a new UI element from scratch.

If it helps, I've got access to Telerik's RAD Controls for Windows Phone (RadTextBox).

Upvotes: 9

Views: 10832

Answers (1)

lsuarez
lsuarez

Reputation: 4992

Have you attempted making use of the FrameworkElement.MaxHeight property? The markup would be similar to:

<TextBox TextWrapping="Wrap" AcceptsReturn="True" MaxHeight="200" />

The given value for max height is simply an example and may not meet your specific needs.

Note: As mentioned in the comments below, be certain to remove any value specified for Height. The declaration will constrain the element to that height at all times.

Upvotes: 21

Related Questions