/// <summary> /// Activate the splitters which belong to current panel /// </summary> /// <param name="currentPanels"></param> public void ActivateSplitters(List <Panel> currentPanels) { foreach (SplitterWithExpander splitter in Splitters.OfType <SplitterWithExpander>()) { splitter.IsActive = currentPanels.Contains(GetPanelBySplitter(splitter)); } }
protected override void Dispose(bool disposing) { if (disposing) { UnRegisterSizeChangedEvents(); foreach (Panel panel in Panels) { panel.VisibleChanged -= Panel_VisibleChanged; } foreach (SplitterWithExpander splitter in Splitters.OfType <SplitterWithExpander>()) { splitter.PropertyChanged -= Splitter_PropertyChanged; } } base.Dispose(disposing); }