private void Update_ViewModel_SelectedItem(global::MyList.ListItem obj, int phase) { if ((phase & ((1 << 0) | NOT_PHASED | DATA_CHANGED)) != 0) { XamlBindingSetters.Set_Windows_UI_Xaml_Controls_ContentControl_Content(this.obj7, (global::System.Object) this.LookupConverter("contentConverter").Convert(obj, typeof(global::System.Object), null, null), null); } }
public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::MyList.ListItem data = args.NewValue as global::MyList.ListItem; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::MyList.ListItem was expected."); } this.SetDataRoot(data); this.Update(); }
private void Update_current(global::MyList.ListItem obj, int phase) { this.bindingsTracking.UpdateChildListeners_current(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_current_Title_(obj.Title_, phase); this.Update_current_Detail_(obj.Detail_, phase); this.Update_current_Date_(obj.Date_, phase); this.Update_current_path(obj.path, phase); } } }
public void UpdateChildListeners_current(global::MyList.ListItem obj) { if (obj != cache_current) { if (cache_current != null) { ((global::System.ComponentModel.INotifyPropertyChanged)cache_current).PropertyChanged -= PropertyChanged_current; cache_current = null; } if (obj != null) { cache_current = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_current; } } }
public void UpdateChildListeners_(global::MyList.ListItem obj) { MainPage_obj12_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { if (bindings.dataRoot != null) { ((global::System.ComponentModel.INotifyPropertyChanged)bindings.dataRoot).PropertyChanged -= PropertyChanged_; } if (obj != null) { bindings.dataRoot = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_; } } }
// Update methods for each path node used in binding steps. private void Update_(global::MyList.ListItem obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_isCompleted(obj.isCompleted, phase); this.Update_path(obj.path, phase); this.Update_Title_(obj.Title_, phase); this.Update_DateForm(obj.DateForm, phase); } } if ((phase & ((1 << 0) | NOT_PHASED)) != 0) { XamlBindingSetters.Set_Windows_UI_Xaml_FrameworkElement_Tag(this.obj17, obj, null); XamlBindingSetters.Set_Windows_UI_Xaml_FrameworkElement_Tag(this.obj18, obj, null); XamlBindingSetters.Set_Windows_UI_Xaml_FrameworkElement_Tag(this.obj19, obj, null); } }
public void PropertyChanged_ViewModel_SelectedItem(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { EditItem_obj1_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { string propName = e.PropertyName; global::MyList.ListItem obj = sender as global::MyList.ListItem; if (global::System.String.IsNullOrEmpty(propName)) { } else { switch (propName) { default: break; } } } }
public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj12_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { string propName = e.PropertyName; global::MyList.ListItem obj = sender as global::MyList.ListItem; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_isCompleted(obj.isCompleted, DATA_CHANGED); bindings.Update_path(obj.path, DATA_CHANGED); bindings.Update_Title_(obj.Title_, DATA_CHANGED); bindings.Update_DateForm(obj.DateForm, DATA_CHANGED); } } else { switch (propName) { case "isCompleted": { if (obj != null) { bindings.Update_isCompleted(obj.isCompleted, DATA_CHANGED); } break; } case "path": { if (obj != null) { bindings.Update_path(obj.path, DATA_CHANGED); } break; } case "Title_": { if (obj != null) { bindings.Update_Title_(obj.Title_, DATA_CHANGED); } break; } case "DateForm": { if (obj != null) { bindings.Update_DateForm(obj.DateForm, DATA_CHANGED); } break; } default: break; } } } }
// MainPage_obj12_Bindings public void SetDataRoot(global::MyList.ListItem newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); this.dataRoot = newDataRoot; }
public void PropertyChanged_current(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { EditItem_obj1_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { string propName = e.PropertyName; global::MyList.ListItem obj = sender as global::MyList.ListItem; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_current_Title_(obj.Title_, DATA_CHANGED); bindings.Update_current_Detail_(obj.Detail_, DATA_CHANGED); bindings.Update_current_Date_(obj.Date_, DATA_CHANGED); bindings.Update_current_path(obj.path, DATA_CHANGED); } } else { switch (propName) { case "Title_": { if (obj != null) { bindings.Update_current_Title_(obj.Title_, DATA_CHANGED); } break; } case "Detail_": { if (obj != null) { bindings.Update_current_Detail_(obj.Detail_, DATA_CHANGED); } break; } case "Date_": { if (obj != null) { bindings.Update_current_Date_(obj.Date_, DATA_CHANGED); } break; } case "path": { if (obj != null) { bindings.Update_current_path(obj.path, DATA_CHANGED); } break; } default: break; } } } }