I Want to write my own control, when the ctor is invoked, a MessageBox is shown.
public class Class1 { public Class1() { ShowDialog(); }
As MessageDialogue needs to run on the UI thread, can you try switching it to:
var dispatcher = Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher; dispatcher.RunAsync(DispatcherPriority.Normal, );