Dynamic Menu

Dynamic Menu

Old forum URL: forums.lhotka.net/forums/t/10943.aspx


st3fanus posted on Sunday, December 04, 2011

Hi all,

 

This is not a pure CSLA problem, but I hope anyone can give me a suggestion for this :

I'm developing small app use CSLA.NET 4 and WPF, and I use Bxf too.

I'm in the middle of following Rocky ebooks ( this a nice book :) ).

My Scenario is :

I just make a dynamic menu on main window.

<UserControl.Resources>
        <CollectionViewSource x:Key="mainMenuViewSource" />

        <HierarchicalDataTemplate
            x:Key="NiceMenu"
            ItemsSource="{Binding Path=Items}">
            <TextBlock Text="{Binding Path=HeaderMenu}"/>
        </HierarchicalDataTemplate>
       
    </UserControl.Resources>

 

<Menu
            ItemsSource="{Binding Source={StaticResource mainMenuViewSource}}"
            ItemTemplate="{StaticResource NiceMenu}" Name="mainMenu" />

 

What I'm looking for is WHERE I can put a TriggerAction for each menuitem generated by HiearchicalDataTemplate ??

 

thanks a lot

 

 

 

 

 

Copyright (c) Marimer LLC