IArrayItemCommand Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public interface IArrayItemCommand
type IArrayItemCommand = interface
Public Interface IArrayItemCommand
Properties
DefaultActionPriority |
Double-clicking or pressing Enter on an array item will invoke the enabled command with the lowest DefaultActionPriority that is >= 0. For example, if you proffer "Run" and "Edit" array item commands, and you want double-clicking to invoke the Run command for items that enable it, but otherwise invoke the Edit command, you could define Run to have DefaultActionPriority 0 and Edit to have DefaultActionPriority 1. Return -1 for commands that should never be default-invokable. Note that if built-in actions like "Edit" are present, they may take priority over custom actions. (Built-in actions can be hidden via registration.) |
Description |
Gets an optional localized description of the command. This may be displayed in a tooltip. |
Title |
Gets a localized string representing the command. This should be short, like "Open" or "Apply". |
Methods
Invoke(IDictionary<String,Object>) |
Invokes the command on the item represented by |
IsEnabledAsync(IDictionary<String,Object>, CancellationToken) |
Computes whether the command should be enabled for the item represented by |