コード例 #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\Lab\Lab_49_UWP_SoundBoard\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;
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
            }
            break;

            case 5: // Pages\Lab\Lab_49_UWP_SoundBoard\MainPage.xaml line 62
            {
                global::Windows.UI.Xaml.Controls.StackPanel element5 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj5_Bindings bindings = new MainPage_obj5_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element5.DataContext);
                element5.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element5, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element5, bindings);
            }
            break;

            case 12: // Pages\Lab\Lab_49_UWP_SoundBoard\MainPage.xaml line 97
            {
                global::Windows.UI.Xaml.Controls.Image element12 = (global::Windows.UI.Xaml.Controls.Image)target;
                MainPage_obj12_Bindings bindings = new MainPage_obj12_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element12.DataContext);
                element12.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element12, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element12, bindings);
            }
            break;
            }
            return(returnValue);
        }
コード例 #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 12: // MainPage.xaml line 57
     {
         global::Windows.UI.Xaml.Controls.StackPanel element12 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
         MainPage_obj12_Bindings bindings = new MainPage_obj12_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot(element12.DataContext);
         element12.DataContextChanged += bindings.DataContextChangedHandler;
         global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element12, bindings);
         global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element12, bindings);
     }
     break;
     }
     return(returnValue);
 }
コード例 #3
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: // View\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 12: // View\MainPage.xaml line 113
            {
                global::Windows.UI.Xaml.Controls.TextBlock element12 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
                MainPage_obj12_Bindings bindings = new MainPage_obj12_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element12.DataContext);
                element12.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element12, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element12, bindings);
            }
            break;

            case 26: // View\MainPage.xaml line 133
            {
                global::Windows.UI.Xaml.Controls.StackPanel element26 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj26_Bindings bindings = new MainPage_obj26_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element26.DataContext);
                element26.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element26, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element26, bindings);
            }
            break;
            }
            return(returnValue);
        }
コード例 #4
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 8:
            {
                global::Windows.UI.Xaml.Controls.StackPanel element8 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj8_Bindings bindings = new MainPage_obj8_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::deviantArt.Shared.Models.CategoryItem)element8.DataContext);
                element8.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element8, bindings);
            }
            break;

            case 12:
            {
                global::Windows.UI.Xaml.Controls.Grid element12 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj12_Bindings bindings = new MainPage_obj12_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::deviantArt.Shared.Models.ImageItem)element12.DataContext);
                element12.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element12, bindings);
            }
            break;
            }
            return(returnValue);
        }