Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/321.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
C# 在metro应用程序中将网格视图的每列指定为不同的宽度_C#_Xaml_Windows 8_Windows Runtime - Fatal编程技术网

C# 在metro应用程序中将网格视图的每列指定为不同的宽度

C# 在metro应用程序中将网格视图的每列指定为不同的宽度,c#,xaml,windows-8,windows-runtime,C#,Xaml,Windows 8,Windows Runtime,我正在使用C#和XAML开发metro应用程序,我的网格视图由多个网格组成,默认情况下,网格视图为所有网格指定相同的宽度,但我想为每个网格指定不同的宽度。示例代码如下 <GridView x:Name="ObjGridView"> <Grid Background="Black" Height="400" Width="464"> </Grid> <Grid Background=

我正在使用C#和XAML开发metro应用程序,我的网格视图由多个网格组成,默认情况下,网格视图为所有网格指定相同的宽度,但我想为每个网格指定不同的宽度。示例代码如下

<GridView x:Name="ObjGridView">
            <Grid Background="Black" Height="400" Width="464">

            </Grid>
            <Grid Background="Blue" Height="400" Width="464">

            </Grid>
            <Grid Background="Blue" Height="400" Width="464">

            </Grid>
         <!--Up to n Grids-->
</GridView> 


那么,有没有办法手动为栅格指定宽度,或者可以更改栅格视图的列宽。请帮帮我。提前谢谢

也许这可以解决您的问题: