TreeView HierarchicalDataTemplate ItemSource propertychanged not recognized


i’m having trouble getting bound property changed events recognized treeview control.  in particular when add item or remove item itemsource property of hierarchicaldatatemplate, expect following work:

====================

divisionbusinessunit divisionbusinessunit

    = new divisionbusinessunit(division);

selectedbusinessunit.subclasses.add(divisionbusinessunit);

====================

instead have following:

=================

 divisionbusinessunit divisionbusinessunit

    = new divisionbusinessunit(division);

selectedbusinessunit.subclasses.add(divisionbusinessunit);

list<businessunit> holder = selectedbusinessunit.subclasses;

selectedbusinessunit.subclasses = null;

selectedbusinessunit.subclasses = holder;

 ===================

note divisionbusinessunit implement inotifypropertychanged.

any ideas doing wrong?

 

thanks,

dogulas

jerry,

i figured out.  had defined subclasses property in businessunit class list<businessunits>.  when changed definition observablecollection<businessunit> it started working fine.

sorry oversight.

dogulas



Silverlight  >  Silverlight Controls and Silverlight Toolkit



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........