What is the alternative of MethodInvoker in wpf
In windows form
I use this code
private void msg()
{
if (this.InvokeRequired)
this.Invoke(new MethodInvoker(msg));
else
textBox1.Text = textBox1.Text + Environment.NewLine + " >> " + readData;
In WPF I am using Dispatcher.CheckAccess()
instead of this.InvokeRequired
but there is no Dispatcher.MethodInvoke()
or Dispatcher.Inovke.MethodInvoke()
in wpf
If someone convert mycode to WPF it will be great
Edit:
Unknown Characters