wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-223feaa1.md
Gets or sets the style applied to resources in the printed GanttControl. This is a dependency property.
Namespace : DevExpress.Xpf.Gantt
Assembly : DevExpress.Xpf.Gantt.v25.2.dll
NuGet Package : DevExpress.Wpf.Gantt
public Style PrintResourceStyle { get; set; }
Public Property PrintResourceStyle As Style
| Type | Description |
|---|---|
| Style |
The style applied to resources in the printed GanttControl.
|
Target Type: GanttResourceControl.
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
...
<dxgn:GanttControl.View>
<dxgn:GanttView ...>
<dxgn:GanttView.PrintResourceStyle>
<Style TargetType="{x:Type dxgn:GanttResourceControl}">
<Setter Property="Background" Value="PaleVioletRed"/>
<Setter Property="CornerRadius" Value="0"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
</dxgn:GanttView.PrintResourceStyle>
</dxgn:GanttView>
</dxgn:GanttControl.View>
</dxgn:GanttControl>
Refer to the Print and Export topic for more information on how to customize the printed document.
See Also