public static void TreeItemDoubleClickToExpand(TreeItem treeitem) { try { treeitem.EnsureVisible(); treeitem.DoubleClick(); } catch (Exception ex) { throw new Exception("TreeItem Double Click To Expand failed : " + ex.Message); } }