All pages
Powered by GitBook
1 of 1

Loading...

IButtonControlExtensions

Wisej.Web.Markup.IButtonControlExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.0.0.0)

Adds fluent markup extension methods to the IButtonControl interface.

public class IButtonControlExtensions
Public Class IButtonControlExtensions

Methods

DialogResult<TButtonControl>(buttonControl, dialogResult)

Sets the DialogResult property of the specified .

Parameter
Type
Description

Returns: . 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.

TButtonControl

The type of the button control, must implement IButtonControl.

buttonControl

TButtonControl

The button control for which to set the DialogResult property.

dialogResult

DialogResult

The DialogResult value to set for the button control.

IButtonControl
TButtonControl

myButton.DialogResult(DialogResult.OK);