public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch (connectionId) { case 1: // Views\Dashboard\SendPassengerNotification.xaml line 1 { global::Windows.UI.Xaml.Controls.UserControl element1 = (global::Windows.UI.Xaml.Controls.UserControl)target; SendPassengerNotification_obj1_Bindings bindings = new SendPassengerNotification_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings); } break; case 6: // Views\Dashboard\SendPassengerNotification.xaml line 21 { global::Windows.UI.Xaml.Controls.StackPanel element6 = (global::Windows.UI.Xaml.Controls.StackPanel)target; SendPassengerNotification_obj6_Bindings bindings = new SendPassengerNotification_obj6_Bindings(); returnValue = bindings; bindings.SetDataRoot(element6.DataContext); element6.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element6, bindings); global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element6, bindings); } break; } return(returnValue); }
public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { SendPassengerNotification_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::FlightAppEliasGryp.ViewModels.CrewDashboardViewModel obj = sender as global::FlightAppEliasGryp.ViewModels.CrewDashboardViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ViewModel_Message(obj.Message, DATA_CHANGED); } } else { switch (propName) { case "Message": { if (obj != null) { bindings.Update_ViewModel_Message(obj.Message, DATA_CHANGED); } break; } default: break; } } } }
public SendPassengerNotification_obj1_Bindings TryGetBindingObject() { SendPassengerNotification_obj1_Bindings bindingObject = null; if (weakRefToBindingObj != null) { weakRefToBindingObj.TryGetTarget(out bindingObject); if (bindingObject == null) { weakRefToBindingObj = null; ReleaseAllListeners(); } } return(bindingObject); }
public SendPassengerNotification_obj1_BindingsTracking(SendPassengerNotification_obj1_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <SendPassengerNotification_obj1_Bindings>(obj); }