所以这是我的代码:
<Button HorizontalAlignment="Right" Foreground="#404040" Content="{Binding TripListSelected, Mode=TwoWay}">
<Button.Flyout>
<ListPickerFlyout Placement="Full" ItemsSource="{Binding TripList}" SelectedValue="{Binding TripListSelected, Mode=TwoWay}" />
</Button.Flyout>
</Button>
&lt; ListPickerFloyout ... /&GT; line是下划线说&#34;尝试读或写...&#34;,但我可以运行我的代码normalny,然后当我想清除列表(.cs中的list.cleare())我有运行时错误与相同的消息。还有另一种方法可以清除它,还是我的xaml代码中的错误? 谢谢:D