All pages
Powered by GitBook
1 of 1

Loading...

PanelExtensions

Wisej.Web.Markup.PanelExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.0.0.0)

Adds fluent markup extension methods to the Panel class.

public class PanelExtensions
Public Class PanelExtensions

Methods

Collapsed<TPanel>(panel, value)

Sets the collapsed state of the panel.

Parameter
Type
Description

Returns: . The modified panel with the updated collapsed state.

CollapseSide<TPanel>(panel, value)

Sets the side of the panel to collapse.

Parameter
Type
Description

Returns: . The modified panel with the updated collapse side.

HeaderAlignment<TPanel>(panel, value)

Sets the alignment of the panel's header.

Parameter
Type
Description

Returns: . The modified panel with the updated header alignment.

HeaderBackColor<TPanel>(panel, value)

Sets the background color of the panel's header.

Parameter
Type
Description

Returns: . The modified panel with the updated header background color.

HeaderForeColor<TPanel>(panel, value)

Sets the foreground color of the panel's header.

Parameter
Type
Description

Returns: . The modified panel with the updated header foreground color.

HeaderPosition<TPanel>(panel, value)

Sets the position of the panel's header.

Parameter
Type
Description

Returns: . The modified panel with the updated header position.

HeaderSize<TPanel>(panel, value)

Sets the size of the panel's header.

Parameter
Type
Description

Returns: . The modified panel with the updated header size.

OnPanelCollapsed<TPanel>(panel, action)

Registers an action to be executed when the panel is collapsed.

Parameter
Type
Description

Returns: . The modified panel with the registered collapse action.

This method allows you to specify a custom action that will be triggered whenever the panel is collapsed.

OnPanelExpanded<TPanel>(panel, action)

Registers an action to be executed when the panel is expanded.

Parameter
Type
Description

Returns: . The modified panel with the registered expand action.

This method allows you to specify a custom action that will be triggered whenever the panel is expanded.

ShowHeader<TPanel>(panel, value)

Sets the visibility of the panel's header.

Parameter
Type
Description

Returns: . The modified panel with the updated header visibility.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

Boolean

A boolean value indicating whether the panel should be collapsed.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

HeaderPosition

The HeaderPosition indicating which side of the panel to collapse.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

HorizontalAlignment

The HorizontalAlignment indicating the alignment of the header.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

Color

The Color representing the background color of the header.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

Color

The Color representing the foreground color of the header.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

HeaderPosition

The HeaderPosition indicating the position of the header.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

Int32

An integer value representing the size of the header.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

action

Action<TPanel>

The action to execute when the panel is collapsed.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

action

Action<TPanel>

The action to execute when the panel is expanded.

TPanel

The type of the panel, which must inherit from Panel.

panel

TPanel

The panel to modify.

value

Boolean

A boolean value indicating whether the header should be visible.

TPanel
TPanel
TPanel
TPanel
TPanel
TPanel
TPanel
TPanel
TPanel
TPanel

panel.OnPanelCollapsed(p => AlertBox.Show("Panel collapsed"));

panel.OnPanelExpanded(p => AlertBox.Show("Panel expanded"));