Silverlight网站的大小 [英] Silverlight Web Site size

查看:119
本文介绍了Silverlight网站的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在Silverlight网站上所做的一切,但是我在每台pc或leptop上网站的大小都发生了变化.想要完整的screan网站,我必须对LayoutRoot使用viewBox或Canvas.请与我们分享,请告诉我们您是否可以使用网站模板的框架

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

<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>



ı必须提供什么以及我们必须在何处将height ="和widht ="提供给userControl或LayoutRoot



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

推荐答案

设置width ="auto"和height =全屏显示在UserControl/LayoutRoot上的自动".
Set width="auto" and height="auto" at UserControl/LayoutRoot for full screen.


这篇关于Silverlight网站的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆