Beispiel #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 20:
            {
                global::Windows.UI.Xaml.Controls.StackPanel element20 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj20_Bindings bindings = new MainPage_obj20_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::Kisssub.Models.ItemModel)element20.DataContext);
                element20.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element20, bindings);
            }
            break;
            }
            return(returnValue);
        }
        public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
        {
            global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
            switch (connectionId)
            {
            case 1: // MainPage.xaml line 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 6: // MainPage.xaml line 48
            {
                global::Windows.UI.Xaml.Controls.Button element6 = (global::Windows.UI.Xaml.Controls.Button)target;
                MainPage_obj6_Bindings bindings = new MainPage_obj6_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element6.DataContext);
                element6.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element6, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element6, bindings);
            }
            break;

            case 16: // MainPage.xaml line 99
            {
                global::Windows.UI.Xaml.Controls.StackPanel element16 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj16_Bindings bindings = new MainPage_obj16_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element16.DataContext);
                element16.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element16, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element16, bindings);
            }
            break;

            case 18: // MainPage.xaml line 87
            {
                global::Windows.UI.Xaml.Controls.StackPanel element18 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj18_Bindings bindings = new MainPage_obj18_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element18.DataContext);
                element18.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element18, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element18, bindings);
            }
            break;

            case 20: // MainPage.xaml line 76
            {
                global::Windows.UI.Xaml.Controls.StackPanel element20 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj20_Bindings bindings = new MainPage_obj20_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element20.DataContext);
                element20.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element20, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element20, bindings);
            }
            break;
            }
            return(returnValue);
        }