public FaceDetectionControl() { _trainImages = new ObservableCollection <FaceImage>(); _testImages = new ObservableCollection <FaceImage>(); _faceDetectionRepository = new FdFaceDetection(); _faceDetectionViewModel = new FaceDetectionViewModel(); this.DataContext = _faceDetectionViewModel; InitializeComponent(); }
public FaceDetectionPage() { InitializeComponent(); MessagingService.Current.Subscribe <MessagingServiceAlert>(MessagingKeys.CognitiveServiceErrorMessage, (delegate(IMessagingService service, MessagingServiceAlert alert) { DisplayAlert(alert.Title, alert.Message, alert.Cancel); })); BindingContext = vm = new FaceDetectionViewModel(Navigation); }