PostItNote
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
PostItNote | Initializes a new instance of the PostItNote class. |
BasicTitlebarGradientEndColor | Gets or sets the end color of the basic titlebar gradient. |
BasicTitlebarGradientStartColor | Gets or sets the start color of the basic titlebar gradient. |
BasicTitlebarLinearGradientMode | Gets or sets the basic titlebar linear gradient mode. |
CreateParams | Gets the parameters used to create this control's window, with the window styles this control needs added to them. |
DefaultInputTextBoxFont | Gets or sets the default input text box font. |
DefaultInputTextBoxForecolor | Gets or sets the default input text box forecolor. |
DefaultTitlebarBrushEndColor | Gets or sets the end color of the default titlebar brush. |
DefaultTitlebarBrushStartColor | Gets or sets the start color of the default titlebar brush. |
DefaultTitlebarLinearGradientMode | Gets or sets the basic titlebar linear gradient mode. |
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 | Gets or sets a value indicating whether the control supports showing the default input text box. |
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 | Gets or sets a value indicating whether the control provided default titlebar is visible. |
IsStatusBarVisible | Gets or sets a value indicating whether the control displays a status bar. |
NoteText | Gets or sets the note text. |
NoteTheme | Gets or sets the note theme. |
StatusbarForeColor | Gets or sets the forground color for statusbar text. |
StatusbarText | Gets or sets the status bar text. |
StatusbarTooltip | Gets or sets the tooltip for the built-in statusbar control. |
Titlebar | Gets or sets a custom titlebar. |
TitlebarBrush | Gets or sets the titlebar brush. |
TitlebarTooltip | Gets or sets the tooltip for default (built-in) title bar. |
OnBackColorChanged | Raises the BackColorChanged event. PostItNote overrides it so the control's own handling runs alongside the base behavior. |
OnMouseDoubleClick | Raises the MouseDoubleClick event. PostItNote overrides it so the control's own handling runs alongside the base behavior. |
OnMouseDown | Raises the MouseDown event. PostItNote overrides it so the control's own handling runs alongside the base behavior. |
OnMouseMove | Raises the MouseMove event. PostItNote overrides it so the control's own handling runs alongside the base behavior. |
OnMouseUp | Raises the MouseUp event. PostItNote overrides it so the control's own handling runs alongside the base behavior. |
OnPaint | Raises the Paint event. PostItNote overrides it so the control's own handling runs alongside the base behavior. |
WndProc | Processes the Windows messages sent to this control's window. |
PostItNoteCloseRequested | Occurs when the user clicks on the close button on the default titlebar. |
PostItNoteCommandBarInvokeRequested | Occurs when the user clicks on the top/left corner command bar icon on the default titlebar. |
PostiItNoteBasicTitlebarDoubleClicked | Occurs when the user double-clicks anywhere on the basic titlebar area. |
PostiItNoteBasicTitlebarRightClicked | Occurs when the user right-clicks anywhere on the basic titlebar area. |
PostiItNoteDefaultTitlebarDoubleClicked | Occurs when the user double-clicks anywhere on the default titlebar area. |
PostiItNoteDefaultTitlebarRightClicked | Occurs when the user right-clicks anywhere on the default titlebar area. |
Constructors
PostItNote
Initializes a new instance of the PostItNote class.
Properties
BasicTitlebarGradientEndColor
Gets or sets the end color of the basic titlebar gradient.
BasicTitlebarGradientStartColor
Gets or sets the start color of the basic titlebar gradient.
BasicTitlebarLinearGradientMode
Gets or sets the basic titlebar linear gradient mode.
CreateParams
Gets the parameters used to create this control's window, with the window styles this control needs added to them.
DefaultInputTextBoxFont
Gets or sets the default input text box font.
DefaultInputTextBoxForecolor
Gets or sets the default input text box forecolor.
DefaultTitlebarBrushEndColor
Gets or sets the end color of the default titlebar brush.
DefaultTitlebarBrushStartColor
Gets or sets the start color of the default titlebar brush.
DefaultTitlebarLinearGradientMode
Gets or sets the basic titlebar linear gradient mode.
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
Gets or sets a value indicating whether the control supports showing the default input text box.
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
Gets or sets a value indicating whether the control provided default titlebar is visible.
IsStatusBarVisible
Gets or sets a value indicating whether the control displays a status bar.
NoteText
Gets or sets the note text.
NoteTheme
Gets or sets the note theme.
StatusbarForeColor
Gets or sets the forground color for statusbar text.
StatusbarText
Gets or sets the status bar text.
StatusbarTooltip
Gets or sets the tooltip for the built-in statusbar control.
Titlebar
Gets or sets a custom titlebar.
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
Gets or sets the titlebar brush.
TitlebarTooltip
Gets or sets the tooltip for default (built-in) title bar.
Methods
OnBackColorChanged
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
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
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
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
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
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
Processes the Windows messages sent to this control's window.
Events
PostItNoteCloseRequested
Occurs when the user clicks on the close button on the default titlebar.
PostItNoteCommandBarInvokeRequested
Occurs when the user clicks on the top/left corner command bar icon on the default titlebar.
PostiItNoteBasicTitlebarDoubleClicked
Occurs when the user double-clicks anywhere on the basic titlebar area.
PostiItNoteBasicTitlebarRightClicked
Occurs when the user right-clicks anywhere on the basic titlebar area.
PostiItNoteDefaultTitlebarDoubleClicked
Occurs when the user double-clicks anywhere on the default titlebar area.
PostiItNoteDefaultTitlebarRightClicked
Occurs when the user right-clicks anywhere on the default titlebar area.