コード例 #1
0
        async void DataGrid_SelectionChanged(object sender, Syncfusion.SfDataGrid.XForms.GridSelectionChangedEventArgs e)
        {
            NavigationPage.SetHasNavigationBar(this, true);
            NavigationPage.SetHasBackButton(this, true);

            LiveHistoryViewModel viewModel = new LiveHistoryViewModel(e.AddedItems[0] as Patient);
            await Navigation.PushAsync(new HistoryView()
            {
                BindingContext = viewModel, Title = (e.AddedItems[0] as Patient).Name
            });
        }
コード例 #2
0
 void LiveViewPage_BindingContextChanged(object sender, EventArgs e)
 {
     liveVM = this.BindingContext as LiveHistoryViewModel;
     liveVM.LiveObservations.CollectionChanged -= LiveObservations_CollectionChanged;
     liveVM.LiveObservations.CollectionChanged += LiveObservations_CollectionChanged;
 }