Use a ContentDialog rather than a MessageDialog. This will also allow customizing the dialog so you don't need to write a custom control unless you want to do something really crazy.
On Windows the MessageDialog is cancellable, but not on Windows Phone:
// Cancel the MessageDialog after 3 seconds on Windows
private async void Button_Click(object sender, RoutedEventArgs e)
{
MessageDialog md = new MessageDialog("Lorem ipsum dolor sit amet","Message Dialog Title");
var t = md.ShowAsync();
await Task.Delay(TimeSpan.FromSeconds(3));
// Ignored by the Windows Phone MessageDialog
t.Cancel();
}
You can cancel ContentDialog with similar code on Windows Phone. You can use Visual Studio's ContentDialog template to create a custom ContentDialog if needed.
private async void Button_Click(object sender, RoutedEventArgs e)
{
ContentDialog cd = new ContentDialog();
cd.Title = "Content Dialog";
cd.PrimaryButtonText = "Close";
cd.Content = "Lorem ipsum dolor sit amet";
var t = cd.ShowAsync();
await Task.Delay(TimeSpan.FromSeconds(3));
t.Cancel();
}