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
}
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