var m = treeview.Items[0] as Model;
if (m.IsExpanded == false)
m.IsExpanded = true;
for (int i = 0; i < (m as Model).Models.Count; i++)
{
if ((m as Model).Models[i].IsExpanded == false)
{
(m as Model).Models[i].IsExpanded = true;
}
}
|