HypernovaDesktop Components · docs
Binarymission
WinFormsPost It Note › PostItNote

PostItNote

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.Containers

A custom control that presents UI/UX similar to MS Outlook "Post it" notes feature.

public class PostItNote : Form

Inherits from / implements: Form

Members at a glance

PostItNoteInitializes a new instance of the PostItNote class.
BasicTitlebarGradientEndColorGets or sets the end color of the basic titlebar gradient.
BasicTitlebarGradientStartColorGets or sets the start color of the basic titlebar gradient.
BasicTitlebarLinearGradientModeGets or sets the basic titlebar linear gradient mode.
CreateParamsGets the parameters used to create this control's window, with the window styles this control needs added to them.
DefaultInputTextBoxFontGets or sets the default input text box font.
DefaultInputTextBoxForecolorGets or sets the default input text box forecolor.
DefaultTitlebarBrushEndColorGets or sets the end color of the default titlebar brush.
DefaultTitlebarBrushStartColorGets or sets the start color of the default titlebar brush.
DefaultTitlebarLinearGradientModeGets or sets the basic titlebar linear gradient mode.
IsBasicTitlebarBackgroundGradientGets or sets a value indicating whether the control's basic titlebar background is rendered using gradient colors or single solid brush color.
IsDefaultInputTextBoxVisibleGets or sets a value indicating whether the control supports showing the default input text box.
IsDefaultTitlebarBackgroundGradientGets or sets a value indicating whether the control's Full (built-in) titlebar background is rendered using gradient colors or single solid brush color.
IsDefaultTitlebarVisibleGets or sets a value indicating whether the control provided default titlebar is visible.
IsStatusBarVisibleGets or sets a value indicating whether the control displays a status bar.
NoteTextGets or sets the note text.
NoteThemeGets or sets the note theme.
StatusbarForeColorGets or sets the forground color for statusbar text.
StatusbarTextGets or sets the status bar text.
StatusbarTooltipGets or sets the tooltip for the built-in statusbar control.
TitlebarGets or sets a custom titlebar.
TitlebarBrushGets or sets the titlebar brush.
TitlebarTooltipGets or sets the tooltip for default (built-in) title bar.
OnBackColorChangedRaises the BackColorChanged event. PostItNote overrides it so the control's own handling runs alongside the base behavior.
OnMouseDoubleClickRaises the MouseDoubleClick event. PostItNote overrides it so the control's own handling runs alongside the base behavior.
OnMouseDownRaises the MouseDown event. PostItNote overrides it so the control's own handling runs alongside the base behavior.
OnMouseMoveRaises the MouseMove event. PostItNote overrides it so the control's own handling runs alongside the base behavior.
OnMouseUpRaises the MouseUp event. PostItNote overrides it so the control's own handling runs alongside the base behavior.
OnPaintRaises the Paint event. PostItNote overrides it so the control's own handling runs alongside the base behavior.
WndProcProcesses the Windows messages sent to this control's window.
PostItNoteCloseRequestedOccurs when the user clicks on the close button on the default titlebar.
PostItNoteCommandBarInvokeRequestedOccurs when the user clicks on the top/left corner command bar icon on the default titlebar.
PostiItNoteBasicTitlebarDoubleClickedOccurs when the user double-clicks anywhere on the basic titlebar area.
PostiItNoteBasicTitlebarRightClickedOccurs when the user right-clicks anywhere on the basic titlebar area.
PostiItNoteDefaultTitlebarDoubleClickedOccurs when the user double-clicks anywhere on the default titlebar area.
PostiItNoteDefaultTitlebarRightClickedOccurs when the user right-clicks anywhere on the default titlebar area.

Constructors

PostItNote

public PostItNote(Form parentWindow) : base()

Initializes a new instance of the PostItNote class.

Properties

BasicTitlebarGradientEndColor

public Color BasicTitlebarGradientEndColor

Gets or sets the end color of the basic titlebar gradient.

BasicTitlebarGradientStartColor

public Color BasicTitlebarGradientStartColor

Gets or sets the start color of the basic titlebar gradient.

BasicTitlebarLinearGradientMode

public LinearGradientMode BasicTitlebarLinearGradientMode

Gets or sets the basic titlebar linear gradient mode.

CreateParams

protected override CreateParams CreateParams

Gets the parameters used to create this control's window, with the window styles this control needs added to them.

DefaultInputTextBoxFont

public Font DefaultInputTextBoxFont

Gets or sets the default input text box font.

DefaultInputTextBoxForecolor

public Color DefaultInputTextBoxForecolor

Gets or sets the default input text box forecolor.

DefaultTitlebarBrushEndColor

public Color DefaultTitlebarBrushEndColor

Gets or sets the end color of the default titlebar brush.

DefaultTitlebarBrushStartColor

public Color DefaultTitlebarBrushStartColor

Gets or sets the start color of the default titlebar brush.

DefaultTitlebarLinearGradientMode

public LinearGradientMode DefaultTitlebarLinearGradientMode

Gets or sets the basic titlebar linear gradient mode.

IsBasicTitlebarBackgroundGradient

public bool IsBasicTitlebarBackgroundGradient

Gets or sets a value indicating whether the control's basic titlebar background is rendered using gradient colors or single solid brush color.

IsDefaultInputTextBoxVisible

public bool IsDefaultInputTextBoxVisible

Gets or sets a value indicating whether the control supports showing the default input text box.

IsDefaultTitlebarBackgroundGradient

public bool IsDefaultTitlebarBackgroundGradient

Gets or sets a value indicating whether the control's Full (built-in) titlebar background is rendered using gradient colors or single solid brush color.

IsDefaultTitlebarVisible

public bool IsDefaultTitlebarVisible

Gets or sets a value indicating whether the control provided default titlebar is visible.

IsStatusBarVisible

public bool IsStatusBarVisible

Gets or sets a value indicating whether the control displays a status bar.

NoteText

public string NoteText

Gets or sets the note text.

The control provides a default rich textbox for the notes section. YOu can set the text that you want to display in the note section using this property.

NoteTheme

public PostItNoteTheme NoteTheme

Gets or sets the note theme.

StatusbarForeColor

public Color StatusbarForeColor

Gets or sets the forground color for statusbar text.

StatusbarText

public string StatusbarText

Gets or sets the status bar text.

StatusbarTooltip

public string StatusbarTooltip

Gets or sets the tooltip for the built-in statusbar control.

Titlebar

public UserControl Titlebar

Gets or sets a custom titlebar.

If this is set to a valid non-null UserControl instance (i.e. your own title bar for the control), then the IsDefaultTitlebarVisible property will be automatically set to false.
The control gives the custom title bar the height of the built-in one - 28 logical units, scaled to the display - and stretches it to the note's width. It does not add it to the note: add it to the note's Controls yourself.

TitlebarBrush

public Brush TitlebarBrush

Gets or sets the titlebar brush.

TitlebarTooltip

public string TitlebarTooltip

Gets or sets the tooltip for default (built-in) title bar.

Methods

OnBackColorChanged

protected override void OnBackColorChanged(EventArgs e)

Raises the BackColorChanged event. PostItNote overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseDoubleClick

protected override void OnMouseDoubleClick(MouseEventArgs e)

Raises the MouseDoubleClick event. PostItNote overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseDown

protected override void OnMouseDown(MouseEventArgs e)

Raises the MouseDown event. PostItNote overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseMove

protected override void OnMouseMove(MouseEventArgs e)

Raises the MouseMove event. PostItNote overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseUp

protected override void OnMouseUp(MouseEventArgs e)

Raises the MouseUp event. PostItNote overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaint

protected override void OnPaint(PaintEventArgs e)

Raises the Paint event. PostItNote overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

WndProc

protected override void WndProc(ref Message m)

Processes the Windows messages sent to this control's window.

Events

PostItNoteCloseRequested

public event EventHandler PostItNoteCloseRequested

Occurs when the user clicks on the close button on the default titlebar.

PostItNoteCommandBarInvokeRequested

public event EventHandler PostItNoteCommandBarInvokeRequested

Occurs when the user clicks on the top/left corner command bar icon on the default titlebar.

PostiItNoteBasicTitlebarDoubleClicked

public event EventHandler PostiItNoteBasicTitlebarDoubleClicked

Occurs when the user double-clicks anywhere on the basic titlebar area.

PostiItNoteBasicTitlebarRightClicked

public event EventHandler PostiItNoteBasicTitlebarRightClicked

Occurs when the user right-clicks anywhere on the basic titlebar area.

PostiItNoteDefaultTitlebarDoubleClicked

public event EventHandler PostiItNoteDefaultTitlebarDoubleClicked

Occurs when the user double-clicks anywhere on the default titlebar area.

PostiItNoteDefaultTitlebarRightClicked

public event EventHandler PostiItNoteDefaultTitlebarRightClicked

Occurs when the user right-clicks anywhere on the default titlebar area.