콘텐츠로 이동

ControlExtensions.FontSize method (1 of 2)

이 콘텐츠는 아직 번역되지 않았습니다.

Sets the font size resolved once from the current theme’s ThemeMetrics; themes with per-variant metrics re-resolve by calling this inside a WithTheme callback.

public static TextBlock FontSize(this TextBlock textBlock, ThemeFontSize size)
parameter description
textBlock Target text block.
size Theme font size step.

The text block for chaining.

Sets: TextElement.FontSize


ControlExtensions.FontSize<T> method (2 of 2)

Section titled “ControlExtensions.FontSize<T> method (2 of 2)”

Sets the font size resolved once from the current theme’s ThemeMetrics; themes with per-variant metrics re-resolve by calling this inside a WithTheme callback.

public static T FontSize<T>(this T control, ThemeFontSize size)
where T : Control
parameter description
T Control type.
control Target control.
size Theme font size step.

The control for chaining.