Beispiel #1
0
 private async void button_Click(object sender, RoutedEventArgs e)
 {
     InTheHand.Storage.Pickers.FileOpenPicker fop = new InTheHand.Storage.Pickers.FileOpenPicker();
     fop.FileTypeFilter.Add(".txt");
     fop.FileTypeFilter.Add(".cs");
     var file = await fop.PickSingleFileAsync();
 }
Beispiel #2
0
        private async void AppBarButton_Click(object sender, RoutedEventArgs e)
        {
            InTheHand.Storage.Pickers.FileOpenPicker fop = new InTheHand.Storage.Pickers.FileOpenPicker();
            var file = await fop.PickSingleFileAsync();

            /*CameraCaptureUI ccu = new CameraCaptureUI();
            *  InTheHand.Storage.StorageFile sf = await ccu.CaptureFileAsync(CameraCaptureUIMode.Photo);
            *  System.Diagnostics.Debug.WriteLine(sf.Path);*/
            /*
             * var store = await InTheHand.ApplicationModel.Calls.PhoneCallManager.RequestStoreAsync();
             * Guid g = await store.GetDefaultLineAsync();
             * var line = await InTheHand.ApplicationModel.Calls.PhoneLine.FromIdAsync(g);
             * line.Dial("1234", "Testing");
             *
             * InTheHand.UI.Popups.MessageDialog md = new InTheHand.UI.Popups.MessageDialog("message", "title");
             * md.Commands.Add(new InTheHand.UI.Popups.UICommand("One", (c) => { System.Diagnostics.Debug.WriteLine("One"); }));
             * md.Commands.Add(new InTheHand.UI.Popups.UICommand("Two", (c) => { System.Diagnostics.Debug.WriteLine("Two"); }));
             *
             *  await md.ShowAsync();
             * InTheHand.ApplicationModel.DataTransfer.DataTransferManager.ShowShareUI();*/
        }
Beispiel #3
0
 private async void button_Click(object sender, RoutedEventArgs e)
 {
     InTheHand.Storage.Pickers.FileOpenPicker fop = new InTheHand.Storage.Pickers.FileOpenPicker();
     fop.FileTypeFilter.Add(".txt");
     fop.FileTypeFilter.Add(".cs");
     var file = await fop.PickSingleFileAsync();
 }