In This Article

StatusBarPanel Class

Represents the base class for a StatusBar panel.

[TypeConverter(typeof(StatusBarPanelConverter))]
public class StatusBarPanel : UIElement, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable
Inheritance:
object MarshalByRefObject MarshalByRefDisposableObject LogicalTreeNodeBase UIElement object
Derived:
StatusBarLabelPanel StatusBarProgressBarPanel
Implements:
IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable

Constructors

StatusBarPanel()

Initializes an instance of the class.

public StatusBarPanel()

Properties

AutoSize

The auto-size style to apply to the panel.

public StatusBarPanelAutoSize AutoSize { get; set; }

Property Value

StatusBarPanelAutoSize

BackgroundFill

The BackgroundFill to use for the background of the panel.

public BackgroundFill? BackgroundFill { get; set; }

Property Value

BackgroundFill

Border

A SimpleBorder that indicates the type of border for the panel.

public SimpleBorder? Border { get; set; }

Property Value

SimpleBorder

CaptureMouseWhenPressed

Indicates whether to automatically capture the mouse when the element is pressed.

protected override bool CaptureMouseWhenPressed { get; }

Property Value

bool:

true if the mouse should automatically be captured when the element is pressed; otherwise, false.

Key

The key of the panel.

public string? Key { get; set; }

Property Value

string

MinimumWidth

The minimum width for the panel.

public int MinimumWidth { get; set; }

Property Value

int

Remarks

This property is used for panels that auto-size using the Spring and Contents settings.

Padding

A Padding that describes the padding of the panel.

public Padding Padding { get; set; }

Property Value

Padding

StatusBar

The StatusBar that contains the panel, if any.

[Browsable(false)]
public StatusBar? StatusBar { get; }

Property Value

StatusBar

Tag

The object that contains user-defined data about the object.

[TypeConverter(typeof(StringConverter))]
public object? Tag { get; set; }

Property Value

object

ToolTipText

The tool tip text for the panel.

public string? ToolTipText { get; set; }

Property Value

string

Visible

Indicates whether the panel is visible.

public bool Visible { get; set; }

Property Value

bool:

true if the panel is visible; otherwise, false.

Width

The width of the panel.

public int Width { get; set; }

Property Value

int

Remarks

This property is used for panels that do not auto-size.

Methods

OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

protected override void OnMouseUp(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

The event data.

ResetBackgroundFill()

Resets the BackgroundFill property to its default value.

public virtual void ResetBackgroundFill()

ResetBorder()

Resets the Border property to its default value.

public virtual void ResetBorder()

ResetPadding()

Resets the Padding property to its default value.

public virtual void ResetPadding()

ShouldSerializeBackgroundFill()

Indicates whether the BackgroundFill property should be persisted.

public virtual bool ShouldSerializeBackgroundFill()

Returns

bool:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeBorder()

Indicates whether the Border property should be persisted.

public virtual bool ShouldSerializeBorder()

Returns

bool:

true if the property value has changed from its default; otherwise, false.

ShouldSerializePadding()

Indicates whether the Padding property should be persisted.

public virtual bool ShouldSerializePadding()

Returns

bool:

true if the property value has changed from its default; otherwise, false.

Inherited Members

Extension Methods