Skip to content

SideSubtitle

Static class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

The small grey side subtitle right of a title (page title bar, dialog title bar): both are bottom aligned, and SideSubtitle.Align puts the subtitle on the title’s baseline after arrange.

public static class SideSubtitle
static void Align(TextBlock title, TextBlock subtitle)

Puts the subtitle on the title’s baseline. Both are bottom aligned, but a large title line has more space below the baseline than a 12 px line, so bottom alignment alone leaves the subtitle a few pixels too low. The difference is applied as a whole-pixel render offset (no second layout pass, text stays crisp), then the subtitle is raised by SideSubtitle.Raise. Call it from ArrangeOverride after the base arrange.

const double Raise = 2

Pixels the subtitle sits above the title baseline.