Ejemplo n.º 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);
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
 }