Hierarchical Data Template without ItemsSource Binding(By Default Caliburn Micro Conventions) not working

Topics: Conventions
May 9, 2013 at 8:56 AM
Here i placed my XAML Code:

<Menu Name="MainMenu" >
        <MenuItem Header="File" Name="MenuCollection">
            <MenuItem.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding MenuItemCollection}">
                    <TextBlock Foreground="Red" Text="{Binding Name}" />

                    <!-- Team template -->
                    <HierarchicalDataTemplate.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" />
                        </DataTemplate>
                    </HierarchicalDataTemplate.ItemTemplate>

                </HierarchicalDataTemplate>
            </MenuItem.ItemTemplate>
        </MenuItem>
</Menu>

This one executes successfully but i want this one will work as Caliburn Micro Conventions as following,(I do not want to set itemssource binding to hierarchical data template as MenuItem)

<Menu Name="MainMenu" >
        <MenuItem Header="File" Name="MenuCollection">
            <MenuItem.ItemTemplate>
                <HierarchicalDataTemplate x:Name="MenuItemCollection">
                    <TextBlock Foreground="Red" Text="{Binding Name}" />

                    <!-- Team template -->
                    <HierarchicalDataTemplate.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" />
                        </DataTemplate>
                    </HierarchicalDataTemplate.ItemTemplate>

                </HierarchicalDataTemplate>
            </MenuItem.ItemTemplate>
        </MenuItem>

    </Menu>
But it failed to create sub menu items. Any one please provide me a suggestion on this.