C# UWP 视窗 10
这是我的内容对话框的 XAML 代码:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
.....
<Grid Grid.Row="1" Grid.ColumnSpan="2">
<ListView x:Name="MerchantList"
ItemTemplate="{StaticResource MerchantListViewTemplate}"
SelectionMode="Single"
SelectedValue="{Binding currItemId, Mode=TwoWay}"
SelectedValuePath="Id"
ShowsScrollingPlaceholders="True">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
我需要向用户显示一些项目的列表,但 ListView 不滚动。如何解决?