Esempio n. 1
0
 private void Update_ViewModel_SelectedItem(global::MyList.ListItem obj, int phase)
 {
     if ((phase & ((1 << 0) | NOT_PHASED | DATA_CHANGED)) != 0)
     {
         XamlBindingSetters.Set_Windows_UI_Xaml_Controls_ContentControl_Content(this.obj7, (global::System.Object) this.LookupConverter("contentConverter").Convert(obj, typeof(global::System.Object), null, null), null);
     }
 }
Esempio n. 2
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::MyList.ListItem data = args.NewValue as global::MyList.ListItem;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::MyList.ListItem was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
Esempio n. 3
0
 private void Update_current(global::MyList.ListItem obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_current(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_current_Title_(obj.Title_, phase);
             this.Update_current_Detail_(obj.Detail_, phase);
             this.Update_current_Date_(obj.Date_, phase);
             this.Update_current_path(obj.path, phase);
         }
     }
 }
Esempio n. 4
0
 public void UpdateChildListeners_current(global::MyList.ListItem obj)
 {
     if (obj != cache_current)
     {
         if (cache_current != null)
         {
             ((global::System.ComponentModel.INotifyPropertyChanged)cache_current).PropertyChanged -= PropertyChanged_current;
             cache_current = null;
         }
         if (obj != null)
         {
             cache_current = obj;
             ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_current;
         }
     }
 }
Esempio n. 5
0
                public void UpdateChildListeners_(global::MyList.ListItem obj)
                {
                    MainPage_obj12_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_;
                        }
                    }
                }
Esempio n. 6
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::MyList.ListItem obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_isCompleted(obj.isCompleted, phase);
             this.Update_path(obj.path, phase);
             this.Update_Title_(obj.Title_, phase);
             this.Update_DateForm(obj.DateForm, phase);
         }
     }
     if ((phase & ((1 << 0) | NOT_PHASED)) != 0)
     {
         XamlBindingSetters.Set_Windows_UI_Xaml_FrameworkElement_Tag(this.obj17, obj, null);
         XamlBindingSetters.Set_Windows_UI_Xaml_FrameworkElement_Tag(this.obj18, obj, null);
         XamlBindingSetters.Set_Windows_UI_Xaml_FrameworkElement_Tag(this.obj19, obj, null);
     }
 }
Esempio n. 7
0
                public void PropertyChanged_ViewModel_SelectedItem(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    EditItem_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName             = e.PropertyName;
                        global::MyList.ListItem obj = sender as global::MyList.ListItem;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                        }
                        else
                        {
                            switch (propName)
                            {
                            default:
                                break;
                            }
                        }
                    }
                }
Esempio n. 8
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj12_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName             = e.PropertyName;
                        global::MyList.ListItem obj = sender as global::MyList.ListItem;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_isCompleted(obj.isCompleted, DATA_CHANGED);
                                bindings.Update_path(obj.path, DATA_CHANGED);
                                bindings.Update_Title_(obj.Title_, DATA_CHANGED);
                                bindings.Update_DateForm(obj.DateForm, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "isCompleted":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_isCompleted(obj.isCompleted, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

                            default:
                                break;
                            }
                        }
                    }
                }
Esempio n. 9
0
            // MainPage_obj12_Bindings

            public void SetDataRoot(global::MyList.ListItem newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }
Esempio n. 10
0
                public void PropertyChanged_current(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    EditItem_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName             = e.PropertyName;
                        global::MyList.ListItem obj = sender as global::MyList.ListItem;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_current_Title_(obj.Title_, DATA_CHANGED);
                                bindings.Update_current_Detail_(obj.Detail_, DATA_CHANGED);
                                bindings.Update_current_Date_(obj.Date_, DATA_CHANGED);
                                bindings.Update_current_path(obj.path, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Title_":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_current_Title_(obj.Title_, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

                            default:
                                break;
                            }
                        }
                    }
                }