Silverlight中Treeview中判断当前节点是否含有父节点
public bool isPareNull(TreeViewItem CurrItem)
{
bool boolPareNote = false;
try
{
if (CurrItem.Parent != null)
boolPareNote = true;
}
catch (Exception)
{
throw;
}
return boolPareNote;
}