Click here to Skip to main content
15,742,619 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How can I create a binding between a selected item of a list box that can send that item to another page with Blend?

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

So it the selected item of that list box changed, I must be redirect to another page. How can I do that whit Blend?

The result must been look like this
Updated 15-Jun-16 2:43am

1 solution

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. See image here.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900