예제 #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;
             Test_obj1_Bindings bindings = new Test_obj1_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot(this);
             this.Bindings = bindings;
             element1.Loading += bindings.Loading;
         }
         break;
     case 6:
         {
             global::Windows.UI.Xaml.Controls.Grid element6 = (global::Windows.UI.Xaml.Controls.Grid)target;
             Test_obj6_Bindings bindings = new Test_obj6_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::WordChallenge.Pages.Recording) element6.DataContext);
             element6.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element6, bindings);
         }
         break;
     case 10:
         {
             global::Windows.UI.Xaml.Controls.Grid element10 = (global::Windows.UI.Xaml.Controls.Grid)target;
             Test_obj10_Bindings bindings = new Test_obj10_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::WordChallenge.Pages.Recording) element10.DataContext);
             element10.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, bindings);
         }
         break;
     }
     return returnValue;
 }
예제 #2
0
 public Test_obj10_BindingsTracking(Test_obj10_Bindings obj)
 {
     WeakRefToBindingObj = new global::System.WeakReference<Test_obj10_Bindings>(obj);
 }