wpf - binding selectedItem from listbox to property not working ObservableCollection type -
I try to bind property (with my selection model) with selectItem, I should say that The translator has been completely tied to the observerial selection and it is displaying the list, but when I try to print on the mailbox, I get a blank object. This is my observation.
ObservableCollection & lt; Building & gt; _building installs = new Observe Collection & lt; Building & gt; (); Internal observable collection & lt; Building & gt; BuildingInstock {get {return _buildingInstock; } Set {_buildingInstock = value; If (property changed! = Null) {property changed (this, new asset changing event event ("BuildingInstock")); }}}
This is xaml:
& lt; Listbox X: Name = "listview1" grid. Row = "11" selected item = "{binding path = chosen house, mode = two}" item template = "{static resource listbox templates}" & gt; & Lt; / ListBox & gt;
I have the View code in:
List_Of_Buildings temp = New List_Of_Buildings (); List View 1. Datacontact = temporary Building install Listview1.ItemsSource = temp.BuildingInstock;
The list_Of_Buildings class includes this property:
building selected building = new building (); Internal Building Selected House ({return} Selected House;} Set {_selectedHouse = value; if (property changed! = Null) by changing property (this, new asset changing event event ("Selected House"));}}
Comments
Post a Comment