public bool SetDataRoot(global::System.Object newDataRoot)
 {
     this.bindingsTracking.ReleaseAllListeners();
     if (newDataRoot != null)
     {
         this.dataRoot = (global::App5.Views.NotesPage)newDataRoot;
         return(true);
     }
     return(false);
 }
                public void UpdateChildListeners_(global::App5.Views.NotesPage obj)
                {
                    NotesPage_obj1_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_;
                        }
                    }
                }
 // Update methods for each path node used in binding steps.
 private void Update_(global::App5.Views.NotesPage obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_CutButtonIsEnabled(obj.CutButtonIsEnabled, phase);
             this.Update_CopyButtonIsEnabled(obj.CopyButtonIsEnabled, phase);
             this.Update_PasteButtonIsEnabled(obj.PasteButtonIsEnabled, phase);
             this.Update_UndoButtonIsEnabled(obj.UndoButtonIsEnabled, phase);
             this.Update_RedoButtonIsEnabled(obj.RedoButtonIsEnabled, phase);
             this.Update_SaveInkFileButtonIsEnabled(obj.SaveInkFileButtonIsEnabled, phase);
             this.Update_ExportAsImageButtonIsEnabled(obj.ExportAsImageButtonIsEnabled, phase);
             this.Update_ClearAllButtonIsEnabled(obj.ClearAllButtonIsEnabled, phase);
         }
     }
 }
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    NotesPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::App5.Views.NotesPage obj = sender as global::App5.Views.NotesPage;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_CutButtonIsEnabled(obj.CutButtonIsEnabled, DATA_CHANGED);
                                bindings.Update_CopyButtonIsEnabled(obj.CopyButtonIsEnabled, DATA_CHANGED);
                                bindings.Update_PasteButtonIsEnabled(obj.PasteButtonIsEnabled, DATA_CHANGED);
                                bindings.Update_UndoButtonIsEnabled(obj.UndoButtonIsEnabled, DATA_CHANGED);
                                bindings.Update_RedoButtonIsEnabled(obj.RedoButtonIsEnabled, DATA_CHANGED);
                                bindings.Update_SaveInkFileButtonIsEnabled(obj.SaveInkFileButtonIsEnabled, DATA_CHANGED);
                                bindings.Update_ExportAsImageButtonIsEnabled(obj.ExportAsImageButtonIsEnabled, DATA_CHANGED);
                                bindings.Update_ClearAllButtonIsEnabled(obj.ClearAllButtonIsEnabled, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "CutButtonIsEnabled":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_CutButtonIsEnabled(obj.CutButtonIsEnabled, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

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

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

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

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

                            default:
                                break;
                            }
                        }
                    }
                }