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; Result_obj1_Bindings bindings = new Result_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; Result_obj2_Bindings bindings = new Result_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; Result_obj4_Bindings bindings = new Result_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; Result_obj5_Bindings bindings = new Result_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; Result_obj7_Bindings bindings = new Result_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; }
public Result_obj7_BindingsTracking(Result_obj7_Bindings obj) { WeakRefToBindingObj = new global::System.WeakReference<Result_obj7_Bindings>(obj); }