TreeView Conductor and SelectedItem

Apr 1, 2011 at 3:59 PM

My ViewModel is a Conductor<T>.Collection.OneActive that I have the Items bound to a TreeView. The top level items work fine, but when I select one of the children of the top-level items, visually its removed from its parent and put in as a top-level item.

The mechanism for changing the selected is as such:

<TreeView Name="Items" cal:Message.Attach="[Event SelectedItemChanged]=[Action SelectedItemChanged($this)]">
    <TreeView.ItemTemplate>
        <HierarchicalDataTemplate ItemsSource="{Binding SubPerspectives}">
            <ContentControl cal:View.Model="{Binding}" IsTabStop="False" />
        </HierarchicalDataTemplate>
    </TreeView.ItemTemplate>
</TreeView>

with

public void SelectedItemChanged( IPerspective obj )
{
    ActiveItem = obj;
}

Do I have to abandon the Conductor and do it all myself, or is there a way to do what I want?