Skip to main content
Version: 4.1

IButtonControlExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the IButtonControl interface.

public class IButtonControlExtensions

Methods

Static member DialogResult<TButtonControl>(buttonControl, dialogResult)

Sets the DialogResult property of the specified IButtonControl.

ParameterTypeDescription
TButtonControlThe type of the button control, must implement IButtonControl.
buttonControlTButtonControlThe button control for which to set the DialogResult property.
dialogResultDialogResultThe DialogResult value to set for the button control.

Returns: TButtonControl. The modified button control with the updated DialogResult property.

This method allows you to set the DialogResult for a button control, which specifies the result returned to the parent form when the button is clicked.


myButton.DialogResult(DialogResult.OK);