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:
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                MainPage_obj1_Bindings bindings = new MainPage_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
            }
            break;

            case 34:
            {
                global::Windows.UI.Xaml.Controls.Grid element34 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj34_Bindings bindings = new MainPage_obj34_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::player.Song.SongItem)element34.DataContext);
                element34.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element34, bindings);
            }
            break;

            case 37:
            {
                global::Windows.UI.Xaml.Controls.Grid element37 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj37_Bindings bindings = new MainPage_obj37_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::player.Song.SongItem)element37.DataContext);
                bindings.SetConverterLookupRoot(this);
                element37.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element37, bindings);
            }
            break;
            }
            return(returnValue);
        }
Ejemplo n.º 2
0
 public MainPage_obj37_BindingsTracking(MainPage_obj37_Bindings obj)
 {
     WeakRefToBindingObj = new global::System.WeakReference <MainPage_obj37_Bindings>(obj);
 }