public DetailPage_obj1_Bindings TryGetBindingObject() { DetailPage_obj1_Bindings bindingObject = null; if (weakRefToBindingObj != null) { weakRefToBindingObj.TryGetTarget(out bindingObject); if (bindingObject == null) { weakRefToBindingObj = null; ReleaseAllListeners(); } } return(bindingObject); }
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch (connectionId) { case 1: // DetailPage.xaml line 25 { global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; DetailPage_obj1_Bindings bindings = new DetailPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; } return(returnValue); }
public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { DetailPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::StartFinance.ViewModels.DetailPageViewModel obj = sender as global::StartFinance.ViewModels.DetailPageViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ViewModel_Value(obj.Value, DATA_CHANGED); } else { bindings.UpdateFallback_ViewModel_Value(DATA_CHANGED); } } else { switch (propName) { case "Value": { if (obj != null) { bindings.Update_ViewModel_Value(obj.Value, DATA_CHANGED); } else { bindings.UpdateFallback_ViewModel_Value(DATA_CHANGED); } break; } default: break; } } } }
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch(connectionId) { case 1: { global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; DetailPage_obj1_Bindings bindings = new DetailPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; } return returnValue; }
public void PropertyChanged_item(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { DetailPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::PhotoLab.ImageFileInfo obj = sender as global::PhotoLab.ImageFileInfo; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_item_ImageTitle(obj.ImageTitle, DATA_CHANGED); bindings.Update_item_ImageRating(obj.ImageRating, DATA_CHANGED); bindings.Update_item_Exposure(obj.Exposure, DATA_CHANGED); bindings.Update_item_Temperature(obj.Temperature, DATA_CHANGED); bindings.Update_item_Tint(obj.Tint, DATA_CHANGED); bindings.Update_item_Contrast(obj.Contrast, DATA_CHANGED); bindings.Update_item_Saturation(obj.Saturation, DATA_CHANGED); bindings.Update_item_Blur(obj.Blur, DATA_CHANGED); bindings.Update_item_NeedsSaved(obj.NeedsSaved, DATA_CHANGED); } } else { switch (propName) { case "ImageTitle": { if (obj != null) { bindings.Update_item_ImageTitle(obj.ImageTitle, DATA_CHANGED); } break; } case "ImageRating": { if (obj != null) { bindings.Update_item_ImageRating(obj.ImageRating, DATA_CHANGED); } break; } case "Exposure": { if (obj != null) { bindings.Update_item_Exposure(obj.Exposure, DATA_CHANGED); } break; } case "Temperature": { if (obj != null) { bindings.Update_item_Temperature(obj.Temperature, DATA_CHANGED); } break; } case "Tint": { if (obj != null) { bindings.Update_item_Tint(obj.Tint, DATA_CHANGED); } break; } case "Contrast": { if (obj != null) { bindings.Update_item_Contrast(obj.Contrast, DATA_CHANGED); } break; } case "Saturation": { if (obj != null) { bindings.Update_item_Saturation(obj.Saturation, DATA_CHANGED); } break; } case "Blur": { if (obj != null) { bindings.Update_item_Blur(obj.Blur, DATA_CHANGED); } break; } case "NeedsSaved": { if (obj != null) { bindings.Update_item_NeedsSaved(obj.NeedsSaved, DATA_CHANGED); } break; } default: break; } } bindings.CompleteUpdate(DATA_CHANGED); } }
public DetailPage_obj1_BindingsTracking(DetailPage_obj1_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <DetailPage_obj1_Bindings>(obj); }
public DetailPage_obj1_BindingsTracking(DetailPage_obj1_Bindings obj) { WeakRefToBindingObj = new global::System.WeakReference<DetailPage_obj1_Bindings>(obj); }