NativeFileDialogRequest record

Namespace Runic.Platform.Runtime in Runic.Platform.Runtime 0.23.0

public sealed record NativeFileDialogRequest : IEquatable<NativeFileDialogRequest>

Inherits or implements IEquatable.

What one native file dialog asks for, confined to C# provider infrastructure.

Parameters

Save

Whether the dialog selects a save destination rather than existing files.

SuggestedName

The suggested filename of a save dialog.

Constructors

NativeFileDialogRequest

public NativeFileDialogRequest(bool Save, string? SuggestedName)

What one native file dialog asks for, confined to C# provider infrastructure.

Parameters

Save

Whether the dialog selects a save destination rather than existing files.

SuggestedName

The suggested filename of a save dialog.

Properties

AllowMultiple

public bool AllowMultiple { get; init; }

Whether an open dialog lets the user select more than one file. Never set for a save dialog.

Filters

public ImmutableArray<FileDialogFilter> Filters { get; init; }

The file types to offer, the first selected initially; empty offers every file. A hint, never enforced.

InitialDirectory

public string? InitialDirectory { get; init; }

The fully qualified directory to open in, or null for the platform's choice.

Save

public bool Save { get; init; }

Whether the dialog selects a save destination rather than existing files.

ShowFilterChoice

public bool ShowFilterChoice { get; init; }

Whether the dialog should offer a choice between NativeFileDialogRequest.Filters where it does not by itself, as OpenFileOptions.ShowFilterChoice asks.

SuggestedName

public string? SuggestedName { get; init; }

The suggested filename of a save dialog.

Title

public string? Title { get; init; }

The dialog's title, or null for the platform's own, as OpenFileOptions.Title asks.