Exemplo n.º 1
0
        protected ContextMenu CreateContextMenu()
        {
            ContextMenu menu = new ContextMenu();

            if (ContextMenuBuilder != null)
            {
                var items = ContextMenuBuilder.GetMenuItems(Component);
                foreach (var item in items)
                {
                    menu.Items.Add(item);
                }
            }
            return(menu);
        }