Blend 3 - Canvas Resize -


I am using Blend 3 for a silverlight app. To automatically resize and optimize the browser How can I use the canvas (100% width and height) .. I think it can be done using C # because I want to move objects easily around the browser, but do not know how. .. help would be appreciated!

Snippet XML:

  & lt; Grid X: Name = "This Most Baconvas" & gt; & Lt; Grid X: Name = "Resize This Shield" Minhite = "768" Minewuth = "1024" Background = "# FF 8AFF 26" />  

When I use a canvas, then there is a trap within me ...

Thanks in advance,

> David Vera

If you remove the width and height and alignment parameters, then the Silverlight app Become fit for your container, combine with good use of grid, stack panels, and dock panels, and you should be able to create a good fluid design.

For this to work your HTML needs to see something like this ..

& lt; Style & gt; Html, body {width: 100%; Height: 100%; } #silverlightControlHost {altitude: 100%; } & Lt; / Style & gt; & Lt; Div id = "silverlightcontrolhost" & gt; & Lt; Object Data = "Data: App / X-Silverlight-2," Type = "App / X-Relilite-2" width = "100%" height = "100%" & gt; ... & lt; / Object & gt; & Lt; / Div & gt;

At least this worked for me

Of course this is a Silverlight 2 app, but I thought it would be in 3.

Edit - my bad, I just saw my code and I'm not using canvas. This is the reason why it works for me. Can I ask why you are using the canvas?


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -