Skip to main content

AppearanceObject.FontStyle Property

Gets or sets the item’s font style. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.1.dll

NuGet Package: DevExpress.Wpf.Docking

Declaration

public FontStyle? FontStyle { get; set; }

Property Value

Type Description
Nullable<FontStyle>

The item’s font style.

Remarks

The following code sample specifies the Panel1 LayoutPanel’s FontFamily, FontSize, FontStretch, FontStyle, and FontWeight properties when the panel is active:

<Window ...
    xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
    <dxdo:DockLayoutManager>
        <dxdo:LayoutGroup x:Name="LayoutRoot" Orientation="Horizontal">
            <dxdo:LayoutPanel Caption="Panel1">
                <dxdo:LayoutPanel.Appearance>
                    <dxdo:Appearance>
                        <dxdo:Appearance.Active>
                            <dxdo:AppearanceObject
                                FontFamily="SegoeUI"
                                FontSize="16"
                                FontStretch="SemiCondensed"
                                FontStyle="Italic"
                                FontWeight="SemiBold" />
                        </dxdo:Appearance.Active>
                    </dxdo:Appearance>
                </dxdo:LayoutPanel.Appearance>
                <TextBox />
            </dxdo:LayoutPanel>
            <dxdo:LayoutPanel Caption="Panel2"/>
        </dxdo:LayoutGroup>
    </dxdo:DockLayoutManager>
</Window>

See Also