public bool SetDataRoot(global::System.Object newDataRoot)
 {
     this.bindingsTracking.ReleaseAllListeners();
     if (newDataRoot != null)
     {
         this.dataRoot = (global::App5.Views.TodolistPage)newDataRoot;
         return(true);
     }
     return(false);
 }
 // Update methods for each path node used in binding steps.
 private void Update_(global::App5.Views.TodolistPage obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Source(obj.Source, phase);
             this.Update_IsLoadingVisibility(obj.IsLoadingVisibility, phase);
             this.Update_FailedMesageVisibility(obj.FailedMesageVisibility, phase);
             this.Update_IsBackEnabled(obj.IsBackEnabled, phase);
             this.Update_IsForwardEnabled(obj.IsForwardEnabled, phase);
             this.Update_IsLoading(obj.IsLoading, phase);
         }
     }
 }
                public void UpdateChildListeners_(global::App5.Views.TodolistPage obj)
                {
                    TodolistPage_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_;
                        }
                    }
                }
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    TodolistPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::App5.Views.TodolistPage obj = sender as global::App5.Views.TodolistPage;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_Source(obj.Source, DATA_CHANGED);
                                bindings.Update_IsLoadingVisibility(obj.IsLoadingVisibility, DATA_CHANGED);
                                bindings.Update_FailedMesageVisibility(obj.FailedMesageVisibility, DATA_CHANGED);
                                bindings.Update_IsBackEnabled(obj.IsBackEnabled, DATA_CHANGED);
                                bindings.Update_IsForwardEnabled(obj.IsForwardEnabled, DATA_CHANGED);
                                bindings.Update_IsLoading(obj.IsLoading, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Source":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Source(obj.Source, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

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

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

                            default:
                                break;
                            }
                        }
                    }
                }