|
I am creating an unbound reference. In my IsEnabledFor method I am trying to see if the current item is a SolutionFolder, and if so, if its parent is also a SolutionFolder with a specified name. For some reason, I can get to the logical parent of the current solution node, as it is in Solution Explorer. I can easily test if the target is a SolutionFolder, but the problem is testing its parent.
Project project = (Project)target. - OK project.ParentProjectItem - yields a ProjectItem for the same node project.ParentProjectItem.Object - yields the same object (SolutionFolder)(project.Object) - yields the solution folder interface (SolutionFolder)(project.Object).Parent - yields the Project object again
Does anyone know how to get to the parent node? |