Xceed DataGrid for WPF v7.2 Documentation
SeparatorLinePen Property (CardView)
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
'Declaration
 
Public Property SeparatorLinePen As Pen
'Usage
 
Dim instance As CardView

Dim value As Pen

 

instance.SeparatorLinePen = value

 

value = instance.SeparatorLinePen
public Pen SeparatorLinePen {get; set;}

Property 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.
<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

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CardView Class
CardView Members