//fotos private async void TomarFotoLoad(TomarFotoSenaParticularView Window = null) { try { if (!((System.Windows.UIElement)(Window.TomarFotoSenaParticularWindow)).IsVisible) { return; } CamaraWeb = new WebCam(new WindowInteropHelper(Application.Current.Windows[0]).Handle); await CamaraWeb.InitializeWebCam(new List <System.Windows.Controls.Image> { Window.ImgSenaParticular }); if (SelectedLiberacion.ImagenEgreso != null) { ImagenEgreso = SelectedLiberacion.ImagenEgreso; CamaraWeb.AgregarImagenControl(Window.ImgSenaParticular, new Imagenes().ConvertByteToImageSource(ImagenEgreso)); } } catch (Exception ex) { StaticSourcesViewModel.ShowMessageError("Algo pasó..", "Ocurrió un error al cargar la pantalla para tomar foto.", ex); } }