/// <summary> /// Will be called when a context menu of a sub entry has been generated. This implementation adds the standard menu entries for selected objects. /// </summary> /// <param name="sender">The ControlCenter entry that has its context menu created</param> /// <param name="toManipulate">The context menu, which may be manipulated</param> protected void OnCreateSubContextMenue(IGeoObjectShowProperty sender, List <MenuWithHandler> toManipulate) { ContextMenuSource = sender.GetGeoObject(); toManipulate.Add(MenuWithHandler.Separator); toManipulate.AddRange(MenuResource.LoadMenuDefinition("MenuId.SelectedObject", false, Frame.CommandHandler)); }
void OnCreateContextMenueChild(IGeoObjectShowProperty sender, List <MenuWithHandler> toManipulate) { ContextMenuSource = sender.GetGeoObject(); MenuWithHandler[] toAdd = MenuResource.LoadMenuDefinition("MenuId.SelectedObject", false, Frame.CommandHandler); toManipulate.AddRange(toAdd); }