Use <Interaction.Behaviors> and <EventTriggerBehavior> in a UWP 10 Application

How to use <Interaction.Behaviors> and <EventTriggerBehavior> in a universal Windows 10 application? I get something like this with Blend:

Source of both images above: Jef Daels 2015

In the documentation (bad), I read that it should be something here:

And here is the code for what I need to do:

 <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> 
+7
data-binding xaml commandbinding blend
source share
1 answer

I found him. I have to install the "behaviors" package from Nuget and then drag it onto the item I need to use. Thanks ChrisW.!

+5
source share

All Articles