I would like to get some user inputs for my app like Name, DOB, etc from a modal window
for this I need a dialog to be displayed which would contain the textboxes and other controls.
Normally in WinForms/WPF I would create a class inherited from the Form/Window class and use the Show/ShowDialog method to present the form to the user
How do I achieve this behavior in Windows 8 metro apps using XAML/C# ?
I have looked at the MessageDialog class under the Windows.UI.Popups namespace
but its for showing only message like the classic MessageBox.
I have looked at another CoreWindowFlyout class and also not sure if that can be used for the behavior I am expecting.
I would like to get some user inputs for my app like Name, DOB,
Share
You can simply create a custom
UserControlwith all the required inputs (such asTextBoxes) and then show it usingPopupclass.for example: