namespace Terminal.Gui.Input; #pragma warning disable CS1574, CS0419 // XML comment has cref attribute that could not be resolved /// /// Provides context for a invocation. /// /// . #pragma warning restore CS1574, CS0419 // XML comment has cref attribute that could not be resolved public record struct CommandContext : ICommandContext { /// /// Initializes a new instance with the specified , /// /// /// /// public CommandContext (Command command, View? source, TBinding? binding) { Command = command; Binding = binding; Source = source; } /// public Command Command { get; set; } /// public View? Source { get; set; } /// /// The keyboard or mouse minding that was used to invoke the , if any. /// public TBinding? Binding { get; set; } }