public bool SetDataRoot(global::System.Object newDataRoot) { if (newDataRoot != null) { this.dataRoot = (global::FakeNews.Model.NewsItem)newDataRoot; return(true); } return(false); }
public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::FakeNews.Model.NewsItem data = args.NewValue as global::FakeNews.Model.NewsItem; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::FakeNews.Model.NewsItem was expected."); } this.SetDataRoot(data); this.Update(); }
private void Update_NewsItem(global::FakeNews.Model.NewsItem obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_NewsItem_Image(obj.Image, phase); this.Update_NewsItem_Headline(obj.Headline, phase); this.Update_NewsItem_Subhead(obj.Subhead, phase); this.Update_NewsItem_DataLine(obj.DataLine, phase); } } }
// MainPage_obj7_Bindings public void SetDataRoot(global::FakeNews.Model.NewsItem newDataRoot) { this.dataRoot = newDataRoot; }