CommandParameter

XAML

                                                                                                                      • -

CommandParameter="{Binding ElementName=MyTextBox, Path=Text}"

                                                                                                                      • -

ViewModel側

                                                                                                                      • -

SayHelloCommand = new RelayCommand(
 mytext => MessageBox.Show("Hello, " + mytext), // 実行するコマンドの方
 mytext => _counter % 2 == 0 // CanFuncの方(RaiseCanExecuteChanged()から更新される)
);

                                                                                                                      • -
                                                                                                                      • -

SayHelloCommand = new RelayCommand( // FrameworkElementごと渡す
 t => t.Text = Counter.ToString()
 );

                                                                                                                      • -