Exemplo n.º 1
0
 /// <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));
     }
 }
Exemplo n.º 2
0
        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);
        }