首页 新闻 会员 周边

UWP中GridView中图片间距太大如何调整?

0
悬赏园豆:5 [已关闭问题] 关闭于 2017-11-13 15:45
            <GridView  Width="90" Height="90">                
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <Image Source=" ****" Width="30" Height="30" ></Image>
                <GridView.ItemContainerStyle>
                    <Style TargetType="GridViewItem">
                        <Setter Property="BorderBrush" Value="Blue"></Setter>
                        <Setter Property="BorderThickness" Value="0.5"></Setter>
                        <Setter Property="Margin" Value="0"></Setter>
                    </Style>                    
                </GridView.ItemContainerStyle>                
            </GridView>            

要把这九张图全显示出来怎么设置,现在这样设置图片之间有间距.

罗伯特·福特的主页 罗伯特·福特 | 初学一级 | 园豆:133
提问于:2017-11-12 15:36
< >
分享
所有回答(1)
0

GridView的Item自带MinWidth和MinHeight属性,修改即可

罗伯特·福特 | 园豆:133 (初学一级) | 2017-11-13 15:44
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册