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

            case 2:
            {
                global::Windows.UI.Xaml.Controls.Grid element2 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainView_obj2_Bindings bindings = new MainView_obj2_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::BindingEvents.Models.House)element2.DataContext);
                element2.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element2, 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 1:
            {
                global::Windows.UI.Xaml.Controls.Grid element1 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainView_obj1_Bindings bindings = new MainView_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::XPhase.Models.House)element1.DataContext);
                element1.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element1, bindings);
            }
            break;

            case 5:
            {
                global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainView_obj5_Bindings bindings = new MainView_obj5_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::XPhase.Models.House)element5.DataContext);
                element5.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element5, bindings);
            }
            break;
            }
            return(returnValue);
        }
示例#3
0
                public MainView_obj1_Bindings TryGetBindingObject()
                {
                    MainView_obj1_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
示例#4
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: // Pages\MainView.xaml line 1
     {
         global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
         MainView_obj1_Bindings bindings = new MainView_obj1_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot(this);
         this.Bindings     = bindings;
         element1.Loading += bindings.Loading;
         global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
     }
     break;
     }
     return(returnValue);
 }
示例#5
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.Grid element1 = (global::Windows.UI.Xaml.Controls.Grid)target;
             MainView_obj1_Bindings bindings = new MainView_obj1_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::XPhase.Models.House) element1.DataContext);                
               element1.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element1, bindings);
         }
         break;
     case 5:
         {
             global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
             MainView_obj5_Bindings bindings = new MainView_obj5_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::XPhase.Models.House) element5.DataContext);                
               element5.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element5, bindings);
         }
         break;
     }
     return returnValue;
 }
示例#6
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;
             MainView_obj1_Bindings bindings = new MainView_obj1_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot(this);
             this.Bindings = bindings;
             element1.Loading += bindings.Loading;
         }
         break;
     case 2:
         {
             global::Windows.UI.Xaml.Controls.Grid element2 = (global::Windows.UI.Xaml.Controls.Grid)target;
             MainView_obj2_Bindings bindings = new MainView_obj2_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::BindingEvents.Models.House) element2.DataContext);
             element2.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element2, bindings);
         }
         break;
     }
     return returnValue;
 }
示例#7
0
 public MainView_obj1_BindingsTracking(MainView_obj1_Bindings obj)
 {
     weakRefToBindingObj = new global::System.WeakReference <MainView_obj1_Bindings>(obj);
 }