Ejemplo n.º 1
0
        public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
        {
            global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
            switch (connectionId)
            {
            case 1: // Pages\MySong.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                MySong_obj1_Bindings bindings = new MySong_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
            }
            break;

            case 7: // Pages\MySong.xaml line 33
            {
                global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MySong_obj7_Bindings bindings = new MySong_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);
        }
Ejemplo n.º 2
0
                public void CollectionChanged_ListSong(object sender, global::System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
                {
                    MySong_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        global::System.Collections.ObjectModel.ObservableCollection <global::ASM.Entity.Song> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::ASM.Entity.Song>;
                    }
                }
Ejemplo n.º 3
0
                public MySong_obj1_Bindings TryGetBindingObject()
                {
                    MySong_obj1_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
Ejemplo n.º 4
0
                public void PropertyChanged_ListSong(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MySong_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::System.Collections.ObjectModel.ObservableCollection <global::ASM.Entity.Song> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::ASM.Entity.Song>;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                        }
                        else
                        {
                            switch (propName)
                            {
                            default:
                                break;
                            }
                        }
                    }
                }
Ejemplo n.º 5
0
 public MySong_obj1_BindingsTracking(MySong_obj1_Bindings obj)
 {
     weakRefToBindingObj = new global::System.WeakReference <MySong_obj1_Bindings>(obj);
 }