/// <summary> /// Initializes a new instance of the <see cref="MenuBase"/> class. /// </summary> /// <param name="interactionHandler">The menu interaction handler.</param> public MenuBase(IMenuInteractionHandler interactionHandler) { Contract.Requires <ArgumentNullException>(interactionHandler != null); InteractionHandler = interactionHandler; }
/// <summary> /// Initializes a new instance of the <see cref="ContextMenu"/> class. /// </summary> /// <param name="interactionHandler">The menu interaction handler.</param> public ContextMenu(IMenuInteractionHandler interactionHandler) : base(interactionHandler) { }
/// <summary> /// Initializes a new instance of the <see cref="ContextMenu"/> class. /// </summary> /// <param name="interactionHandler">The menu iteraction handler.</param> public ContextMenu(IMenuInteractionHandler interactionHandler) { Contract.Requires <ArgumentNullException>(interactionHandler != null); _interaction = interactionHandler; }
/// <summary> /// Initializes a new instance of the <see cref="ContextMenu"/> class. /// </summary> public ContextMenu() { _interaction = AvaloniaLocator.Current.GetService <IMenuInteractionHandler>() ?? new DefaultMenuInteractionHandler(); }
/// <summary> /// Initializes a new instance of the <see cref="MenuBase"/> class. /// </summary> /// <param name="interactionHandler">The menu interaction handler.</param> public MenuBase(IMenuInteractionHandler interactionHandler) { InteractionHandler = interactionHandler ?? throw new ArgumentNullException(nameof(interactionHandler)); }
public Toolbar(IMenuInteractionHandler interactionHandler) : base(interactionHandler) { }
public MenuFlyoutPresenter(IMenuInteractionHandler menuInteractionHandler) : base(menuInteractionHandler) { }