Esempio 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 23:
            {
                global::Windows.UI.Xaml.Controls.Grid element23 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj23_Bindings bindings = new MainPage_obj23_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::App1.Models.ListItem)element23.DataContext);
                element23.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element23, bindings);
            }
            break;
            }
            return(returnValue);
        }
Esempio n. 2
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 19:
            {
                global::Windows.UI.Xaml.Controls.Image element19 = (global::Windows.UI.Xaml.Controls.Image)target;
                MainPage_obj19_Bindings bindings = new MainPage_obj19_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::HeroExplorer.Models.ComicBook)element19.DataContext);
                element19.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element19, bindings);
            }
            break;

            case 23:
            {
                global::Windows.UI.Xaml.Controls.StackPanel element23 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj23_Bindings bindings = new MainPage_obj23_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::HeroExplorer.Models.Character)element23.DataContext);
                element23.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element23, bindings);
            }
            break;

            case 35:
            {
                global::Windows.UI.Xaml.Controls.StackPanel element35 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj35_Bindings bindings = new MainPage_obj35_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::HeroExplorer.Models.ComicEvent)element35.DataContext);
                element35.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element35, bindings);
            }
            break;

            case 44:
            {
                global::Windows.UI.Xaml.Controls.Image element44 = (global::Windows.UI.Xaml.Controls.Image)target;
                MainPage_obj44_Bindings bindings = new MainPage_obj44_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::HeroExplorer.Models.ComicBook)element44.DataContext);
                element44.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element44, bindings);
            }
            break;

            case 45:
            {
                global::Windows.UI.Xaml.Controls.Grid element45 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj45_Bindings bindings = new MainPage_obj45_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::HeroExplorer.Models.Character)element45.DataContext);
                element45.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element45, bindings);
            }
            break;
            }
            return(returnValue);
        }