public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::KinoProjekat.Kino.Models.Film data = args.NewValue as global::KinoProjekat.Kino.Models.Film; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::KinoProjekat.Kino.Models.Film was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::KinoProjekat.Kino.Models.Film obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_Slika(obj.Slika, phase); this.Update_Naziv(obj.Naziv, phase); this.Update_Link(obj.Link, phase); this.Update_Zanr(obj.Zanr, phase); this.Update_Uloge(obj.Uloge, phase); this.Update_Reziser(obj.Reziser, phase); this.Update_OrginalniNaziv(obj.OrginalniNaziv, phase); } } }
// OdabirFilma_obj5_Bindings public void SetDataRoot(global::KinoProjekat.Kino.Models.Film newDataRoot) { this.dataRoot = newDataRoot; }