protected override void OnOpened(EventArgs e) { if (AllowBalloonCallback != null) { if (!AllowBalloonCallback()) { TryClose(); return; } } SetTopmostState(IsTopmost); var fadeOutIn = PopupManager.GetFadeOutIn(this); if (fadeOutIn > 0) { FadeOutIn(fadeOutIn, 1); } PopupManager.ActivePopup = this; base.OnOpened(e); }