public CameraPreview() { this.InitializeComponent(); ViewModel = DependencyCore.Instance.GetInstance <ICameraPreviewViewModel>(); ViewModel.CaptureElement = captureElement; DataContext = ViewModel; }
public CameraPreview() { this.InitializeComponent(); ViewModel = DependencyCore.Instance.GetInstance<ICameraPreviewViewModel>(); ViewModel.CaptureElement = captureElement; DataContext = ViewModel; }