Skip to main content

AppearanceObject.FontSize Property

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

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v23.2.dll

NuGet Package: DevExpress.Wpf.Docking

Declaration

public double FontSize { get; set; }

Property Value

Type Description
Double

The item’s font size.

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