Xceed DataGrid for WPF v7.2 Documentation
EmptySurfaceBrush Property (CardflowView3D)
Example 


Xceed.Wpf.DataGrid.Views3D Assembly > Xceed.Wpf.DataGrid.Views Namespace > CardflowView3D Class : EmptySurfaceBrush Property
Gets or sets the brush that is applied to cards that currently do not display a surface.
Syntax
'Declaration
 
Public Property EmptySurfaceBrush As Brush
'Usage
 
Dim instance As CardflowView3D
Dim value As Brush
 
instance.EmptySurfaceBrush = value
 
value = instance.EmptySurfaceBrush
public Brush EmptySurfaceBrush {get; set;}

Property Value

The Brush to apply to cards that currently do not display a surface. By default, Brushes.Gray.
Remarks
Cards that are in the viewport but outside the range specified by the SideCardsCount property will not display a surface until they are brought within range.
Example

All examples in this topic assume that the grid is bound to the Employees table of the Northwind database, unless stated otherwise.

The following example demonstrates how to provide an empty-surface brush, which will be applied to all cards that do not display a surface.
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
  <Grid.Resources>
   <xcdg:DataGridCollectionViewSource x:Key="cvs_employees"
                                      Source="{Binding Source={x:Static Application.Current}, Path=EmployeesTable}"/>
 

     <LinearGradientBrush x:Key="emptySurfaceBrush"
                          StartPoint="0.5,1"
                          EndPoint="0.5,0">
        <GradientStop Offset="0" Color="#FF0E0E0E"/>
        <GradientStop Offset="0.33" Color="#FF323232"/>
        <GradientStop Offset="0.63" Color="#FF4C4C4C"/>
        <GradientStop Offset="1" Color="#FF949494"/>
     </LinearGradientBrush>
  </Grid.Resources>
 
  <xcdg:DataGridControl x:Name="EmployeesGrid"
                      ItemsSource="{Binding Source={StaticResource cvs_employees}}">
   <xcdg:DataGridControl.Columns>
      <xcdg:Column FieldName="LastName"
                   IsMainColumn="True"/>
   </xcdg:DataGridControl.Columns>
   <xcdg:DataGridControl.View>      
     <xcdg:CardflowView3D SideCardsCount="1"
                          EmptySurfaceBrush="{StaticResource emptySurfaceBrush}">
         <xcdg:CardflowView3D.Theme>
            <xcdg:ElementalBlackTheme/>
         </xcdg:CardflowView3D.Theme>
      </xcdg:CardflowView3D>
   </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

CardflowView3D Class
CardflowView3D Members