How can a Caliburn.Micro sub menuitem click call an action on the containing view's viewmodel?
I have a top level menu in my ShellView and when selecting a sub MenuItem, I would like to call the following method on the ShellViewModel (a Conductor<IScreen>.Collection.AllActive).

        public void SelectServer(string pServerName)
        {
            mDefaultClaimServer = pServerName;
        }

The following does not work as no method gets called (I have tried various signatures and action parameters) -

        <Menu Name="menu1" DockPanel.Dock="Top">
            <MenuItem Header="Select Server" Name="ClaimServers">
                <MenuItem.ItemTemplate>
                    <DataTemplate>
                        <!-- we need this else we show the class name -->
                        <TextBlock Text="{Binding DisplayName}">
                            <ContentControl cal:Message.Attach="[Event Click] = [Action TxTester.ShellViewModel.SelectServer($Text)]"/>
                        </TextBlock>
                    </DataTemplate>
                </MenuItem.ItemTemplate>
            </MenuItem>
        </Menu>

The following does call the ShellViewModel SelectServer method but I get null for the text of the clicked sub MenuItem (I also tried many other signatures and action parameters) -

        <Menu Name="menu1" DockPanel.Dock="Top">
            <MenuItem Header="Select Server" Name="ClaimServers" cal:Message.Attach="SelectServer($this.Text)">
                <MenuItem.ItemTemplate>
                    <DataTemplate>
                        <!-- we need this else we show the class name -->
                        <TextBlock Text="{Binding DisplayName}" />
                    </DataTemplate>
                </MenuItem.ItemTemplate>
            </MenuItem>
        </Menu>

I've been struggling with this a long time and can't figure it out. Can someone suggest the proper combination where I can pass the header text of a sub MenuItem to the ShellViewModel SelectServer method?

Thanks so much, Dave
How can a Caliburn.Micro sub menuitem click call an action on the containing view's viewmodel?
===

I have a top level menu in my ShellView and when selecting a sub MenuItem, I would like to call the following method on the ShellViewModel (a Conductor<IScreen>.Collection.AllActive).

        public void SelectServer(string pServerName)
        {
            mDefaultClaimServer = pServerName;
        }

The following does not work as no method gets called (I have tried various signatures and action parameters) -

        <Menu Name="menu1" DockPanel.Dock="Top">
            <MenuItem Header="Select Server" Name="ClaimServers">
                <MenuItem.ItemTemplate>
                    <DataTemplate>
                        <!-- we need this else we show the class name -->
                        <TextBlock Text="{Binding DisplayName}">
                            <ContentControl cal:Message.Attach="[Event Click] = [Action TxTester.ShellViewModel.SelectServer($Text)]"/>
                        </TextBlock>
                    </DataTemplate>
                </MenuItem.ItemTemplate>
            </MenuItem>
        </Menu>

The following does call the ShellViewModel SelectServer method but I get null for the text of the clicked sub MenuItem (I also tried many other signatures and action parameters) -

        <Menu Name="menu1" DockPanel.Dock="Top">
            <MenuItem Header="Select Server" Name="ClaimServers" cal:Message.Attach="SelectServer($this.Text)">
                <MenuItem.ItemTemplate>
                    <DataTemplate>
                        <!-- we need this else we show the class name -->
                        <TextBlock Text="{Binding DisplayName}" />
                    </DataTemplate>
                </MenuItem.ItemTemplate>
            </MenuItem>
        </Menu>

I've been struggling with this a long time and can't figure it out. Can someone suggest the proper combination where I can pass the header text of a sub MenuItem to the ShellViewModel SelectServer method?

Thanks so much, Dave