Display Action Sheet(String, String, String, String) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Displays a native platform action sheet, allowing the application user to choose from several buttons.
public System.Threading.Tasks.Task<string> DisplayActionSheet (string title, string cancel, string destruction, params string buttons);
member this.DisplayActionSheet : string * string * string * string -> System.Threading.Tasks.Task<string>
Title of the displayed action sheet. Must not be
Text to be displayed in the 'Cancel' button. Can be
null to hide the cancel action.
Text to be displayed in the 'Destruct' button. Can be
null to hide the destructive option.
Text labels for additional buttons. Must not be
An awaitable Task that displays an action sheet and returns the Text of the button pressed by the user.
Developers should be aware that Windows' line endings, CR-LF, only work on Windows systems, and are incompatible with iOS and Android. A particular consequence of this is that characters that appear after a CR-LF, (For example, in the title.) may not be displayed on non-Windows platforms. Developers must use the correct line endings for each of the targeted systems.