public static void SetInjectBinding(ServiceBaseGeneric <T> service) { if (service.ShouldInject) { BindingOperations.SetBinding(service, ServicesClientInternalProperty, new Binding() { Path = new PropertyPath("DataContext"), Source = service.AssociatedObject }); } }
public static bool IsInjectBindingSet(ServiceBaseGeneric <T> service) { return(BindingOperations.IsDataBound(service, ServicesClientInternalProperty)); }
public static void ClearInjectBinding(ServiceBaseGeneric <T> service) { BindingOperations.ClearBinding(service, ServicesClientInternalProperty); }