Exemplo n.º 1
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     this.bindingsTracking.ReleaseAllListeners();
     if (newDataRoot != null)
     {
         this.dataRoot = (global::mobile_AppFilter.Views.ShellPage)newDataRoot;
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::mobile_AppFilter.Views.ShellPage obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_DisplayMode(obj.DisplayMode, phase);
             this.Update_IsPaneOpen(obj.IsPaneOpen, phase);
             this.Update_PrimaryItems(obj.PrimaryItems, phase);
             this.Update_SecondaryItems(obj.SecondaryItems, phase);
         }
     }
 }
Exemplo n.º 3
0
                public void UpdateChildListeners_(global::mobile_AppFilter.Views.ShellPage obj)
                {
                    ShellPage_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        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_;
                        }
                    }
                }
Exemplo n.º 4
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    ShellPage_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::mobile_AppFilter.Views.ShellPage obj = sender as global::mobile_AppFilter.Views.ShellPage;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_DisplayMode(obj.DisplayMode, DATA_CHANGED);
                                bindings.Update_IsPaneOpen(obj.IsPaneOpen, DATA_CHANGED);
                                bindings.Update_PrimaryItems(obj.PrimaryItems, DATA_CHANGED);
                                bindings.Update_SecondaryItems(obj.SecondaryItems, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "DisplayMode":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_DisplayMode(obj.DisplayMode, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

                            default:
                                break;
                            }
                        }
                    }
                }