Ejemplo n.º 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);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
            }
            break;

            case 16:
            {
                global::Windows.UI.Xaml.Controls.UserControl element16 = (global::Windows.UI.Xaml.Controls.UserControl)target;
                MainPage_obj16_Bindings bindings = new MainPage_obj16_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::Todos.Models.TodoItem)element16.DataContext);
                element16.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element16, bindings);
            }
            break;
            }
            return(returnValue);
        }
Ejemplo n.º 2
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj16_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::Chat_Control_UWP.Models.chatItem obj = sender as global::Chat_Control_UWP.Models.chatItem;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_ChatType(obj.ChatType, DATA_CHANGED);
                                bindings.Update_Image(obj.Image, DATA_CHANGED);
                                bindings.Update_TextMsg(obj.TextMsg, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "ChatType":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_ChatType(obj.ChatType, DATA_CHANGED);
                                }
                                break;
                            }

                            case "Image":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Image(obj.Image, DATA_CHANGED);
                                }
                                break;
                            }

                            case "TextMsg":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_TextMsg(obj.TextMsg, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
Ejemplo n.º 3
0
                public MainPage_obj16_Bindings TryGetBindingObject()
                {
                    MainPage_obj16_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
Ejemplo n.º 4
0
                public void UpdateChildListeners_(global::Chat_Control_UWP.Models.chatItem obj)
                {
                    MainPage_obj16_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        if (bindings.dataRoot != null)
                        {
                            ((global::System.ComponentModel.INotifyPropertyChanged)bindings.dataRoot).PropertyChanged -= PropertyChanged_;
                        }
                        if (obj != null)
                        {
                            bindings.dataRoot = obj;
                            ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_;
                        }
                    }
                }
Ejemplo n.º 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: // 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 10: // MainPage.xaml line 65
            {
                global::Windows.UI.Xaml.Controls.Grid element10 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj10_Bindings bindings = new MainPage_obj10_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element10.DataContext);
                element10.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element10, bindings);
            }
            break;

            case 16: // MainPage.xaml line 23
            {
                global::Windows.UI.Xaml.Controls.Grid element16 = (global::Windows.UI.Xaml.Controls.Grid)target;
                MainPage_obj16_Bindings bindings = new MainPage_obj16_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element16.DataContext);
                bindings.SetConverterLookupRoot(this);
                element16.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element16, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element16, bindings);
            }
            break;
            }
            return(returnValue);
        }
Ejemplo n.º 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 16: // MainPage.xaml line 37
     {
         global::Windows.UI.Xaml.Controls.TextBlock element16 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
         MainPage_obj16_Bindings bindings = new MainPage_obj16_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot(element16.DataContext);
         element16.DataContextChanged += bindings.DataContextChangedHandler;
         global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element16, bindings);
         global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element16, bindings);
     }
     break;
     }
     return(returnValue);
 }
Ejemplo n.º 7
0
 public MainPage_obj16_BindingsTracking(MainPage_obj16_Bindings obj)
 {
     WeakRefToBindingObj = new global::System.WeakReference <MainPage_obj16_Bindings>(obj);
 }
        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;
            }
            break;

            case 6: // MainPage.xaml line 48
            {
                global::Windows.UI.Xaml.Controls.Button element6 = (global::Windows.UI.Xaml.Controls.Button)target;
                MainPage_obj6_Bindings bindings = new MainPage_obj6_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element6.DataContext);
                element6.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element6, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element6, bindings);
            }
            break;

            case 16: // MainPage.xaml line 99
            {
                global::Windows.UI.Xaml.Controls.StackPanel element16 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj16_Bindings bindings = new MainPage_obj16_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element16.DataContext);
                element16.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element16, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element16, bindings);
            }
            break;

            case 18: // MainPage.xaml line 87
            {
                global::Windows.UI.Xaml.Controls.StackPanel element18 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj18_Bindings bindings = new MainPage_obj18_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element18.DataContext);
                element18.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element18, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element18, bindings);
            }
            break;

            case 20: // MainPage.xaml line 76
            {
                global::Windows.UI.Xaml.Controls.StackPanel element20 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MainPage_obj20_Bindings bindings = new MainPage_obj20_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element20.DataContext);
                element20.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element20, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element20, bindings);
            }
            break;
            }
            return(returnValue);
        }