Exemple #1
0
        public CameraPage()
        {
            InitializeComponent();

            BindingContext = viewModel = new CameraViewModel();

            cameraView.OnAvailable += (_, available) => btnStart.IsEnabled = available;

            cameraView.PreviewAvailabe += (_, e) =>
                                          viewModel.PreviewCallback(e.Data, e.PreviewSize);
        }