private void schedulerControl_PopupMenuShowing(object sender, DevExpress.Xpf.Scheduler.SchedulerMenuEventArgs e)
        {
            BarSubItem subItem = e.Menu.Items.Where(x => x is BarSubItem && ((BarSubItem)x).Name == SchedulerMenuItemName.SwitchViewMenu).Cast <BarSubItem>().FirstOrDefault();

            if (subItem == null)
            {
                return;
            }
            BarButtonItem newItem = new BarButtonItem {
                Content = "Agenda View", Glyph = new BitmapImage(new Uri("pack://application:,,,/Resources/Report.png", UriKind.Absolute))
            };

            newItem.ItemClick += OnSwitchToAgendaViewItemClick;
            subItem.Items.Add(newItem);
        }
示例#2
0
 private void scheduler_PopupMenuShowing(object sender, DevExpress.Xpf.Scheduler.SchedulerMenuEventArgs e)
 {
     //  e.Menu.Items.Clear();
 }