SeparatorLinePen Property
See Also  Example
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.Views Namespace > CardView Class : SeparatorLinePen Property

Gets or sets the Pen used to draw the line between a "column" of cards.

Syntax

Visual Basic (Declaration) 
Public Property SeparatorLinePen As Pen
C# 
public Pen SeparatorLinePen {get; set;}

Return Value

A reference to the Pen used to draw the separator lines. By default, a null reference (Nothing in Visual Basic).

Example

All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following examples demonstrates how to add separator lines between card columns.
XAMLCopy Code
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> 
  <Grid.Resources> 
    <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" 
                                    Source="{Binding Source={x:Static Application.Current}, 
                                                      Path=Orders}"/> 
   </Grid.Resources> 
   <xcdg:DataGridControl x:Name="OrdersGrid" 
                         ItemsSource="{Binding Source={StaticResource cvs_orders}}"> 
      <xcdg:DataGridControl.View> 
         <xcdg:CardView> 
 
           <xcdg:CardView.SeparatorLinePen> 
             <Pen Thickness="1.5" Brush="Orange" 
                  DashStyle="{x:Static DashStyles.DashDotDot}"/> 
           </xcdg:CardView.SeparatorLinePen> 
         </xcdg:CardView> 
      </xcdg:DataGridControl.View> 
   </xcdg:DataGridControl> 
</Grid>

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also