/// <summary>
        /// Gets the map context menu items core.
        /// </summary>
        /// <param name="contextMenuArugments">The context menu arugments.</param>
        /// <returns></returns>
        protected virtual Collection <MenuItem> GetMapContextMenuItemsCore(GetMapContextMenuParameters contextMenuArugments)
        {
            Collection <MenuItem> resultMenuItems = new Collection <MenuItem>();

            foreach (var uiPlugin in GetActiveUIPlugins().Reverse())
            {
                var menuItems = uiPlugin.GetMapContextMenuItems(contextMenuArugments);
                if (menuItems.Count > 0)
                {
                    resultMenuItems.Add(new MenuItem()
                    {
                        Header = "--"
                    });
                    foreach (var menuItem in menuItems.Reverse())
                    {
                        resultMenuItems.Add(menuItem);
                    }
                }
            }

            GottenMapContextMenuItemsUIPluginManagerEventArgs e = new GottenMapContextMenuItemsUIPluginManagerEventArgs(resultMenuItems);

            OnGottenMapContextMenuItems(e);
            return(e.MenuItems);
        }
        /// <summary>
        /// Raises the <see cref="E:GotMapContextMenuItems" /> event.
        /// </summary>
        /// <param name="e">The <see cref="GottenMapContextMenuItemsUIPluginManagerEventArgs" /> instance containing the event data.</param>
        protected virtual void OnGottenMapContextMenuItems(GottenMapContextMenuItemsUIPluginManagerEventArgs e)
        {
            EventHandler <GottenMapContextMenuItemsUIPluginManagerEventArgs> handler = GottenMapContextMenuItems;

            if (handler != null)
            {
                handler(this, e);
            }
        }