GetContainersFromItem

2 posts, 0 answers
  1. IxReveal
    IxReveal avatar
    7 posts
    Member since:
    Jan 2011

    Posted 28 Jan 2011 Link to this post

    The MS base container controls like TreeList have a helpful method called GetContainersFromItem which can be used to get the UI container e.g treeViewItem using the object reference bound to the container:
    we use it like :

     

     

    IEnumerable<TreeViewItem> parentTreeViewItems = this.ConceptBankTreeView.GetContainersFromItem(parentConcept);
    is there an equivilant method in for the TreeListItem

     

  2. IxReveal
    IxReveal avatar
    7 posts
    Member since:
    Jan 2011

    Posted 29 Jan 2011 Link to this post

    I found the answer:

    SelectedTreeListRow = some.ItemContainerGenerator.ContainerFromItem(selectedConcepts[0])

     

    as TreeListViewRow;

     

  3. DevCraft banner
Back to Top