Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
VB.Net中的ScaleTransform_Vb.net_Silverlight_Silverlight 5.0 - Fatal编程技术网

VB.Net中的ScaleTransform

VB.Net中的ScaleTransform,vb.net,silverlight,silverlight-5.0,Vb.net,Silverlight,Silverlight 5.0,所以,我在Silverlight XAML中工作。如何将其转换为在VB.Net codebehind中完成 <Grid.RenderTransform> <ScaleTransform x:Name="MyScale" ScaleX="0.75" ScaleY="0.75"/> </Grid.RenderTransform> 我正在转换的网格是我的LayoutRoot 谢谢。好的,我想: Dim ScaleDown

所以,我在Silverlight XAML中工作。如何将其转换为在VB.Net codebehind中完成

<Grid.RenderTransform>
                <ScaleTransform x:Name="MyScale" ScaleX="0.75" ScaleY="0.75"/>
</Grid.RenderTransform>

我正在转换的网格是我的LayoutRoot

谢谢。

好的,我想:

    Dim ScaleDown As New ScaleTransform
    ScaleDown.ScaleX = "0.75"
    ScaleDown.ScaleY = "0.75"
    LayoutRoot.RenderTransform = ScaleDown

这太糟糕了。您真的需要使用Option Strict On一段时间来学习停止编写这样的代码。我将在下一个应用程序中尝试。虽然很可能是HTML5/Javascript,而不是Silverlight/VB.Net。