Hi every body,
I have big problem , i use "Microsoft.Expression.Interactions" "System.Windows.Interactivity" reference to invoke method on my view model section i give this error
Could not find method named 'GetTotallSellBetweenDate' on object of type 'ReportViewModel' that matches the expected signature.
xaml Code
<i:Interaction.Triggers>
<i:EventTrigger EventName="PreviewTextInput"><ic:CallMethodAction MethodName="NumberValidationTextBox" TargetObject="{Binding}"/></i:EventTrigger></i:Interaction.Triggers>
my method
private void GetTotallSellBetweenDate() { try { int sumprice = 0; _adapter.FillByBetweenDate(_dataset.DaftarBank, FirstDate, LastDate); for (int i = 0; i < _dataset.DaftarBank.Rows.Count; i++) { sumprice += Convert.ToInt32(_dataset.DaftarBank[i].KSumPrice); } _totallSell = sumprice; OnTotallSellChanged(); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }thanks