private UpdateContainsSelection ( bool selected ) : void | ||
selected | bool | /// A value indicating whether the item is selected. /// |
리턴 | void |
internal void UpdateContainsSelection(bool selected)
{
// Update the ContainsSelection flag from this item all the way up
// through the tree.
for (TreeViewItem item = ParentTreeViewItem; item != null; item = item.ParentTreeViewItem)
{
item.ContainsSelection = selected;
}
}