public void Expand()
 {
     foreach (DataItem selectedItem in TreeView.SelectedItems)
     {
         TreeView.ExpandAll(selectedItem, item => item.Parent, item => item.Children);
     }
 }