我在一个页面上有三个ScrollView中的垂直ListView。我需要这些ListView来扩展ScrollView,以便它可以滚动而ListView不是。
我的ScheduleWeekView Xaml代码:
<ContentView.Content>
<ScrollView BindingContext="{x:Reference This}" Orientation="Vertical">
<Grid x:Name="ColumnGrid" ColumnSpacing="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<week:ColumnView
Grid.Column="0"
DayOfWeek="Mon"
Items="{Binding WeekObjects[0]}" />
<week:ColumnView
Grid.Column="1"
DayOfWeek="Tue"
Items="{Binding WeekObjects[1]}" />
<week:ColumnView
Grid.Column="2"
DayOfWeek="Wed"
Items="{Binding WeekObjects[2]}" />
<week:ColumnView
Grid.Column="3"
DayOfWeek="Thu"
Items="{Binding WeekObjects[3]}" />
<week:ColumnView
Grid.Column="4"
DayOfWeek="Fri"
Items="{Binding WeekObjects[4]}" />
<week:ColumnView
Grid.Column="5"
DayOfWeek="Sat"
Items="{Binding WeekObjects[5]}" />
<week:ColumnView
Grid.Column="6"
DayOfWeek="Sun"
Items="{Binding WeekObjects[6]}" />
<Grid.GestureRecognizers>
<PinchGestureRecognizer PinchUpdated="PinchToZoomContainer_OnPinchUpdated" />
</Grid.GestureRecognizers>
</Grid>
</ScrollView>
</ContentView.Content>
答案 0 :(得分:0)
不支持嵌套ListViews / ScrollView。