StatusBarExtensions

Wisej.Web.Markup.StatusBarExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.0.0.0)

Adds fluent markup extension methods to the StatusBar class.

public class StatusBarExtensions

Methods

OnPanelClick<TStatusBar>(statusBar, action)

Attaches an event handler for the PanelClick event of the specified StatusBar.

Parameter
Type
Description

TStatusBar

The type of the status bar, must inherit from StatusBar.

statusBar

The status bar to attach the event handler to.

action

An action to execute when a panel in the status bar is clicked.

Returns: TStatusBar. The modified status bar with the attached PanelClick event handler.

This method allows you to execute a custom action whenever a panel in the status bar is clicked.


myStatusBar.OnPanelClick((sb, args) =>
{
AlertBox.Show("Panel clicked!");
});

Panels<TStatusBar>(statusBar, panels)

Adds the specified panels to the Panels collection of the specified StatusBar.

Parameter
Type
Description

TStatusBar

The type of the status bar, must inherit from StatusBar.

statusBar

The status bar to which the panels should be added.

panels

An array of StatusBarPanel to add to the status bar.

Returns: TStatusBar. The modified status bar with the added panels.

This method allows you to add multiple panels to the status bar in one call.


myStatusBar.Panels(panel1, panel2, panel3);

ShowPanels<TStatusBar>(statusBar, value)

Sets the ShowPanels property of the specified StatusBar.

Parameter
Type
Description

TStatusBar

The type of the status bar, must inherit from StatusBar.

statusBar

The status bar for which to set the ShowPanels property.

value

A boolean indicating whether panels are shown in the status bar.

Returns: TStatusBar. The modified status bar with the updated ShowPanels property.

This method allows you to enable or disable the display of panels in the status bar.


myStatusBar.ShowPanels(true);

SizingGrip<TStatusBar>(statusBar, value)

Sets the SizingGrip property of the specified StatusBar.

Parameter
Type
Description

TStatusBar

The type of the status bar, must inherit from StatusBar.

statusBar

The status bar for which to set the SizingGrip property.

value

A boolean indicating whether the sizing grip is shown on the status bar.

Returns: TStatusBar. The modified status bar with the updated SizingGrip property.

This method allows you to enable or disable the display of the sizing grip on the status bar.


myStatusBar.SizingGrip(true);

Last updated

Was this helpful?