Backdrop is a full-viewport fill control typically used behind modal UI (dialogs, popups) to dim or clear the
content underneath.
It renders a solid rune (space by default) across its bounds using the style resolved from BackdropStyle.
Key points:
HorizontalAlignment = Align.Stretch / VerticalAlignment = Align.Stretch).ZStack to provide a surface behind overlay content.TextBlockStyle.Default)
does not accidentally pick up foreground colors from whatever was rendered underneath.HorizontalAlignment = Align.Stretch, VerticalAlignment = Align.StretchBackdrop uses BackdropStyle from the visual environment.
BackdropStyle.Default is intended for modal dimming (it uses a dim text attribute and a theme-derived background).BackdropStyle.ThemeBackground fills using the current theme background (useful as a generic background clearer for
locally-themed regions).var overlay = new ZStack(
new Backdrop(),
new Dialog().Title("Modal").Content("Hello"));