none
Binding MainWindow from UserControl

    Dotaz

  • Hello everyone,

    I'm creating wpf app for some statistics. I have my main Window with treeview, listview and in some space on the right I have created user control with lot of labels and textboxes


    My problem is, that i don't know how to bind the MainWindow.ListView from my usercontrols, to show selected detail item info according selected item in listview in MainWindow

    Snnipets from code:

    MainWindow

    <ListView Name="EntitySummary" MinHeight="450"  Width="170"/>

    UserControl - one of the detailinfo label

    <Label Grid.Row="0" Grid.Column="1" Name="lblFixtureID" Content="{Binding Path=SelectedItem.FixtureID}"/>

    Thank you for any help or complete example.

    pátek 24. července 2015 8:01