예제 #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;
                ShoppingListsPage_obj1_Bindings       bindings = new ShoppingListsPage_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
            }
            break;

            case 3:
            {
                global::Windows.UI.Xaml.Controls.RelativePanel element3 = (global::Windows.UI.Xaml.Controls.RelativePanel)target;
                ShoppingListsPage_obj3_Bindings bindings = new ShoppingListsPage_obj3_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::ATB_Market.Models.ShoppingList)element3.DataContext);
                element3.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element3, bindings);
            }
            break;
            }
            return(returnValue);
        }
예제 #2
0
 public ShoppingListsPage_obj1_BindingsTracking(ShoppingListsPage_obj1_Bindings obj)
 {
     WeakRefToBindingObj = new global::System.WeakReference <ShoppingListsPage_obj1_Bindings>(obj);
 }