Check out example codes for "uinput dialog uwp c#". It will help you in understanding the concepts better.

Code Example 1

private async void Button_Click(object sender, RoutedEventArgs e)
{
    TextBox input = new TextBox()
    {
        Height = (double)App.Current.Resources["TextControlThemeMinHeight"],
        PlaceholderText = "Display Text"
    };
    ContentDialog dialog = new ContentDialog()
    {
        Title = "Input Dialog",
        MaxWidth = this.ActualWidth,
        PrimaryButtonText = "OK",
        SecondaryButtonText = "Cancel",
        Content = input
    };
    ContentDialogResult result = await dialog.ShowAsync();
    if (result == ContentDialogResult.Primary)
    {
        input = (TextBox)dialog.Content;
        await new Windows.UI.Popups.MessageDialog(input.Text).ShowAsync();
    }
}

Learn ReactJs, React Native from akashmittal.com