public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::HeroExplorer.Models.ComicEvent data = args.NewValue as global::HeroExplorer.Models.ComicEvent; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::HeroExplorer.Models.ComicEvent was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::HeroExplorer.Models.ComicEvent obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_thumbnail(obj.thumbnail, phase); this.Update_title(obj.title, phase); this.Update_description(obj.description, phase); } } }
// MainPage_obj35_Bindings public void SetDataRoot(global::HeroExplorer.Models.ComicEvent newDataRoot) { this.dataRoot = newDataRoot; }