在 UWP 10 应用程序中使用 <Interaction.Behaviors> 和 <EventTriggerBehavior>

Use <Interaction.Behaviors> and <EventTriggerBehavior> in UWP 10 app

如何在 Windows 10 通用应用程序中使用 <Interaction.Behaviors><EventTriggerBehavior>?我会用 Blend 得到这样的东西:

以上两张图片来源:Jef Daels 2015

在 5 月(糟糕的)文档中,我读到它一定是这里的东西:

这是我需要执行的代码:

<ListBox Grid.Row="2" Grid.Column="0"  Grid.ColumnSpan="3"
         ItemContainerStyle="{StaticResource lstidflt}" SelectedItem="{Binding SelectedVillage, Mode=TwoWay}"
         ItemTemplate="{StaticResource weatheritemdt}" ItemsSource="{Binding VillageList}" >
</ListBox>

我找到了。我必须从 Nuget 安装 'behaviors' 包,然后将其拖放到我需要使用它的元素上。感谢 ChrisW.!