示例#1
0
        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];
            }
        }
示例#2
0
 public static bool GetEnableSelectionTracking(MenuTool source)
 {
     return((bool)source.GetValue(EnableSelectionTrackingProperty));
 }
示例#3
0
 public static string GetEnableSelection(MenuTool menu)
 {
     return(menu.GetValue(EnableSelectionProperty) as string);
 }
示例#4
0
 public static string GetSelectedItem(MenuTool menu)
 {
     return(menu.GetValue(SelectedItemProperty) as string);
 }