RunicHostedDialogRequest record

Namespace Runic.Application.Views.Desktop in Runic.Application.Views.Desktop 0.23.0

public sealed record RunicHostedDialogRequest : IEquatable<RunicHostedDialogRequest>

Inherits or implements IEquatable.

A file dialog or message box a guest application asks its host to show over one of its windows. Only the members of its RunicHostedDialogRequest.Kind are set.

Remarks

Experimental; see docs/experimental.md.

Properties

Filters

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

The file types an open or save dialog offers, the first selected; empty for every file.

InitialDirectory

public string? InitialDirectory { get; init; }

The absolute directory a file dialog opens in, or null for the platform's choice.

Kind

public RunicHostedDialogKind Kind { get; }

What the guest asks for.

MessageBox

public DesktopMessageBox? MessageBox { get; init; }

ShowFilterChoice

public bool ShowFilterChoice { get; init; }

Whether a file dialog offers a choice between RunicHostedDialogRequest.Filters where it does not by itself.

SuggestedName

public string? SuggestedName { get; init; }

The file name a save dialog suggests.

Title

public string? Title { get; init; }

A file dialog's title, or null for the platform's own.

Window

public RunicHostedWindow Window { get; }

The window the dialog belongs to; the host shows it owned by that window.