Xceed DataGrid for WPF v7.2 Documentation
ChameleonTheme Class
Members  Example 


Xceed.Wpf.DataGrid.Views3D Assembly > Xceed.Wpf.DataGrid.Views Namespace : ChameleonTheme Class
Represents the Chameleon theme, which is a two-tone theme that provides full control over its gradient color scheme.
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 ChameleonTheme 
   Inherits Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme
'Usage
 
Dim instance As ChameleonTheme
[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 ChameleonTheme : Xceed.Wpf.DataGrid.Views.Surfaces.MultiSurfaceTheme 
Remarks

Figure 1: Chameleon theme with default surface configurations
                and color scheme
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 set a multi-surface theme using property element syntax.
<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.View>
        <xcdg:CardflowView3D>
           <xcdg:CardflowView3D.Theme>
              <xcdg:ChameleonTheme/>
           </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.ChameleonTheme

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

ChameleonTheme Members
Xceed.Wpf.DataGrid.Views Namespace