ToolStripItem.Command Özellik
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Not
Bu önizleme API'sini kullanmak için, EnablePreviewFeatures
özelliğini proje dosyanızda True
olarak ayarlayarak projenizdeki önizleme özelliklerini etkinleştirmeniz gerekir. Daha fazla bilgi için bkz. https://aka.ms/dotnet-preview-features.
ToolStripItem'ın Click olayı çağrıldığında yönteminin çağrılacağını alır veya ayarlar.ICommandExecute(Object)
public:
property System::Windows::Input::ICommand ^ Command { System::Windows::Input::ICommand ^ get(); void set(System::Windows::Input::ICommand ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public System.Windows.Input.ICommand? Command { get; set; }
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
[System.Runtime.Versioning.RequiresPreviewFeatures]
public System.Windows.Input.ICommand Command { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
member this.Command : System.Windows.Input.ICommand with get, set
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
member this.Command : System.Windows.Input.ICommand with get, set
Public Property Command As ICommand
- Öznitelikler
Ürün | Sürümler |
---|---|
Windows Desktop | 7, 8, 9, 10 |
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: