public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::UWPDiplomaOptions.Models.Choice data = args.NewValue as global::UWPDiplomaOptions.Models.Choice; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::UWPDiplomaOptions.Models.Choice was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::UWPDiplomaOptions.Models.Choice obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_ChoiceId(obj.ChoiceId, phase); this.Update_StudentId(obj.StudentId, phase); this.Update_StudentFirstName(obj.StudentFirstName, phase); this.Update_StudentLastName(obj.StudentLastName, phase); this.Update_FirstChoiceOptionTitle(obj.FirstChoiceOptionTitle, phase); this.Update_SecondChoiceOptionTitle(obj.SecondChoiceOptionTitle, phase); this.Update_ThirdChoiceOptionTitle(obj.ThirdChoiceOptionTitle, phase); this.Update_FourthChoiceOptionTitle(obj.FourthChoiceOptionTitle, phase); this.Update_Year(obj.Year, phase); this.Update_Term(obj.Term, phase); this.Update_SelectionDate(obj.SelectionDate, phase); } } }
// ManageChoicePage_obj3_Bindings public void SetDataRoot(global::UWPDiplomaOptions.Models.Choice newDataRoot) { this.dataRoot = newDataRoot; }