Skip to main content
Question

How are FMEOMessageLevel's CallBack supported in WPF?

  • September 13, 2014
  • 0 replies
  • 4 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?

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings