WinForms › Scrollable Panel › ScrollablePanelControlDesigner
ScrollablePanelControlDesigner
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.Containers.Designers
Design-time support for ScrollerPanel: it lets the panel be moved and resized, and shows a
short how-to on the panel until a content panel is assigned.
public sealed class ScrollablePanelControlDesigner : ControlDesigner
Inherits from / implements: ControlDesigner
Remarks
Used by the Windows Forms designer; not for use in application code.
Members at a glance
| Properties | |
|---|---|
SelectionRules | Gets how the panel can be manipulated on the design surface: it is visible, movable and resizable on every side. |
| Methods | |
Initialize | Attaches the designer to the panel and adds the how-to label to it. |
OnPaintAdornments | Shows the how-to label while the panel has no ScrollerPanel.ContentHostingPanel, and hides it
once it has one. |
Properties
SelectionRules
public override SelectionRules SelectionRules
Gets how the panel can be manipulated on the design surface: it is visible, movable and resizable on every side.
Methods
Initialize
public override void Initialize(IComponent component)
Attaches the designer to the panel and adds the how-to label to it.
Parameters
component- The panel.
OnPaintAdornments
protected override void OnPaintAdornments(PaintEventArgs pe)
Shows the how-to label while the panel has no ScrollerPanel.ContentHostingPanel, and hides it
once it has one.
Parameters
pe- The paint data.