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
Constructors
StatusBarPanel()
Initializes an instance of the class.
public StatusBarPanel()
Properties
AutoSize
The auto-size style to apply to the panel.
BackgroundFill
The BackgroundFill to use for the background of the panel.
Border
A SimpleBorder that indicates the type of border for the panel.
CaptureMouseWhenPressed
Indicates whether to automatically capture the mouse when the element is pressed.
protected override bool CaptureMouseWhenPressed { get; }
Property Value
- bool:
trueif the mouse should automatically be captured when the element is pressed; otherwise,false.
Key
The key of the panel.
MinimumWidth
The minimum width for the panel.
public int MinimumWidth { get; set; }
Property Value
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.
StatusBar
The StatusBar that contains the panel, if any.
Tag
The object that contains user-defined data about the object.
ToolTipText
The tool tip text for the panel.
Visible
Indicates whether the panel is visible.
public bool Visible { get; set; }
Property Value
- bool:
trueif the panel is visible; otherwise,false.
Width
The width of the panel.
public int Width { get; set; }
Property Value
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:
trueif 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:
trueif 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:
trueif the property value has changed from its default; otherwise,false.
Inherited Members
- UIElement.Dispose(bool)
- UIElement.AddPendingGraphicsInversion(Rectangle)
- UIElement.AddPendingScrollOperation(Rectangle, Orientation, int)
- UIElement.AddPendingScrollOperation(Rectangle, int, int)
- UIElement.Arrange(Rectangle)
- UIElement.ArrangeOverride(Size)
- UIElement.CaptureMouse()
- UIElement.ContainsLocation(Point)
- UIElement.CreateGraphics()
- UIElement.DpiScaleChanged(SizeF)
- UIElement.GetCursor(Point)
- UIElement.GetDrawState()
- UIElement.Invalidate()
- UIElement.Invalidate(Rectangle)
- UIElement.Invalidate(InvalidationLevels, InvalidationTypes)
- UIElement.InvalidateArrange()
- UIElement.InvalidateMeasure()
- UIElement.Measure(Graphics, Size)
- UIElement.MeasureOverride(Graphics, Size)
- UIElement.OnClick(MouseEventArgs)
- UIElement.OnDoubleClick(MouseEventArgs)
- UIElement.OnMouseCaptureLost(EventArgs)
- UIElement.OnMouseDown(MouseEventArgs)
- UIElement.OnMouseEnter(MouseEventArgs)
- UIElement.OnMouseHover(MouseEventArgs)
- UIElement.OnMouseLeave(MouseEventArgs)
- UIElement.OnMouseMove(MouseEventArgs)
- UIElement.OnMouseWheel(MouseEventArgs)
- UIElement.OnParentChanged()
- UIElement.OnRender(PaintEventArgs)
- UIElement.OnRenderChildElements(PaintEventArgs)
- UIElement.OnResize(EventArgs)
- UIElement.PostArrangeOverride()
- UIElement.ReleaseMouseCapture()
- UIElement.Render(PaintEventArgs)
- UIElement.TransformToAncestor(IUIElement)
- UIElement.TransformToDescendant(IUIElement)
- UIElement.UpdateLayout()
- UIElement.ActualHeight
- UIElement.ActualWidth
- UIElement.Bounds
- UIElement.ClipBounds
- UIElement.DesiredSize
- UIElement.DpiScaleFactor
- UIElement.InvalidateOnMouseEvents
- UIElement.IsArrangeValid
- UIElement.IsMeasureValid
- UIElement.IsMouseCaptured
- UIElement.IsMouseDirectlyOver
- UIElement.IsRightToLeft
- UIElement.Size
- UIElement.VisualOffset
- UIElement.Click
- UIElement.DoubleClick
- UIElement.MouseCaptureLost
- UIElement.MouseDown
- UIElement.MouseEnter
- UIElement.MouseHover
- UIElement.MouseLeave
- UIElement.MouseMove
- UIElement.MouseUp
- UIElement.MouseWheel
- UIElement.Resize
- LogicalTreeNodeBase.CreateChildren()
- MarshalByRefDisposableObject.Dispose()
- MarshalByRefDisposableObject.VerifyNotDisposed()
- MarshalByRefDisposableObject.IsDisposed
- MarshalByRefDisposableObject.Disposed
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()