private void RefreshLayout()
 {
     sidebarHeaderControl1.RefreshLayout();
     LayoutHelper.FitControlsBelow(0, sidebarHeaderControl1);
     DisplayHelper.AutoFitSystemLabel(linkLabelCustomizeMap, linkLabelCustomizeMap.Width,
                                      linkLabelCustomizeMap.Width);
     LayoutHelper.NaturalizeHeightAndDistribute(8, linkLabelCustomizeMap, new ControlGroup(labelCaption, textBoxCaption));
     LayoutHelper.FitControlsBelow(20, textBoxCaption);
     LayoutHelper.NaturalizeHeightAndDistribute(3, labelMargins, comboBoxMargins, panelCustomMargins);
 }
 private void RefreshLayout()
 {
     sidebarHeader.RefreshLayout();
     LayoutHelper.FitControlsBelow(0, sidebarHeader);
 }