示例#1
0
        public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state)
        {
            // Calls method to initialize services.
            this.InitializeServices();
            TakePhotoCommand.Execute(null);

            await base.OnNavigatedToAsync(parameter, mode, state);
        }
示例#2
0
        private async void OnHowYaWantPiczCommandExecuted()
        {
            try
            {
                string[] btnz   = { newPhoto, selectPhoto };
                var      choice = await _userDialogs.ActionSheetAsync("Got any broat pics?", "nah", null, null, btnz);

                if (choice == newPhoto)
                {
                    TakePhotoCommand.Execute();
                }
                else if (choice == selectPhoto)
                {
                    OpenPhotoCommand.Execute();
                }
            } catch (Exception ex)
            {
                Debug.Write(ex.Message + "  " + ex.InnerException);
            }
        }
示例#3
0
        public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state)
        {
            TakePhotoCommand.Execute(null);

            await base.OnNavigatedToAsync(parameter, mode, state);
        }
 public void ProcessPhoto(object image)
 {
     TakePhotoCommand.Execute(image);
 }