Exemple #1
0
        public override void OnViewModelLoadedOverride()
        {
            BindingHost.SetIsEnabledBinding(_tableView, nameof(ViewModel.IsEnabled));

            _tableView.AddCheckableCellWithDescription(PowerPlannerResources.GetString("Settings_GradeOptions_GpaType_Standard.Text"), PowerPlannerResources.GetString("Settings_GradeOptions_GpaType_StandardExplanation.Text"), BindingHost, nameof(ViewModel.IsStandard));

            _tableView.AddCheckableCellWithDescription(PowerPlannerResources.GetString("Settings_GradeOptions_GpaType_PassFail.Text"), PowerPlannerResources.GetString("Settings_GradeOptions_GpaType_PassFailExplanation.Text"), BindingHost, nameof(ViewModel.IsPassFail));

            _tableView.Compile();

            base.OnViewModelSetOverride();
        }