Page view counter
Multiline TextBox control (TextArea) in Silverlight 2.0 Subscribe to this thread
Last post 05-29-2009 7:10 AM by lijoputhuval. 7 replies.
Sort Posts:
04-22-2008 2:34 AM
Multiline TextBox control (TextArea) in Silverlight 2.0

Hi,

I am using Silverlight 2.0 & noticed that, there are no Multiline TextBox (i.e. textarea) control in it.
I also noticed that, there are no support for ScrollBar in TextBox.
So, is there any way to create a multiline textbox in silverlight 2.0?

Thanks for your response in advance.

Regards,

-    K

 

Remember: Please click on "Mark As Answer", if this answered your query partially or fully.

Thanks & Regards,
Kunal (My Blog)

microsoft_kc

Loading...
Joined on 03-27-2008
Pune, India
Posts 474
04-24-2008 4:05 AM
Re: Multiline TextBox control (TextArea) in Silverlight 2.0

Its been mentioned as something that *might* ship in Beta 2, but they haven't confirmed it for this release.

(If this has answered your question, "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 2 and 3 Workshop
Boston, MA: April 29 - May 1
Washington, DC: June 16-18th
http://silverlight-tour.com

swildermuth

Loading...
Joined on 10-13-2003
Atlanta, GA
Posts 1,538
12-18-2008 4:23 AM
Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

can any one tell me how to use textArea in silverlight 2.0.as there is no control

and i didnt find any properties like

TextMode="MultiLine"  

 in Asp.net

thanks for ur response in advance

with Regards
Lijo

lijoputhuval

Loading...
Joined on 05-06-2008
mumbai
Posts 48
12-18-2008 4:36 AM
Re: Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

i got it

<TextBox x:Name="sltxtCurrentAddress" Grid.Row="6" Grid.Column="1" TextWrapping="Wrap" Width="300" Height="75" ToolTipService.ToolTip="Enter Name" HorizontalAlignment="Left" VerticalAlignment="Top" TabIndex="1" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible"></TextBox>

we have to set the TextWrapping="Wrap" property also set

HorizontalScrollBarVisibility="Visible"

note: u have to set height also

with Regards
Lijo

lijoputhuval

Loading...
Joined on 05-06-2008
mumbai
Posts 48
12-20-2008 12:40 PM
Re: Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

I added also the prop  AcceptsReturn="True"

Bye

   
timo77

Loading...
Joined on 11-02-2005
Posts 1
12-22-2008 8:34 AM
Re: Re: Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

ya thats good point timo77

with Regards
Lijo

lijoputhuval

Loading...
Joined on 05-06-2008
mumbai
Posts 48
05-04-2009 10:04 AM
Re: Re: Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

Hi, I am able to mutliple lines. But, scroll bars are not coming (End user need to scroll with the help of up&down arrows), after keeping vertical and horizontal scroll bars as visible or auto.

Do any one suggest me how to get scroll bars, my code is as below

<TextBox ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"

AcceptsReturn = "true" TextWrapping ="Wrap" Width="190" Height="40" IsReadOnly="True" Text="" x:Name="tblkMessage" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left"/>

Thanks

Ashok

addanki

Loading...
Joined on 04-21-2009
Posts 28
05-29-2009 7:10 AM
Re: Re: Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

Try Like This

<TextBox x:Name="CurrentAddress" MaxLength="200" Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" AcceptsReturn="True" Width="250" Height="40"  HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible"></TextBox>

you Just Remove ScrollViewer. and Just Give HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible"

i think this will helps you .its working for me.

Please Mark As Answer if This Post Helps You

with Regards
Lijo

lijoputhuval

Loading...
Joined on 05-06-2008
mumbai
Posts 48
Microsoft Communities