﻿public async void ShowInputDialogAsync()
{
    var dialog = new ContentDialog()
    {
        Title = "My Dialog Title", 
        PrimaryButtonText = "Ok", 
        SecondaryButtonText = "Not OK", 
        CloseButtonText = "Close"
    };

    // Pass the dialog if you need to hide it from the ViewModel.
    var viewModel = new MyViewModel(dialog); 

    // In our case the Content is a UserControl, but can be anything.
    dialog.Content = new ContentDialogInputExample() 
    {
        DataContext = viewModel
    };

    var result = await dialog.ShowAsync();
}
