コード例 #1
0
ファイル: BlankPage1.g.cs プロジェクト: Sheofeen/CJWProject
 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;
             BlankPage1_obj1_Bindings bindings = new BlankPage1_obj1_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot(this);
             this.Bindings = bindings;
             element1.Loading += bindings.Loading;
         }
         break;
     case 2:
         {
             global::Windows.UI.Xaml.Controls.StackPanel element2 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
             BlankPage1_obj2_Bindings bindings = new BlankPage1_obj2_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::WordChallenge.Pages.Question) element2.DataContext);
             element2.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element2, bindings);
         }
         break;
     case 4:
         {
             global::Windows.UI.Xaml.Controls.TextBlock element4 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
             BlankPage1_obj4_Bindings bindings = new BlankPage1_obj4_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::WordChallenge.Pages.Question) element4.DataContext);
             element4.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element4, bindings);
         }
         break;
     case 5:
         {
             global::Windows.UI.Xaml.Controls.StackPanel element5 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
             BlankPage1_obj5_Bindings bindings = new BlankPage1_obj5_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::WordChallenge.Pages.Question) element5.DataContext);
             element5.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element5, bindings);
         }
         break;
     case 7:
         {
             global::Windows.UI.Xaml.Controls.TextBlock element7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
             BlankPage1_obj7_Bindings bindings = new BlankPage1_obj7_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::WordChallenge.Pages.Choice) element7.DataContext);
             element7.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings);
         }
         break;
     }
     return returnValue;
 }
コード例 #2
0
ファイル: BlankPage1.g.cs プロジェクト: Sheofeen/CJWProject
 public BlankPage1_obj7_BindingsTracking(BlankPage1_obj7_Bindings obj)
 {
     WeakRefToBindingObj = new global::System.WeakReference<BlankPage1_obj7_Bindings>(obj);
 }