Пример #1
0
                public void CollectionChanged_ViewModel_Posts(object sender, global::System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
                {
                    CollectivePage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        global::System.Collections.ObjectModel.ObservableCollection <global::WebUwp.Core.Models.Post> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::WebUwp.Core.Models.Post>;
                    }
                }
Пример #2
0
                public CollectivePage_obj1_Bindings TryGetBindingObject()
                {
                    CollectivePage_obj1_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
Пример #3
0
                public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    CollectivePage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::WebUwp.ViewModels.DisplayDataViewModel obj = sender as global::WebUwp.ViewModels.DisplayDataViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_ViewModel_Users(obj.Users, DATA_CHANGED);
                                bindings.Update_ViewModel_Posts(obj.Posts, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Users":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_ViewModel_Users(obj.Users, DATA_CHANGED);
                                }
                                break;
                            }

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

                            default:
                                break;
                            }
                        }
                    }
                }
Пример #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: // Views\CollectivePage.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                CollectivePage_obj1_Bindings          bindings = new CollectivePage_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 3: // Views\CollectivePage.xaml line 31
            {
                global::Windows.UI.Xaml.Controls.Grid element3 = (global::Windows.UI.Xaml.Controls.Grid)target;
                CollectivePage_obj3_Bindings          bindings = new CollectivePage_obj3_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element3.DataContext);
                element3.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element3, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element3, bindings);
            }
            break;

            case 6: // Views\CollectivePage.xaml line 13
            {
                global::Windows.UI.Xaml.Controls.Grid element6 = (global::Windows.UI.Xaml.Controls.Grid)target;
                CollectivePage_obj6_Bindings          bindings = new CollectivePage_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;
            }
            return(returnValue);
        }
Пример #5
0
                public void PropertyChanged_ViewModel_Posts(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    CollectivePage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::System.Collections.ObjectModel.ObservableCollection <global::WebUwp.Core.Models.Post> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::WebUwp.Core.Models.Post>;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                        }
                        else
                        {
                            switch (propName)
                            {
                            default:
                                break;
                            }
                        }
                    }
                }
Пример #6
0
 public CollectivePage_obj1_BindingsTracking(CollectivePage_obj1_Bindings obj)
 {
     weakRefToBindingObj = new global::System.WeakReference <CollectivePage_obj1_Bindings>(obj);
 }