public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::ATB_Market.Models.Discount data = args.NewValue as global::ATB_Market.Models.Discount; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::ATB_Market.Models.Discount was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::ATB_Market.Models.Discount obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_Image(obj.Image, phase); this.Update_Description(obj.Description, phase); this.Update_CurrentPrice(obj.CurrentPrice, phase); } } }
// _7DaysDiscountCollectionPage_obj24_Bindings public void SetDataRoot(global::ATB_Market.Models.Discount newDataRoot) { this.dataRoot = newDataRoot; }