protected override void OnDisposed()
{
// Setup initial conditions.
Container.Remove();
// Unwire events.
GlobalEvents.HorizontalPanelResized -= OnHorizontalPanelResized;
node.ChildSelectionChanged -= OnChildSelectionChanged;
node.AddedChild -= OnAddedChild;
node.RemovedChild -= OnRemovedChild;
if (node.Parent != null) node.Parent.RemovingChild -= OnParentRemovingChild;
// Finish up.
base.OnDisposed();
}
#endregion