Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Invoke Methods With "Microsoft.Expression.Interactions" "System.Windows.Interactivity" Error

$
0
0

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


Viewing all articles
Browse latest Browse all 18858


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>