public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { LibraryPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::MVVMcomics.ViewModels.LibraryViewModel obj = sender as global::MVVMcomics.ViewModels.LibraryViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ViewModel_Source(obj.Source, DATA_CHANGED); } } else { switch (propName) { case "Source": { if (obj != null) { bindings.Update_ViewModel_Source(obj.Source, DATA_CHANGED); } break; } default: break; } } } }
public void CollectionChanged_ViewModel_Source(object sender, global::System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { LibraryPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { global::System.Collections.ObjectModel.ObservableCollection <global::MVVMcomics.Models.ComicSeries> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::MVVMcomics.Models.ComicSeries>; } }
public LibraryPage_obj1_Bindings TryGetBindingObject() { LibraryPage_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: // Views\LibraryPage.xaml line 1 { global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; LibraryPage_obj1_Bindings bindings = new LibraryPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; } return(returnValue); }
public void PropertyChanged_ViewModel_Source(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { LibraryPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::System.Collections.ObjectModel.ObservableCollection <global::MVVMcomics.Models.ComicSeries> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::MVVMcomics.Models.ComicSeries>; if (global::System.String.IsNullOrEmpty(propName)) { } else { switch (propName) { default: break; } } } }
public LibraryPage_obj1_BindingsTracking(LibraryPage_obj1_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <LibraryPage_obj1_Bindings>(obj); }