Example #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: // 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 7: // MainPage.xaml line 22
            {
                global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj7_Bindings bindings = new MainPage_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);
        }
Example #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 7:
            {
                global::Windows.UI.Xaml.Controls.Grid element7 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj7_Bindings bindings = new MainPage_obj7_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::FakeNews.Model.NewsItem)element7.DataContext);
                element7.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings);
            }
            break;
            }
            return(returnValue);
        }
Example #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 7:
     {
         global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
         MainPage_obj7_Bindings bindings = new MainPage_obj7_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot((global::DiaryApp.ViewModel.PostViewModel)element7.DataContext);
         element7.DataContextChanged += bindings.DataContextChangedHandler;
         global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings);
     }
     break;
     }
     return(returnValue);
 }
Example #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 7:
         {
             global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
             MainPage_obj7_Bindings bindings = new MainPage_obj7_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::TripPlanner.Classes.Plans) element7.DataContext);
             element7.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings);
         }
         break;
     }
     return returnValue;
 }