Пример #1
0
 public async void InputText_Click(object sender, RoutedEventArgs e)
 {
     var bananas = await ModalView.InputTextDialogAsync(
         "Dinges",
         "Danges"
         );
 }
Пример #2
0
        public async void InputText_Click(object sender, RoutedEventArgs e)
        {
            Debug.WriteLine("Opening Text Input Dialog.");
            var inputText = await ModalView.InputTextDialogAsync(
                "What whas your point actually?",
                "I just wanted to criticize the existing view of quantum mechanics by explaining how one could, in principle, create a superposition in a large-scale system by making it dependent on a quantum particle that was in a superposition, and end up in an ridiculous state.\n\nAnd I hate cats anyway..."
                );

            Debug.WriteLine(string.Format("Text Input Dialog was closed with {0}.", inputText));
        }