Recommended


Silverlight Hosting

Skip Navigation LinksHome / Tips / View Tip

Tip: How to make a text box multi line?

+ Add to SilverlightShow Favorites
0 comments   /   posted by Denislav Savkov on Sep 04, 2008
(0 votes)
Categories: Controls and UI

Text box control in Silverlight supports multi line mode but surprisingly it does not have such property as Multyline. That is why, in order to make one text box multi line, you have to set its property AcceptsReturn to true.

Xaml

<TextBox x:Name="textBox" AcceptsReturn="True"></TextBox>

C#

TextBox textBox = new TextBox();
textBox.AcceptsReturn = true;

That's it!

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
 Refresh