menuitem

Using a DataTemplate for a MenuItem causes extra space on the left side to appear?

Whenever I attach a DataTemplate to a MenuItem, each generated menu item gets an extra space on the left side. This extra space looks as wide as the space reserved for the check, which I use. Building a menu manually without a DataTemplate doesn't add this extra space. As an extra wrinkle, if I click on this extra space the menu item goe...

CSS Suckerfish and active top items

Brain freeze here. What I want to do is have the Suckerfish drop down menu link to be active on the current page in the drop down as well as the top item. I.e. below, in the Articles menu item, I'd like to have the top item "Articles" active at the same time that either Categoryone or Categorytwo is active. (Archives is a single level ...

Get visual underlying ItemTemplate of an ItemsControl in ContextMenu.MenuItem.Click event handler?

Hello! First take a look at my code: <ListBox ItemsSource="{Binding}" SelectionMode="Multiple" ItemTemplate="{StaticResource ContactTemplate}"> <ListBox.ContextMenu> <ContextMenu> <MenuItem Name="mnuEdit" Header="_Edit" Click="MenuItem_Click" /> </ContextMenu> </ListBox.ContextMenu> </ListBox> ...

Do not close Menu on selection of certain items in Compact Framework

Is it possible to leave a Menu open after a selection/check of certain menu items in Compact Framework? I found an answer to this but it doesn't work for Compact Framework. I want to check a menu item but have it stay open after I check the item. ...

NSMenuItem enabled state, dynamic naming and target action.

Hi Guys I am having a problem with my app's menu. I want a few items in the menu to be greyed out depending on some BOOL variables. Also, I want some of my menu items to get names depending on some BOOL variables and thereby execute different functions depending on what the menu item name is. Is this possible? As using Interface Build...

Trying to access JSON menu in another function to build out a left side navigation

Hi All. I am relatively new to Jquery and JSON and this is my first post here, please bear with me. I have a JSON menu string with an array of three items (name, url, id - our internal page id number) and the top level navigation builds out fine. I loop through the top level items and call a recursive function to get the sub menus. ...

Having select options in 2 drop down menu lists?

I want to have 2 menu lists and you must select an option from each list then click the next button taking you to another page. Here's a link: http://home.comcast.net/~techjunkee/ ...

Unable to set System.Windows.Controls.MenuItem.Icon thru a setter

Hi I am trying to have a MenuItem.Icon set thru a style setter: <Style x:Key="MenuItem_Delete" TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}"> <Setter Property="Header" Value="_Delete"/> <Setter Property="MenuItem.Icon"> <Setter.Value> <Image Source="Resources/Delete.png"/> ...

WPF Menuitem Border

Hey everyone, I've run into a problem trying to implement a Menu and can't figure out what is going on. I'm trying to make a single-layer menu using the Menu control. Here is my menu code: <Menu DockPanel.Dock="Top" Height="22" Name="menu1" VerticalAlignment="Top" Background="#FF325170"> <MenuItem Header="Featured" Style="{Static...

dijit.MenuItem values are auto-highlighted... how to stop this???

Hello, I am using Dojo 1.3.1 and have a dijit.Menu with several dijit.MenuItem items. The menu is displayed as a context menu when the user right-clicks on items that were bound to the menu using (dijit.byId("contextmenu_pf")).bindDomNode(...). All works well, but frequently when the menu is displayed, one or more of the menu items ar...

MenuKey functionality in OSX 10.5 and 10.6?

I have an OLD mac C/C++ program that I'm maintaining. It's still based on rsrc files and OS 9 system calls. (Yes, yes, I know. I'm TRYING to drag my company into the 21st century, but the other engineer is still using OSX10.3.9! please pity me) I'm trying to get modifier shortcut functionality. Cmd-S works, for example. However, Opt-Cmd...

WPF ContextMenu Design. How to set Background in WPF MenuItem?

I create popup menu like this. <DockPanel.ContextMenu> <ContextMenu Background="#CD252220" Opacity="0.95" Foreground="LightGray" BorderBrush="DarkGray"> <MenuItem Header="_Save Image..." x:Name="btSave" IsEnabled="False" Click="btSave_Click" Style="{StaticResource MyStyle}"> <MenuItem.Icon> <Image...

In applescript, how can I access the keyboard shortcut of a menu item?

I'm trying to figure out the keyboard shortcut (e.g., shift+cmd+S) of a given menu item in Applescript. The "Probe Menu Bar" script has helped me to access the menu items and even inspect their properties and such, but I've been unable to discover which of these will print out the keyboard shortcut. The probe script is like this: tell ...

How to disable WPF Menu's transparency?

I am writing an WPF application with a menu. it needs 2 to 4 seconds to show the submenu. during that 2~4 seconds, the submenu showed in transparency state. So here is the Question, How Can I disable the transparency state of the menu? or something to avoid the 2~4 seconds' delay? Thanks in advance. ...

Dynamically adding ToolStripMenuItems to a MenuStrip (C#/ Winforms)

I have my solution implemented (basic solution) and I'm happy. Problem is when I add new items to a ToolStripItemCollection using the 'Add' method, I get a few overloads ... the meaningful one being a string parameter, an image parameter and an EventHandler parameter. Because my drop down list is going to be serving as a dynamic histo...

asp.net (c#) menu/menuItem event/event-handling

Is it possible to use asp.net standard Menu (server-control) for tasks other than navigation? For example: I want to use asp.net menu to add a button control to the asp.net panel (server-control). This idea of mine is basically came from the winforms environment, where there are events and event-handlers for menu and menu-items. ...

How do I set MenuItem's Icon using ItemContainerStyle

I'm following the example here of binding a MenuItem to a data object. <Menu Grid.Row="0" KeyboardNavigation.TabNavigation="Cycle" ItemsSource="{Binding Path=MenuCommands}"> <Menu.ItemContainerStyle> <Style> <Setter Property="MenuItem.Header" Value="{Binding Path=DisplayName}"/> ...

WPF Menu disappears when nested too deeply

I'm trying to create a nested menu hierarchy from the main menu bar. For example, the main menu bar would contain a "Goto" menuitem that could be navigated as "Goto" -> "Chapter" -> "Chapter Name" -> "Subchapter name". The hierachy below "Chapter" needs to be added dynamically. When I do this, the menu disappears when it tries to di...

How can I disable and gray the top level menu item using MFC

I have a dialog application in which I want to have clickable menu items at the top of the dialog. These items do not show a drop down menu but actually run the associated commands. I did this by setting Popup=False in the dialogs properties and assigning a message-id but my problem is not having the ability to disable the item properl...

VS2008 Web Service Project missing Data Menu and Data Sources

VS2008 Web Service Project missing Data Menu and Data Sources: Simply invisible, Can't find it and just cant add a connection to my database using that wizard. why is it missing? ...