Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid.Views3D Assembly / Xceed.Wpf.DataGrid.Views Namespace / ElementalBlackTheme Class
Members Example


In This Topic
    ElementalBlackTheme Class
    In This Topic
    Represents the Elemental Black theme, which is a basic black theme that was designed to blend perfectly with the black Office 2007 theme.
    Syntax
    'Declaration
     
    <TargetViewAttribute(Xceed.Wpf.DataGrid.Views.CardflowView3D)>
    <TargetSurfaceConfigurationAttribute(Xceed.Wpf.DataGrid.Views.Surfaces.ImageSurfaceConfiguration)>
    <TypeConverterAttribute(Xceed.Wpf.DataGrid.Markup.ThemeConverter)>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class ElementalBlackTheme 
       Inherits Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme
    'Usage
     
    Dim instance As ElementalBlackTheme
    [TargetView(Xceed.Wpf.DataGrid.Views.CardflowView3D)]
    [TargetSurfaceConfiguration(Xceed.Wpf.DataGrid.Views.Surfaces.ImageSurfaceConfiguration)]
    [TypeConverter(Xceed.Wpf.DataGrid.Markup.ThemeConverter)]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class ElementalBlackTheme : Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme 
    Remarks

    Figure 1: Elemental Black theme with default surface configurations
    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>
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             Xceed.Wpf.DataGrid.Views.Theme
                Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme
                   Xceed.Wpf.DataGrid.Views.ElementalBlackTheme

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the ElementBlackTheme class.  
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)Identifies the TitleRegionPosition attached property.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the RegionConfiguration that will be applied to all data regions on all surfaces for which a DataRegionConfiguration has not been explicitly provided.  
    Public PropertyGets or sets the RegionConfiguration that will be applied to all image regions on all surfaces for which a RegionConfiguration has not been explicitly provided.  
    Public PropertyGets or sets the RegionConfiguration that will be applied to all title regions on all surfaces for which a TitleRegionConfiguration has not been explicitly provided.  
    Public Property (Inherited from System.Windows.DependencyObject)
    Public Property (Inherited from System.Windows.Threading.DispatcherObject)
    Public Property (Inherited from System.Windows.DependencyObject)
    Public PropertyGets the surface configurations that will be applied to a multi-surface view's surfaces. (Inherited from Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme)
    Public PropertyGets or sets a value representing the position of the title region on a surface (see Remarks).  
    Top
    Protected Properties
     NameDescription
    Protected Internal PropertyGets the default surface configurations that will be applied to a multi-surface view's surfaces. (Inherited from Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme)
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded.  (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public MethodGets the surface configuration that will be applied to a multi-surface view's surfaces. (Inherited from Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme)
    Public Methodstatic (Shared in Visual Basic)Gets a value representing the position of the title region on a surface (see Remarks).  
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public MethodRetrieves a value indicating whether the specified view type is supported by the theme. (Inherited from Xceed.Wpf.DataGrid.Views.Theme)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Methodstatic (Shared in Visual Basic)Sets a value representing the position of the title region on a surface (see Remarks).  
    Public MethodOverloaded.  (Inherited from System.Windows.DependencyObject)
    Top
    Protected Methods
     NameDescription
    Protected MethodCreates the ThemeKey to be used with this Theme. (Inherited from Xceed.Wpf.DataGrid.Views.Theme)
    Protected Method (Inherited from System.Windows.DependencyObject)
    Protected Internal Method (Inherited from System.Windows.DependencyObject)
    Top
    Extension Methods
     NameDescription
    Public Extension MethodOverloaded. 
    Top
    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