protected override void OnActivate() { var handler = Activated; if (handler != null) { handler (this, EventArgs.Empty); } }