共用方式為


CommandState.IsAvailable Property

Definition

If true, the command should be available for execution. IsEnabled and IsVisible properties control how the command should be represented in the UI.

public:
 property bool IsAvailable { bool get(); };
public bool IsAvailable { get; }
public bool IsAvailable { [System.Runtime.CompilerServices.IsReadOnly] get; }
member this.IsAvailable : bool
[<get: System.Runtime.CompilerServices.IsReadOnly>]
member this.IsAvailable : bool
Public ReadOnly Property IsAvailable As Boolean

Property Value

Attributes

Applies to