Struct CommandContext
Provides context for a Command that is being invoked.
public record struct CommandContext : IEquatable<CommandContext>
- Implements
- Inherited Members
Remarks
To define a Command that is invoked with context, use View.AddCommand(Command,Func<CommandContext,System.Nullable<bool>>).
Constructors
- CommandContext(Command, Key?, KeyBinding?, object?)
Initializes a new instance of CommandContext with the specified Command,
Properties
- Data
Arbitrary data.
- KeyBinding
The KeyBinding that was used to invoke the Command, if any.