Back to Devexpress

ListView.ColumnStyleSubject Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-listview-be6112ac.md

latest1.8 KB
Original Source

ListView.ColumnStyleSubject Property

Gets or sets the style of the Subject column in the List 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 ColumnStyleSubject { get; set; }
vb
Public Property ColumnStyleSubject As Style

Property Value

TypeDescription
Style

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

|

Remarks

Target Type : GridColumn

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

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

See Also

ListView Class

ListView Members

DevExpress.Xpf.Scheduling Namespace