Skip to main content
Version: 4.2

CardAction

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes one command displayed by an ActionCard.

public class CardAction : INotifyPropertyChanged

A command belongs to one collection at a time. Name identifies the command in application code; the client sends a separate stable identifier, so duplicate names remain distinguishable.

Example:

card.Actions.Add(new CardAction { Name = "run", Text = "Run now", Primary = true });
card.ActionClick += (sender, e) => MessageBox.Show(e.Action.Name);

Constructors​

Instance member CardAction()​

Initializes a new instance of CardAction.

Properties​

Instance member Enabled​

Boolean: Gets or sets whether the user can invoke the command. (Default: True)

Instance member Icon​

String: Gets or sets image source URL or theme image name for the command. (Default: "")

Instance member Name​

String: Gets or sets application-defined command identifier retained on the server. (Default: "")

Instance member Primary​

Boolean: Gets or sets whether the command uses the primary action appearance. (Default: False)

Instance member Text​

String: Gets or sets plain-text command label. (Default: "")

Events​

Instance member PropertyChanged​

PropertyChangedEventHandler Occurs after a property changes.