User interface for messaging app for WP7
Posted
by
ArtWorkAD
on Stack Overflow
See other posts from Stack Overflow
or by ArtWorkAD
Published on 2012-04-01T10:25:06Z
Indexed on
2012/04/01
11:30 UTC
Read the original article
Hit count: 245
I have a Message.xaml
file that should display a recipient field and a message field like this:
The user can add multiple recipients, so the TextBox
should be flexible in height. I managed this with following code:
<TextBox FontSize="24" Margin="0,0,80,532" Name="absenderField"
AcceptsReturn="True" TextWrapping="Wrap" Height="auto"
MinHeight="30" MaxWidth="375">
</TextBox>
Now the recipient field is growing in height when text is added that does not fit into it. The other TextBox is for the message. The markup is the same as for the recipient field, just the height is different.
The first problem is, that when the recipient field growes it goes over the message field but the message field should be aligned at the bottom of the recipient field and move down. how can I achieve that?
Now the other problem. When I enter a lot of text to make the message field grow, the recipient field will grow too. This is very strange. Why does this happen?
Is it possible to make the text scroll inside the text box?
Whole xaml: http://pastebin.com/xPg7rV9e
© Stack Overflow or respective owner