MVVM
XAML側 - CommandParameter="{Binding ElementName=MyTextBox, Path=Text}" - ViewModel側 - SayHelloCommand = new RelayCommand( mytext => MessageBox.Show("Hello, " + mytext), // 実行するコマンドの方 mytext => _counter % 2 == 0 // CanFuncの方(R…
XAML側 - CommandParameter="{Binding ElementName=MyTextBox, Path=Text}" - ViewModel側 - SayHelloCommand = new RelayCommand( mytext => MessageBox.Show("Hello, " + mytext), // 実行するコマンドの方 mytext => _counter % 2 == 0 // CanFuncの方(R…