Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ListView.ColumnStyleDuration Property

Gets or sets the style of the Duration column in the List View. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public Style ColumnStyleDuration { get; set; }

#Property Value

Type Description
Style

A Style object that represents a style to be applied to the Duration column.

#Remarks

Target Type: GridColumn

The code snippet below illustrates a custom style that changes the header text.

<dxsch:ListView x:Name="listView">
    <dxsch:ListView.ColumnStyleDuration>
        <Style BasedOn="{StaticResource {dxscht:ListViewGridThemeKey ResourceKey=GridColumn_Duration}}" TargetType="dxg:GridColumn">
            <Setter Property="Header" Value="Custom Header"/>
        </Style>
    </dxsch:ListView.ColumnStyleDuration>
</dxsch:ListView>
See Also