public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::ClientToServer.ServiceReference1.Customer data = args.NewValue as global::ClientToServer.ServiceReference1.Customer; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::ClientToServer.ServiceReference1.Customer was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::ClientToServer.ServiceReference1.Customer obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_CustomerID(obj.CustomerID, phase); this.Update_ContactName(obj.ContactName, phase); this.Update_ContactTitle(obj.ContactTitle, phase); this.Update_CompanyName(obj.CompanyName, phase); this.Update_Address(obj.Address, phase); this.Update_Country(obj.Country, phase); this.Update_Phone(obj.Phone, phase); } } }
// MainPage_obj7_Bindings public void SetDataRoot(global::ClientToServer.ServiceReference1.Customer newDataRoot) { this.dataRoot = newDataRoot; }