protected override void OnLayout(LayoutEventArgs levent) { if (Appearance == DockPane.AppearanceStyle.Document) { this.LayoutButtons(); this.OnRefreshChanges(); } base.OnLayout(levent); }