/// <summary> /// Opens the specified arguments. /// </summary> /// <param name="args">The <see cref="MouseEventArgs"/> instance containing the event data.</param> /// <param name="childContent">Content of the child.</param> public void Open(MouseEventArgs args, RenderFragment <ContextMenuService> childContent) { var options = new ContextMenuOptions(); options.ChildContent = childContent; OpenTooltip(args, options); }
/// <summary> /// Opens the specified arguments. /// </summary> /// <param name="args">The <see cref="MouseEventArgs"/> instance containing the event data.</param> /// <param name="items">The items.</param> /// <param name="click">The click.</param> public void Open(MouseEventArgs args, IEnumerable <ContextMenuItem> items, Action <MenuItemEventArgs> click = null) { var options = new ContextMenuOptions(); options.Items = items; options.Click = click; OpenTooltip(args, options); }
/// <summary> /// Opens the tooltip. /// </summary> /// <param name="args">The <see cref="MouseEventArgs"/> instance containing the event data.</param> /// <param name="options">The options.</param> private void OpenTooltip(MouseEventArgs args, ContextMenuOptions options) { OnOpen?.Invoke(args, options); }