Changing content size with ViewBox


show more Changing content size with ViewBox provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training show less
please wait ...

Changing content size with ViewBox

SilverLight runs in the browser which is a sizeable window your users will run the browser in windows of many sizes. A good UI design will be flexible when encountering different size environments. In this movie I want to show the Viewbox control. It provides a resizable container. That stretches or shrinks its contents to match the container size. It is most often used in conjunction with the Canvas panel. For this demonstration, I will use Visual Studio in a project called ChangeSizeWithViewBox. I am currently looking at the CanvasWithoutPage.

I have a Canvas containing some vector art. This flower is composed of Silverlight elements. It is not a photo, you can see that down here there is a Canvas that contains a number of ellipses and these ellipses are centered around this center ellipses. This ellipse is also contained inside a Grid which is inside my user control. I will run the application by pressing F5 and then I'll resize the browser window, even though the container, in this ...

Changing content size with ViewBox
Video duration: 1m 39s 8h 52m Beginner

Viewers:

Changing content size with ViewBox provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training

Subject:
Developer
Software:
Silverlight Visual Studio
Author:
please wait ...