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\ListView.xaml line 1 { global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; ListView_obj1_Bindings bindings = new ListView_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; case 7: // Views\ListView.xaml line 33 { global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target; ListView_obj7_Bindings bindings = new ListView_obj7_Bindings(); returnValue = bindings; bindings.SetDataRoot(element7.DataContext); element7.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings); global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element7, bindings); } break; } return(returnValue); }
public void CollectionChanged_ListSong(object sender, global::System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { ListView_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { global::System.Collections.ObjectModel.ObservableCollection <global::StarterPack.Entity.Song> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::StarterPack.Entity.Song>; } }
public ListView_obj1_Bindings TryGetBindingObject() { ListView_obj1_Bindings bindingObject = null; if (weakRefToBindingObj != null) { weakRefToBindingObj.TryGetTarget(out bindingObject); if (bindingObject == null) { weakRefToBindingObj = null; ReleaseAllListeners(); } } return(bindingObject); }
public void PropertyChanged_ListSong(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { ListView_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::System.Collections.ObjectModel.ObservableCollection <global::StarterPack.Entity.Song> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::StarterPack.Entity.Song>; if (global::System.String.IsNullOrEmpty(propName)) { } else { switch (propName) { default: break; } } } }
public ListView_obj1_BindingsTracking(ListView_obj1_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <ListView_obj1_Bindings>(obj); }