Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello to all I do silverlight web site but size of my site change on each pc or leptop ı want full screan web site do ı must use viewBox or Canvas for LayoutRoot. pls can you share with us just show us if you can skeleton of web site template lıke
HTML
<usercontrol xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
xmlns:System="clr-namespace:System;assembly=mscorlib" 
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
x:Class="..............." Foreground="{x:Null}" mc:Ignorable="d" Height="672" d:DesignWidth="1360">
	
	<usercontrol.resources>
		
	</usercontrol.resources>






<scrollviewer verticalscrollbarvisibility="Auto" horizontalcontentalignment="Center" scrollviewer.horizontalscrollbarvisibility="Auto" margin="0" height="668">
		
			<canvas x:name="LayoutRoot" xmlns:x="#unknown">
			
	
			</canvas>
		
	</scrollviewer>
</usercontrol>


what ı must give and where do we must give height="" and widht="" to userControl or to LayoutRoot
Posted

1 solution

Set width="auto" and height="auto" at UserControl/LayoutRoot for full screen.
 
Share this answer
 
Comments
delibey 23-Nov-11 17:50pm    
thx for your hellp but now my ScrollViewer not appear when ı resıze the site smaller any ıdea ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900