Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Source both images above: Jef Daels 2015

In may (bad) documentation, I've read that it must be something over here:

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

<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>
like image 590
H. Pauwelyn Avatar asked Dec 26 '15 12:12

H. Pauwelyn


1 Answers

I've found it. I must install the 'behaviors' package from Nuget and than drag and drop it onto the element I need to use it. Thanks to ChrisW.!

like image 114
H. Pauwelyn Avatar answered Sep 17 '22 23:09

H. Pauwelyn