public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::WordsTeacher.UwpClient.Models.WordCard data = args.NewValue as global::WordsTeacher.UwpClient.Models.WordCard; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::WordsTeacher.UwpClient.Models.WordCard was expected."); } this.SetDataRoot(data); this.Update(); }
private void Update_VM_CurrentWord(global::WordsTeacher.UwpClient.Models.WordCard obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_VM_CurrentWord_Word(obj.Word, phase); } } }
private void Update_VM(global::WordsTeacher.UwpClient.Models.WordCard obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_VM_Word(obj.Word, phase); this.Update_VM_Translation(obj.Translation, phase); this.Update_VM_Score(obj.Score, phase); } } }
// WordCardItems_obj2_Bindings public void SetDataRoot(global::WordsTeacher.UwpClient.Models.WordCard newDataRoot) { this.dataRoot = newDataRoot; }