Skip to content

ui::elevation_z

Namespace-scope declarations of ui::elevation_z from the rendering headers.

The elevation (Z, in DIPs) of each Fluent surface class, which shadow_recipe() turns into a shadow. A caller with its own Z (NavigationShell's pane is 32, Tabs control's overlay 16) can pass a raw float instead.

Constants

Name Type Value
Layer float 1.0f A layer surface; casts no shadow.
Control float 2.0f A control at rest/hover (pressed drops to 1); casts none.
Card float 8.0f A card.
ToolTip float 16.0f A tooltip.
Flyout float 32.0f A flyout, menu or other light-dismiss popup.
Dialog float 128.0f A dialog (and a window); the recipe clamps here.