Skip to main content

Microsoft Silverlight

Answered Question write to the screenRSS Feed

(0)

mexican
mexican

Member

Member

164 points

713 Posts

write to the screen

 is there an easier way to write variables contents to the screen apart from assigning to a textbox.

I have 4-5 textboxes already and it would be better if i could writeln to the screen

I dont like trace vars or breakpoints .

 

 

i am tring to do better debugging in silverlight

codism
codism

Member

Member

372 points

121 Posts

Re: write to the screen

do you know if you double click the title bar of the output window in visual studio, you can move the output window any where on your screen. Is that you wanted?

rajesh shirpuram
rajesh s...

Contributor

Contributor

2314 points

505 Posts

Re: write to the screen

hi you can use  textbox with text-wrap property equal  to true

e.g. 

<TextBox Height="77" Margin="173,0295137" VerticalAlignment="Bottom" Text="TextBox" TextWrapping="Wrap" x:Name="Target1"/>

 

Thanks
Rajesh Shirpuram

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

mexican
mexican

Member

Member

164 points

713 Posts

Re: write to the screen

 is there a way to just write to the silverlight app  from vb.net? like a writeline?

All these textboxes get messy.

 not sure what the 1st reply was saying but i wanted to display values on the silverlight app

 

sladapter
sladapter

All-Star

All-Star

17439 points

3,172 Posts

Re: write to the screen

 use Textblock. Append your text to the TextBlock.Text;

<Textblock x:Name="message" />

in code:

this.Message.Text +=  "Your new line of text\n\r";

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

mexican
mexican

Member

Member

164 points

713 Posts

Re: write to the screen

 i meant i want to write to the screen without using a control,just straight on the canvas

SteveWong
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Re: Re: write to the screen

You cant but you can use an alert to help you for the debugging

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev

robhouweling
robhouwe...

Contributor

Contributor

3158 points

540 Posts

Silverlight MVP
Answered Question

Re: write to the screen

What the first reply means is that you can use the debugging features of VS2008 to debug instead of writing it to your SL application.

When using Debug.WriteLine("My debugging data"); in the code it writes to the output window in VS2008.

You can place this window anywhere you like, so you can tile the windows to view the output window and the application at the same time.

(If this has answered your question, please click on mark as answer on this post)

Cheers!
Rob Houweling



My blog

adefwebserver
adefwebs...

Member

Member

436 points

121 Posts

Silverlight MVP
Answered Question

Re: write to the screen

mexican:

 i meant i want to write to the screen without using a control,just straight on the canvas

The answer is no. When we look at the properties for the Canvas control:

http://msdn.microsoft.com/en-us/library/system.windows.controls.canvas_properties(VS.95).aspx

 we see that there are no properties to display text.


SilverlightDesktop.net

A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities