private void OnLoaded() { if (IsLoaded) { return; } IsLoaded = true; var loaded = Loaded; if (loaded != null) { loaded(this, EventArgs.Empty); } }