ButtonExtensions
Wisej.Web.Markup.ButtonExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the ButtonBase, Button and SplitButton classes.
public class ButtonExtensionsPublic Class ButtonExtensionsMethods
AllowHtml<TButtonBase>(button, value)
Sets the AllowHtml property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated AllowHtml property.
This method allows you to enable or disable HTML content in the button's text.
myButton.AllowHtml(true);
AllowMarkdown<TButtonBase>(button, value)
Sets the AllowMarkdown property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated AllowMarkdown property.
This method allows you to enable or disable Markdown content in the button's text.
AutoEllipsis<TButtonBase>(button, value)
Sets the AutoEllipsis property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated AutoEllipsis property.
This method allows you to enable or disable the automatic display of ellipses when the button's text is truncated.
AutoShowLoader<TButtonBase>(button, value)
Sets the AutoShowLoader property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated AutoShowLoader property.
This method allows you to enable or disable the automatic display of a loader on the button.
AutoSizeMode<TButton>(button, mode)
Sets the AutoSizeMode property of the specified Button.
Returns: TButton. The modified button with the updated AutoSizeMode property.
This method allows you to specify the automatic sizing behavior for the button.
AutoToolTip<TButton>(button, value)
Sets the AutoToolTip property of the specified Button.
Returns: TButton. The modified button with the updated AutoToolTip property.
This method allows you to enable or disable automatic tooltips for the button.
BorderStyle<TButton>(button, borderStyle)
Sets the BorderStyle property of the specified Button.
Returns: TButton. The modified button with the updated BorderStyle property.
This method allows you to specify the border style for the button.
CharacterCasing<TButtonBase>(button, casing)
Sets the CharacterCasing property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated CharacterCasing property.
This method allows you to specify the character casing for the button's text.
Display<TButton>(button, display)
Sets the Display property of the specified Button.
Returns: TButton. The modified button with the updated Display property.
This method allows you to specify the display setting for the button.
ImageSpacing<TButton>(button, spacing)
Sets the ImageSpacing property of the specified Button.
Returns: TButton. The modified button with the updated ImageSpacing property.
This method allows you to specify the spacing between the image and text on the button.
MenuItems<TButton>(button, items)
Adds the specified menu items to the MenuItems collection of the specified Button.
Returns: TButton. The modified button with the added menu items.
This method allows you to add multiple menu items to the button in one call.
OnItemClicked<TButton>(button, action)
Attaches an event handler for the ItemClicked event of the specified Button.
Returns: TButton. The modified button with the attached ItemClicked event handler.
This method allows you to execute a custom action whenever an item within the button's menu is clicked.
OnMenuCollapse<TButton>(button, action)
Attaches an event handler for the MenuCollapse event of the specified Button.
Returns: TButton. The modified button with the attached MenuCollapse event handler.
This method allows you to execute a custom action whenever the button's menu collapses.
OnMenuPopup<TButton>(button, action)
Attaches an event handler for the MenuPopup event of the specified Button.
Returns: TButton. The modified button with the attached MenuPopup event handler.
This method allows you to execute a custom action whenever the button's menu pops up.
Orientation<TSplitButton>(button, orientation)
Sets the Orientation property of the specified SplitButton.
Returns: TSplitButton. The modified button with the updated Orientation property.
This method allows you to specify the orientation of the split button, such as horizontal or vertical.
Repeat<TButton>(button, value)
Sets the Repeat property of the specified Button.
Returns: TButton. The modified button with the updated Repeat property.
This method allows you to enable or disable repeating actions for the button when it is held down.
Shortcut<TButton>(button, shortcut)
Sets the Shortcut property of the specified Button.
Returns: TButton. The modified button with the updated Shortcut property.
This method allows you to specify a keyboard shortcut for the button.
TextAlign<TButtonBase>(button, alignment)
Sets the TextAlign property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated TextAlign property.
This method allows you to specify the alignment of the text on the button.
TextImageRelation<TButtonBase>(button, textImageRelation)
Sets the TextImageRelation property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated TextImageRelation property.
This method allows you to specify the relationship between the button's text and image.
UseMnemonic<TButtonBase>(button, value)
Sets the UseMnemonic property of the specified ButtonBase.
Returns: TButtonBase. The modified button with the updated UseMnemonic property.
This method allows you to enable or disable the use of mnemonic characters in the button's text.
Last updated
Was this helpful?

