Skip to main content

Microsoft Silverlight

Unanswered Question Multiline TextBox control (TextArea) in Silverlight 2.0RSS Feed

(1)

microsoft_kc
microsof...

Contributor

Contributor

2864 points

561 Posts

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.


Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog

swildermuth
swildermuth

Star

Star

8320 points

1,546 Posts

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 3 Workshop
Miami, FL: Oct 12-14th
Portlant, OR: Dec 2-4th
Atlanta, GA: Dec 7-9th
http://silverlight-tour.com

lijoputhuval
lijoputh...

Member

Member

108 points

51 Posts

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
lijoputh...

Member

Member

108 points

51 Posts

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

timo77
timo77

Member

Member

2 points

1 Posts

Re: Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

I added also the prop  AcceptsReturn="True"

Bye

   

lijoputhuval
lijoputh...

Member

Member

108 points

51 Posts

Re: Re: Re: Re: Multiline TextBox control (TextArea) in Silverlight 2.0

ya thats good point timo77

with Regards
Lijo

addanki
addanki

Member

Member

16 points

46 Posts

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

lijoputhuval
lijoputh...

Member

Member

108 points

51 Posts

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
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities