Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools How to set Silverlight UserControl Height and Width to full screen dynamically???
3 replies. Latest Post by pattormey on November 10, 2009.
(0)
chiragpa
Member
11 points
37 Posts
11-06-2009 1:55 PM |
I have created one Silverlight Control and that control is placed on another Silverlight Page. i have one functionality on user control to see the page in Full screen. I have implemented it through
Application.Current.Host.Content.IsFullScreen = true;
It is working but in full screen mode my control/page doesnt scale. its size remain same and broswer becomes full screen mode. I want my user control/ container page to scale accoring to the space availability in full screen mode.
Sledge70
Contributor
5882 points
1,042 Posts
11-06-2009 2:14 PM |
Either don't set the width and height of your root control or set them to auto.
Set the Horizontal and Vertical alignment to Stretch.
pattormey
35 points
18 Posts
11-10-2009 6:25 AM |
It would seem that you'd need to know the size of the users screen, unless you can find a container control that supports "Fill" and even then how whould t know the size of the users screen.
The Autozise stuff seems to only auto to size for the control's content. Not the browser..
11-10-2009 6:28 AM |
Seems sombody has a solution at http://forums.silverlight.net/forums/t/118940.aspx