Table of Contents

Method SetCancelButtonExclusive

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetCancelButtonExclusive(Button?)

Sets the specified button as the exclusive cancel button within the collection of child buttons.

public virtual void SetCancelButtonExclusive(Button? button)

Parameters

button Button

The button to be set as the exclusive cancel button. If null, no button will be set as the cancel button.

Remarks

This method iterates through all child elements and sets the IsCancel property to true for the specified button, and false for all other buttons. Only one button can be designated as the cancel button at a time.

SetCancelButtonExclusive(KnownButton)

Sets the specified button as the exclusive cancel button.

public virtual void SetCancelButtonExclusive(KnownButton value)

Parameters

value KnownButton

The button to be set as the exclusive cancel button.

Remarks

If the specified button is not found, the method performs no action.

SetCancelButtonExclusive(MessageBoxButtons)

Sets the specified button as the exclusive cancel button for the panel.

public virtual void SetCancelButtonExclusive(MessageBoxButtons buttons)

Parameters

buttons MessageBoxButtons

The buttons to be converted and set as the exclusive cancel button.

Remarks

This method converts the provided MessageBoxButtons to a format suitable for setting the cancel button exclusively. It is intended for use when a specific button should be designated as the cancel action in a panel.