[Root] / Xceed.Wpf.DataGrid.Views3D Assembly / Xceed.Wpf.DataGrid.Views Namespace / ChameleonTheme Class / SetGradientDarkColor Method
The dependency object to which the attached property is written.
A Color representing the bottom (dark) color that will be used to create the gradient scheme. See Remarks for default appearance.
Example


In This Topic
    SetGradientDarkColor Method
    In This Topic
    Sets the bottom (dark) color that will be used to create the gradient scheme.
    Syntax
    'Declaration
     
    Public Shared Sub SetGradientDarkColor( _
       ByVal obj As DependencyObject, _
       ByVal value As Color _
    ) 
    'Usage
     
    Dim obj As DependencyObject
    Dim value As Color
     
    ChameleonTheme.SetGradientDarkColor(obj, value)
    public static void SetGradientDarkColor( 
       DependencyObject obj,
       Color value
    )

    Parameters

    obj
    The dependency object to which the attached property is written.
    value
    A Color representing the bottom (dark) color that will be used to create the gradient scheme. See Remarks for default appearance.
    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 change the gradient applied to the card surfaces when using the Chameleon theme.
    <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:Column FieldName="Notes" Visible="False"/>
              <xcdg:Column FieldName="ReportsTo" Visible="False"/>
              <xcdg:Column FieldName="StillEmployed" Visible="False"/>
              <xcdg:Column FieldName="TitleOfCourtesy" Visible="False"/>
           </xcdg:DataGridControl.Columns>
           <xcdg:DataGridControl.View>
              <xcdg:CardflowView3D>
                <xcdg:CardflowView3D.Theme>
                   <xcdg:ChameleonTheme GradientLightColor="Pink"
                                        GradientDarkColor="Purple">
                     
                   </xcdg:ChameleonTheme>                 
                </xcdg:CardflowView3D.Theme>
              </xcdg:CardflowView3D>
           </xcdg:DataGridControl.View>
        </xcdg:DataGridControl>
     </Grid>
    Supported Frameworks

    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