private static void menu_Opening(object sender, Infragistics.Windows.Ribbon.Events.ToolOpeningEventArgs e) { MenuTool menu = sender as MenuTool; object selectedItem = menu.GetValue(MenuToolProperties.SelectedItemProperty); if (selectedItem != null) { var dd = menu.Items[0]; } }
public static bool GetEnableSelectionTracking(MenuTool source) { return((bool)source.GetValue(EnableSelectionTrackingProperty)); }
public static string GetEnableSelection(MenuTool menu) { return(menu.GetValue(EnableSelectionProperty) as string); }
public static string GetSelectedItem(MenuTool menu) { return(menu.GetValue(SelectedItemProperty) as string); }