2
Silverlight ToolkitのNumericUpDownコントロールがMVVMプロパティとRelayCommandトリガセット(任意のイベント)にバインドされている場合、NumericUpDownがMVVMプロパティ値を変更する前にコマンドが呼び出されます。これは...あなたはあなたの方法/アクション/コマンドを使用して新しい(変更)の値を使用することはできません、意味Silverlight NumericUpDownが値を変更する前のMVVMリレーコマンドトリガー
XAML:この中
DoSomethingCommand = new RelayCommand(() =>
{
OtherRegisterForm = RegisterForm;
});
:
<inputToolkit:NumericUpDown x:Name="testNum" Value="{Binding RegisterForm, Mode=TwoWay}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="ValueChanged">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding DoSomethingCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</inputToolkit:NumericUpDown>
MVVM(C#の)場合、v値0を持ち、NumericUpDownコントロールに新しい値123を入力すると、MVVMプロパティの "RaisePropertyChange"イベントの前に "DoSomethingCommand"がトリガーされます。 "OtherRegisterForm"は123でなく0になります。
この方法を使用する方法はありますか?