Skip to main content
Question

How are FMEOMessageLevel's CallBack supported in WPF?

  • September 13, 2014
  • 0 replies
  • 16 views

FME privode C# codes  , as follows:

 

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?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.