void OnLoaded(object sender, RoutedEventArgs e) { if (isLoaded) { return; } isLoaded = true; if (!ServiceInjectionHelper.IsInjectBindingSet(this)) { ServiceInjectionHelper.SetInjectBinding(this); } }
protected override void OnAttached() { base.OnAttached(); ServiceInjectionHelper.SetInjectBinding(this); }