Detent

A height where a modal sheet may rest.
public readonly record struct Detent

Methods

Fraction

A fraction of the sheet's available height.

public static Detent Fraction(
  double fraction)
ParameterSummary
double fractionA value greater than 0 and no greater than 1.

Returns

  • Detent: The proportional detent.

Exceptions

Height

A fixed height in points, clamped to the sheet's available height.

public static Detent Height(
  double height)
ParameterSummary
double heightThe height in points.

Returns

  • Detent: The fixed-height detent.

Exceptions

Fields

Content

The page's measured content and navigation chrome, updated as layout changes and capped at the available height.

Type: Detent

public static readonly Detent Content

Large

The system full height.

Type: Detent

public static readonly Detent Large

Medium

The system medium height.

Type: Detent

public static readonly Detent Medium