protected virtual void OnContentRemoved(DockContentEventArgs e) { EventHandler<DockContentEventArgs> handler = (EventHandler<DockContentEventArgs>)Events[ContentRemovedEvent]; if (handler != null) handler(this, e); }
/// <summary> /// Handles the ContentRemoved event of the <see cref="dockPanel"/> control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="DockContentEventArgs"/> instance containing the event data.</param> private void dockPanel_ContentRemoved(object sender, DockContentEventArgs e) { CacheOpenMaps(); }