Skip to content

IconLabel

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

The one icon + text row used everywhere (toolbar buttons, navigation rail, menus, dialogs). Both parts are vertically centered; measured with crisp text (pixel-aligned baselines) no Inter correction is needed, so its capitals line up with the icon center. Never build icon + text rows by hand.

public sealed class IconLabel : Grid

Inherits Grid

Set them in XAML (<ui:IconLabel Name="..." />) or bind them.

Name Type Description
Icon Geometry? The icon ({DynamicResource Icon.refresh}).
IsTextVisible bool False shows only the icon (the collapsed navigation rail).
Spacing double Space between icon and text.
Text string? The text right of the icon.
TextBlock TextBlock { get; }

The inner text block, so styles can target it as c|IconLabel TextBlock.