Xceed DataGrid for WPF v7.2 Documentation
GetSurfaces Method
Example 


Xceed.Wpf.DataGrid.Views3D Assembly > Xceed.Wpf.DataGrid.Views Namespace > CardflowView3D Class : GetSurfaces Method

The dependency object from which the property value is read.

Gets a value representing the surfaces that are supported by the Cardflow 3D view.
Syntax
'Declaration
 
Public Shared Function GetSurfaces( _

   ByVal obj As DependencyObject _

) As CardflowView3DSurfaces
'Usage
 
Dim obj As DependencyObject

Dim value As CardflowView3DSurfaces

 

value = CardflowView3D.GetSurfaces(obj)
public static CardflowView3DSurfaces GetSurfaces( 

   DependencyObject obj

)

Parameters

obj

The dependency object from which the property value is read.

Return Value

A CardflowView3DSurfaces value representing the surfaces that are supported by the Cardflow 3D view.
Remarks

A multi-surface theme defines the default surface configurations that will be applied to all surfaces provided by a multi-surface view (see DefaultSurfaceConfigurations property). These default configurations can be overridden by adding surface configurations to the theme's SurfaceConfigurations collection and specifying the surfaces to which they will be applied using the multi-surface view's Surfaces attached property (see Examples 1 and 3).

If a surface configuration is added to the SurfaceConfigurations collection but does not specify the surfaces to which it should be applied, it will be ignored. If more than one configuration specifies the same surface, the last one on which the Surfaces attached property was set will be used.

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 image and title surface configuration that will be applied to the center surface and a title surface configuration that will be applied to the left and right side cards.
<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}"/>

 

  </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>

          <xcdg:CardflowView3D.Theme>

             <xcdg:ElementalBlackTheme>

                <xcdg:ElementalBlackTheme.SurfaceConfigurations>

                   <!-- Because an attempt is made to automatically detect an image in the data

                        item, there is no need to specify the name of the field that contains

                        the image in the surface configuration's ImageRegionConfiguration.

                       

                        If a data item contains more than one image you can set the FieldNames

                        property of the ImageRegionConfiguration to the name of the field that

                        contains the desired image. -->

                   <xcdg:ImageAndTitleSurfaceConfiguration xcdg:CardflowView3D.Surfaces="Center"/>

                  

                   <!-- By default, the value of the main column will be displayed in the title regions. -->

                   <xcdg:TitleSurfaceConfiguration xcdg:CardflowView3D.Surfaces="Left, Right"/>

                </xcdg:ElementalBlackTheme.SurfaceConfigurations>

             </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