我有这样的GridView之间移除空间,XAML GridView控件项目
而且要项目,我尝试设置Marging和填充之间移除空间为0,因为这:
<GridView ItemsSource="{Binding ElementName=AprehenderPage,Path=DataContext.LecturasCorrectas}"
Margin="0"
Padding="0">
<GridView.ItemTemplate>
<DataTemplate>
<Grid Height="35"
Margin="0"
Padding="0">
<Image Source="{Binding Imagen}"
Margin="0"/>
</Grid>
</DataTemplate>
</GridView.ItemTemplate>
</GridView>
但这什么都不做。
我该如何去除这些空间?
或
要使用哪些其他控件?
我必须在哪里放置它?在项目模板?或在网格定义? –
已更新我的答案尝试用模板内的自动高度,然后相应地工作 – afr0
什么都没有,因为我需要,没有任何负边缘,它会产生一个奇怪的项目之间的覆盖。 –