Skip to main content
Version: 4.1

StatusBarExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the StatusBar class.

public class StatusBarExtensions

Methods

Static member OnPanelClick<TStatusBar>(statusBar, action)

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

ParameterTypeDescription
TStatusBarThe type of the status bar, must inherit from StatusBar.
statusBarTStatusBarThe status bar to attach the event handler to.
actionAction<TStatusBar, StatusBarPanelClickEventArgs>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!");
});

Static member Panels<TStatusBar>(statusBar, panels)

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

ParameterTypeDescription
TStatusBarThe type of the status bar, must inherit from StatusBar.
statusBarTStatusBarThe status bar to which the panels should be added.
panelsStatusBarPanel[]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);

Static member ShowPanels<TStatusBar>(statusBar, value)

Sets the ShowPanels property of the specified StatusBar.

ParameterTypeDescription
TStatusBarThe type of the status bar, must inherit from StatusBar.
statusBarTStatusBarThe status bar for which to set the ShowPanels property.
valueBooleanA 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);

Static member SizingGrip<TStatusBar>(statusBar, value)

Sets the SizingGrip property of the specified StatusBar.

ParameterTypeDescription
TStatusBarThe type of the status bar, must inherit from StatusBar.
statusBarTStatusBarThe status bar for which to set the SizingGrip property.
valueBooleanA 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);