uinput dialog uwp c#
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();
}
}
Also in C#:
- how to redirect to extern page in .net core
- unity inspector header attribute
- reference to gameobject in different scene unity
- c# read a webpage data
- how to raycast unit
- c sharp index of substring
- unity oncollisionenter2d
- Linq - Random Elements
- constructor in inherited class c#
- Exception thrown: 'System.FormatException' in mscorlib.dll dates
- linq in c#
- how to create a list c#
- sticky footer bootstrap 3
- check which activity in focus in android
- exception handling c# stack overflow
- convert generic to type c#
- c# string to character array
- c# while loop
- vb.net check if datatable has rows
- C# .net core convert to int round up
- C# resize window without title bar
- how to update modal class using dbfirst in asp.net core
- how to set progress openedge driver name for odbc connection c#