/// <summary>
 /// Factory method to instantiate the action.
 /// </summary>
 /// <param name="actionID">The logical action identifier to associate with this action.</param>
 /// <param name="path">The path to the action in the toolbar model.</param>
 /// <param name="flags">Flags specifying how the button should respond to being clicked.</param>
 /// <param name="resolver">The action resource resolver used to resolve the action path and icons.</param>
 /// <returns>A <see cref="ClickAction"/>.</returns>
 protected override ClickAction CreateAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resolver)
 {
     return(new DropDownButtonAction(actionID, path, flags, resolver));
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="actionID">The fully qualified action ID.</param>
 /// <param name="path">The action path.</param>
 /// <param name="flags">Flags that control the style of the action.</param>
 /// <param name="resourceResolver">A resource resolver that will be used to resolve text and image resources.</param>
 public ClickAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resourceResolver)
     : base(actionID, path, resourceResolver)
 {
     _flags   = flags;
     _checked = false;
 }
示例#3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="actionID"></param>
 /// <param name="path"></param>
 /// <param name="resourceResolver"></param>
 public TextBoxAction(string actionID, ActionPath path, IResourceResolver resourceResolver)
     : base(actionID, path, resourceResolver)
 {
 }
 /// <summary>
 /// Creates the <see cref="ClickAction"/> represented by this attribute.
 /// </summary>
 /// <param name="actionID">The logical action ID.</param>
 /// <param name="path">The action path.</param>
 /// <param name="flags">Flags that specify the click behaviour of the action.</param>
 /// <param name="resolver">The object used to resolve the action path and icons.</param>
 protected abstract ClickAction CreateAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resolver);
示例#5
0
 /// <summary>.
 /// Constructor
 /// </summary>
 /// <param name="actionID">The fully qualified action ID.</param>
 /// <param name="path">The action path.</param>
 /// <param name="flags">Flags that control the style of the action.</param>
 /// <param name="resourceResolver">A resource resolver that will be used to resolve text and image resources.</param>
 public MenuAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resourceResolver)
     : base(actionID, path, flags, resourceResolver)
 {
 }