public void RemoveItem() { if (TreeViewItems.Count > 0) { TreeViewItems.RemoveAt(TreeViewItems.Count - 1); } }