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

            case 11:
            {
                global::Windows.UI.Xaml.Controls.TextBlock element11 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
                MainPage_obj11_Bindings bindings = new MainPage_obj11_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::ViewModels.PersonViewModel)element11.DataContext);
                element11.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element11, 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: // MainPage.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                MainPage_obj1_Bindings bindings = new MainPage_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
            }
            break;

            case 11: // MainPage.xaml line 39
            {
                global::Windows.UI.Xaml.Controls.Image element11 = (global::Windows.UI.Xaml.Controls.Image)target;
                MainPage_obj11_Bindings bindings = new MainPage_obj11_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element11.DataContext);
                element11.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element11, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element11, bindings);
            }
            break;
            }
            return(returnValue);
        }
예제 #3
0
                public MainPage_obj11_Bindings TryGetBindingObject()
                {
                    MainPage_obj11_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:
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                MainPage_obj1_Bindings bindings = new MainPage_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
            }
            break;

            case 5:
            {
                global::Windows.UI.Xaml.Controls.StackPanel element5 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj5_Bindings bindings = new MainPage_obj5_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::InTune.Model.MenuItem)element5.DataContext);
                element5.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element5, bindings);
            }
            break;

            case 11:
            {
                global::Windows.UI.Xaml.Controls.Image element11 = (global::Windows.UI.Xaml.Controls.Image)target;
                MainPage_obj11_Bindings bindings = new MainPage_obj11_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::InTune.Model.Sound)element11.DataContext);
                element11.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element11, bindings);
            }
            break;
            }
            return(returnValue);
        }
예제 #5
0
 public MainPage_obj11_BindingsTracking(MainPage_obj11_Bindings obj)
 {
     WeakRefToBindingObj = new global::System.WeakReference <MainPage_obj11_Bindings>(obj);
 }