Friday, May 25, 2012

Windows 8 - XAML: Implementation of Application.DoEvents method

This is how we can implement DoEvents method in Windows 8 , and VS 11.

public class Application

{
#region Static Methods
 

public static void DoEvents(object sender)
{
Window.Current.CoreWindow.Dispatcher.Invoke(CoreDispatcherPriority.Normal, (task, args) =>
{ }, sender, sender);

}

#endregion

}

No comments:

Post a Comment