Exemplo n.º 1
0
		public MainPageViewModel()
		{
			TakePhoto = new DelegatedCommand (TakePhotoHandler, s => this.picker.PhotosSupported && this.picker.IsCameraAvailable);
			PickPhoto = new DelegatedCommand (PickPhotoHandler, s => this.picker.PhotosSupported);
			TakeVideo = new DelegatedCommand (TakeVideoHandler, s => this.picker.VideosSupported && this.picker.IsCameraAvailable);
			PickVideo = new DelegatedCommand (PickVideoHandler, s => this.picker.VideosSupported);
		}
Exemplo n.º 2
0
 public MainPageViewModel()
 {
     TakePhoto = new DelegatedCommand(TakePhotoHandler, s => this.picker.PhotosSupported && this.picker.IsCameraAvailable);
     PickPhoto = new DelegatedCommand(PickPhotoHandler, s => this.picker.PhotosSupported);
     TakeVideo = new DelegatedCommand(TakeVideoHandler, s => this.picker.VideosSupported && this.picker.IsCameraAvailable);
     PickVideo = new DelegatedCommand(PickVideoHandler, s => this.picker.VideosSupported);
 }