Back to Devexpress

SchedulerViewBase.ResourceHeaderStyle Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulerviewbase-a85be7b9.md

latest2.1 KB
Original Source

SchedulerViewBase.ResourceHeaderStyle Property

Gets or sets a style applied to resource headers within the View. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public Style ResourceHeaderStyle { get; set; }
vb
Public Property ResourceHeaderStyle As Style

Property Value

TypeDescription
Style

A style applied to resource headers within the View.

|

Remarks

Use the SchedulerViewBase.ResourceHeaderStyle property to customize resource headers’ appearance.

Example

The code sample below shows how to make resource headers horizontal in TimelineView:

xaml
xmlns:dxschv="http://schemas.devexpress.com/winfx/2008/xaml/scheduling/visual"

<dxsch:TimelineView.ResourceHeaderStyle>
    <Style TargetType="dxschv:ResourceHeaderControl">
        <Setter Property="ContentOrientation" Value="Horizontal" />
    </Style>
</dxsch:TimelineView.ResourceHeaderStyle>

The image below illustrates the result.

Use the SchedulerViewBase.ResourceHeaderContentTemplate property to provide a custom resource header content template.

See Also

SchedulerViewBase Class

SchedulerViewBase Members

DevExpress.Xpf.Scheduling Namespace