locked
Standard menu behavior (stringarray) - 1/18/2008 2:10 PM PST RRS feed

  • Question

  • By: stringarray


    Hi, just installed Expression Blend and I'm playing a little with it.
    I was wondering, how do I add a standard main menu to my app window, I found 
    the menu and menu items but it does not behave as I'm used to. The standard 
    behavior I'm looking for is: place control, add subitems, run application, 
    click on menu label so the complete menu is displayed with its subitems. Then 
    you can click on the subitems. For example the menu "File -> Open" we all 
    know.
    
    thanks a lot!
    Friday, February 22, 2008 4:23 PM

All replies

  • By: Brennon Williams


    Howdy,
    
    I am trying to work out where you are going wrong here as it is pretty much 
    as you describe in blend...
    
    Add the following XAML to check for yourself:
    
    	<Grid>
    		<Menu VerticalAlignment="Top" Height="25" Margin="0,0,306,0">
    			<MenuItem Header="File">
    				<MenuItem Header="Open">
    					<MenuItem Header="New"/>
    					<MenuItem Header="Old"/>
    				</MenuItem>
    				<Separator/>
    				<MenuItem Header="Close"/>
    			</MenuItem>
    			<MenuItem Header="Edit"/>
    		</Menu>
    	</Grid>
    
    
    
    
    
    When you add the MenuControl element, right click in the Objects and 
    Timeline category of the Interaction panel and you should see menu items in 
    the context menu such as "Add seperator" or "Add menu item". Remember to 
    activate (double click to get the yellow border) a menu item to add sub menu 
    items of it etc.
    
    HTH
    
    Cheers
    -- 
    Want to learn how to use Blend and visual studio?
    
    http://www.learnexpressionstudio.com
    http://www.expressionblend.com
    http://www.x-coders.com
    
    
    "stringarray" wrote:
    
    > Hi, just installed Expression Blend and I'm playing a little with it.
    > I was wondering, how do I add a standard main menu to my app window, I found 
    > the menu and menu items but it does not behave as I'm used to. The standard 
    > behavior I'm looking for is: place control, add subitems, run application, 
    > click on menu label so the complete menu is displayed with its subitems. Then 
    > you can click on the subitems. For example the menu "File -> Open" we all 
    > know.
    > 
    > thanks a lot!
    Monday, February 25, 2008 4:35 PM