CardAction
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes one command displayed by an ActionCard.
- C#
- VB.NET
public class CardAction : INotifyPropertyChanged
Public Class CardAction
Inherits 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
CardAction()
Initializes a new instance of CardAction.
Properties
Enabled
Boolean: Gets or sets whether the user can invoke the command. (Default: True)
Icon
String: Gets or sets image source URL or theme image name for the command. (Default: "")
Name
String: Gets or sets application-defined command identifier retained on the server. (Default: "")
Primary
Boolean: Gets or sets whether the command uses the primary action appearance. (Default: False)
Text
String: Gets or sets plain-text command label. (Default: "")
Events
PropertyChanged
PropertyChangedEventHandler Occurs after a property changes.