Back to Devexpress

StripLineBase.PrintControlStyle Property

wpf-devexpress-dot-xpf-dot-gantt-dot-striplinebase-5d0aca21.md

latest2.6 KB
Original Source

StripLineBase.PrintControlStyle Property

Gets or sets the style applied to strip lines 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

Declaration

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

Property Value

TypeDescription
Style

The style applied to strip lines in the printed GanttControl.

|

Remarks

Target Type: StripLineControl

Example

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
...
    <dxgn:GanttControl.View>
        <dxgn:GanttView ...>
            <dxgn:GanttView.StripLines>
                <dxgn:StripLine
                    Background="#3FF5BD53"
                    BorderBrush="#FFF5BD53"
                    BorderThickness="1,0"
                    Duration="1.0:0:0"
                    StartDate="08/28/2020">
                    <!-- Change printed strip line appearance -->
                    <dxgn:StripLine.PrintControlStyle>
                        <Style TargetType="{x:Type dxgn:StripLineControl}">
                            <Setter Property="Background" Value="Aqua"/>
                            <Setter Property="BorderBrush" Value="DarkBlue"/>
                        </Style>
                    </dxgn:StripLine.PrintControlStyle>
                </dxgn:StripLine>
            </dxgn:GanttView.StripLines>
        </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

StripLineBase Class

StripLineBase Members

DevExpress.Xpf.Gantt Namespace