CommandBinding 建構函式

定義

初始化 CommandBinding 類別的新執行個體。

多載

名稱 Description
CommandBinding()

初始化 CommandBinding 類別的新執行個體。

CommandBinding(ICommand)

透過指定的 CommandBinding初始化類別的新實例ICommand

CommandBinding(ICommand, ExecutedRoutedEventHandler)

透過使用指定的CommandBindingICommand事件處理程序初始化該類別的新Executed實例。

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

透過使用指定的CommandBinding及事件ICommandExecuted處理程序初始化該類別的新CanExecute實例。

CommandBinding()

初始化 CommandBinding 類別的新執行個體。

public:
 CommandBinding();
public CommandBinding();
Public Sub New ()

另請參閱

適用於

CommandBinding(ICommand)

透過指定的 CommandBinding初始化類別的新實例ICommand

public:
 CommandBinding(System::Windows::Input::ICommand ^ command);
public CommandBinding(System.Windows.Input.ICommand command);
new System.Windows.Input.CommandBinding : System.Windows.Input.ICommand -> System.Windows.Input.CommandBinding
Public Sub New (command As ICommand)

參數

command
ICommand

這是用來建立新指令 RoutedCommand 的基礎。

適用於

CommandBinding(ICommand, ExecutedRoutedEventHandler)

透過使用指定的CommandBindingICommand事件處理程序初始化該類別的新Executed實例。

public:
 CommandBinding(System::Windows::Input::ICommand ^ command, System::Windows::Input::ExecutedRoutedEventHandler ^ executed);
public CommandBinding(System.Windows.Input.ICommand command, System.Windows.Input.ExecutedRoutedEventHandler executed);
new System.Windows.Input.CommandBinding : System.Windows.Input.ICommand * System.Windows.Input.ExecutedRoutedEventHandler -> System.Windows.Input.CommandBinding
Public Sub New (command As ICommand, executed As ExecutedRoutedEventHandler)

參數

command
ICommand

這是用來建立新指令 RoutedCommand 的基礎。

executed
ExecutedRoutedEventHandler

新事件Executed的處理員RoutedCommand

適用於

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

透過使用指定的CommandBinding及事件ICommandExecuted處理程序初始化該類別的新CanExecute實例。

public:
 CommandBinding(System::Windows::Input::ICommand ^ command, System::Windows::Input::ExecutedRoutedEventHandler ^ executed, System::Windows::Input::CanExecuteRoutedEventHandler ^ canExecute);
public CommandBinding(System.Windows.Input.ICommand command, System.Windows.Input.ExecutedRoutedEventHandler executed, System.Windows.Input.CanExecuteRoutedEventHandler canExecute);
new System.Windows.Input.CommandBinding : System.Windows.Input.ICommand * System.Windows.Input.ExecutedRoutedEventHandler * System.Windows.Input.CanExecuteRoutedEventHandler -> System.Windows.Input.CommandBinding
Public Sub New (command As ICommand, executed As ExecutedRoutedEventHandler, canExecute As CanExecuteRoutedEventHandler)

參數

command
ICommand

這是用來建立新指令 RoutedCommand 的基礎。

executed
ExecutedRoutedEventHandler

新事件Executed的處理員RoutedCommand

canExecute
CanExecuteRoutedEventHandler

新事件CanExecute的處理員RoutedCommand

適用於