示例#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 7:
            {
                global::Windows.UI.Xaml.Controls.Grid element7 = (global::Windows.UI.Xaml.Controls.Grid)target;
                SectionView_obj7_Bindings             bindings = new SectionView_obj7_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::JeSuiSCatholic.ViewModels.HeroArticlesViewModel)element7.DataContext);
                element7.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings);
            }
            break;

            case 10:
            {
                global::Windows.UI.Xaml.Controls.Grid element10 = (global::Windows.UI.Xaml.Controls.Grid)target;
                SectionView_obj10_Bindings            bindings  = new SectionView_obj10_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::JeSuiSCatholic.ViewModels.ArticleViewModel)element10.DataContext);
                element10.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, 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 7:
         {
             global::Windows.UI.Xaml.Controls.Grid element7 = (global::Windows.UI.Xaml.Controls.Grid)target;
             SectionView_obj7_Bindings bindings = new SectionView_obj7_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::JeSuiSCatholic.ViewModels.HeroArticlesViewModel) element7.DataContext);
             element7.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings);
         }
         break;
     case 10:
         {
             global::Windows.UI.Xaml.Controls.Grid element10 = (global::Windows.UI.Xaml.Controls.Grid)target;
             SectionView_obj10_Bindings bindings = new SectionView_obj10_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::JeSuiSCatholic.ViewModels.ArticleViewModel) element10.DataContext);
             element10.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, bindings);
         }
         break;
     }
     return returnValue;
 }