Back to Devexpress

IDXPopupService.ShowActionSheet(DXPopupSettings, String, DXPopupActionInfo[]) Method

maui-devexpress-dot-maui-dot-mvvm-dot-idxpopupservice-dot-showactionsheet-x28-devexpress-dot-maui-dot-mvvm-dot-dxpopupsettings-system-dot-string-devexpress-dot-maui-dot-mvvm-dot-dxpopupactioninfo-x29.md

latest2.3 KB
Original Source

IDXPopupService.ShowActionSheet(DXPopupSettings, String, DXPopupActionInfo[]) Method

Opens DXPopupActionSheet. The ShowActionSheet method returns Task, which contains a dialog result, and completes when DXPopupActionSheet closes.

Namespace : DevExpress.Maui.Mvvm

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
Task<string> ShowActionSheet(
    DXPopupSettings settings,
    string cancel,
    params DXPopupActionInfo[] actionButtons
)

Parameters

NameTypeDescription
settingsDXPopupSettings

The settings of the pop-up view.

| | cancel | String |

The caption of the Cancel button.

| | actionButtons | DXPopupActionInfo[] |

The collection of action buttons.

|

Returns

TypeDescription
Task<String>

An operation that executes asynchronously, contains a dialog result, and completes when the DXPopupActionSheet closes.

|

Remarks

The dialog result can contain one of the following values:

  • An array of selected options (if a user taps the OK button to close the pop-up option sheet).
  • An array that contains the Cancel button caption (if a user taps the Cancel button to close the pop-up option sheet).
  • Null (if a user taps the scrim to close the pop-up option sheet).
  • The parameter passed to the Close(String[]) method (if you close the pop-up option sheet in code).

See Also

IDXPopupService Interface

IDXPopupService Members

DevExpress.Maui.Mvvm Namespace