public void LogCallBack(FMEOMessageLevel severity, String message)
{
// Following code to ensure thread safety to avoid the
if (this.LogOutputTextBox.InvokeRequired)
{
Invoke(new FMEO_LogCallbackFunc(LogCallBack),
FMEOMessageLevel.Inform,
message);
}
else
{
LogOutputTextBox.AppendText(message + Environment.NewLine);
}
}
I need to port this to WPF, but InvokeRequired has been removed by wpf? How to rewrite in WPF?