AppearanceObject.FontWeight Property
Gets or sets the item’s font weight. This is a dependency property.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v24.2.dll
NuGet Package: DevExpress.Wpf.Docking
Declaration
Property Value
Type | Description |
---|---|
Nullable<FontWeight> | The item’s font weight. |
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