Skip to content

Empty

Empty is a lookless ContentControl whose template draws a dashed rounded border behind whatever content it hosts. It is compositional: a consumer nests NaviusEmptyMedia, NaviusEmptyTitle, and NaviusEmptyDescription inside a vertical panel as the single Content, matching the web contract’s child-content model.

xmlns:empty="clr-namespace:Navius.Wpf.Ui.Empty;assembly=Navius.Wpf.Ui"
<empty:NaviusEmpty>
<StackPanel>
<empty:NaviusEmptyMedia Variant="Icon" Content="?" HorizontalAlignment="Center" />
<empty:NaviusEmptyTitle Content="No results" HorizontalAlignment="Center" />
<empty:NaviusEmptyDescription Content="Try a different search term." HorizontalAlignment="Center" />
</StackPanel>
</empty:NaviusEmpty>
Property Type Default From Description
Content object - ContentControl The empty-state body; typically a panel nesting NaviusEmptyMedia/NaviusEmptyTitle/NaviusEmptyDescription.
Variant NaviusEmptyMediaVariant (Default, Icon) Default NaviusEmptyMedia Icon renders a muted rounded 40x40 tile sized for a glyph; Default is a bare, unstyled slot.

None of NaviusEmpty, NaviusEmptyMedia, NaviusEmptyTitle, or NaviusEmptyDescription ship a custom automation peer; each is a plain ContentControl subclass, so whatever peer WPF’s ContentControl provides by default applies unmodified. The unit suite verifies template application for NaviusEmpty with all three sub-parts composed, and for NaviusEmptyMedia in its Icon variant.