ContentPresenter.FontStyle Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the font style for the presented content.
public:
property FontStyle FontStyle { FontStyle get(); void set(FontStyle value); };
FontStyle FontStyle();
void FontStyle(FontStyle value);
C#
public FontStyle FontStyle { get; set; }
var fontStyle = contentPresenter.fontStyle;
contentPresenter.fontStyle = fontStyle;
Public Property FontStyle As FontStyle
XAML
<ContentPresenter FontStyle="fontStyleMemberName"/>
The requested font style, which is a FontStyle constant name. The default is Normal.
Product | Versions |
---|---|
Windows App SDK | 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |