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