Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.DataGrid.Toolkit Assembly / Xceed.Wpf.DataGrid.Views Namespace / DataGridControlBackgroundBrushes Class
Members Example


In This Topic
    DataGridControlBackgroundBrushes Class
    In This Topic
    Static class that provides a variety of brushes that were designed to be used as data-grid backgrounds.
    Syntax
    'Declaration
     
    Public MustInherit NotInheritable Class DataGridControlBackgroundBrushes 
    'Usage
     
    Dim instance As DataGridControlBackgroundBrushes
    public static class DataGridControlBackgroundBrushes 
    Example
    All examples in this topic assume that the grid is bound to the Products table of the Northwind database, unless stated otherwise.
    The following example demonstrates how to apply a one of the custom background brushes (provided by Xceed) to a grid's background.
    <Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
        <Grid.Resources>
           <xcdg:DataGridCollectionViewSource x:Key="cvs_products"
                                           Source="{Binding Source={x:Static Application.Current}, Path=ProductsTable}"/>
          
        </Grid.Resources>
       <xcdg:DataGridControl x:Name="ProductsGrid"
                             ItemsSource="{Binding Source={StaticResource cvs_products}}"
                             Background="{x:Static xcdg:DataGridControlBackgroundBrushes.AuroraRed}">     
           <xcdg:DataGridControl.Columns>
              <xcdg:Column FieldName="ProductName"
                           IsMainColumn="True"/>
           </xcdg:DataGridControl.Columns>
           <xcdg:DataGridControl.View>
              <!-- In Cardflow 3D view, if a theme is not explicitly specified,
                   the Elemental Black theme will be used. -->
              <xcdg:CardflowView3D CardHeightToViewportRatio="0.5"/>
           </xcdg:DataGridControl.View>
        </xcdg:DataGridControl>
     </Grid>
    Inheritance Hierarchy

    System.Object
       Xceed.Wpf.DataGrid.Views.DataGridControlBackgroundBrushes

    Public Properties
     NameDescription
    Public Propertystatic (Shared in Visual Basic)

    Evoking the dancing light shows of Earth’s polar zones, the Aurora Blue background provides a bright display of color to your application.

     
    Public Propertystatic (Shared in Visual Basic)

    Evoking the dancing light shows of Earth’s polar zones, the Aurora Pink background provides a bright display of color to your application.

     
    Public Propertystatic (Shared in Visual Basic)

    Evoking the dancing light shows of Earth’s polar zones, the Aurora Red background provides a bright display of color to your application.

     
    Public Propertystatic (Shared in Visual Basic)Designed for the black Elemental and Office 2007 themes, this simple yet classy background subtly adds the black color-scheme of Office 2007 to your datagrid.  
    Public Propertystatic (Shared in Visual Basic)Designed for the blue Elemental and Office 2007 themes, this simple yet classy background subtly adds the blue color-scheme of Office 2007 to your datagrid.  
    Public Propertystatic (Shared in Visual Basic)Designed for the silver Elemental and Office 2007 themes, this simple yet classy background subtly adds the silver color-scheme of Office 2007 to your datagrid.  
    Public Propertystatic (Shared in Visual Basic)You can see further with Xceed DataGrid for WPF, and this blue horizon background will inspire your end-users to do the same  
    Public Propertystatic (Shared in Visual Basic)You can see further with Xceed DataGrid for WPF, and this orange horizon background will inspire your end-users to do the same  
    Public Propertystatic (Shared in Visual Basic)Add some mysterious nighttime mist to your application with this evocative background.  
    Public Propertystatic (Shared in Visual Basic)

    Bring a ray of sunshine into the end-user experience using this not-so-bright and cheery black background.

     
    Public Propertystatic (Shared in Visual Basic)

    Bring a ray of sunshine into the end-user experience using this bright and cheery blue background.

     
    Public Propertystatic (Shared in Visual Basic)

    Bring a ray of sunshine into the end-user experience using this bright and cheery orange background.

     
    Public Propertystatic (Shared in Visual Basic)Greet your end-users with the sunrise of a new day (or a sunset if they’re working late) when you decorate your application with the yellow Sunrise background.  
    Public Propertystatic (Shared in Visual Basic)Greet your end-users with the sunrise of a new day (or a sunset if they’re working late) when you decorate your application with the blue Sunrise background.  
    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