Ejemplo n.º 1
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj37_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::player.Song.SongItem obj = sender as global::player.Song.SongItem;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_Like(obj.Like, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Like":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Like(obj.Like, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
Ejemplo n.º 2
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::player.Song.SongItem data = args.NewValue as global::player.Song.SongItem;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::player.Song.SongItem was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
Ejemplo n.º 3
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::player.Song.SongItem obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Name(obj.Name, phase);
         }
     }
 }
Ejemplo n.º 4
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::player.Song.SongItem obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Name(obj.Name, phase);
         }
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Like(obj.Like, phase);
         }
     }
 }
Ejemplo n.º 5
0
                public void UpdateChildListeners_(global::player.Song.SongItem obj)
                {
                    MainPage_obj37_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_;
                        }
                    }
                }
Ejemplo n.º 6
0
            // MainPage_obj37_Bindings

            public void SetDataRoot(global::player.Song.SongItem newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }
Ejemplo n.º 7
0
            // MainPage_obj34_Bindings

            public void SetDataRoot(global::player.Song.SongItem newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }