Xceed DataGrid for WPF v7.3 Documentation
Welcome to Xceed DataGrid, Editors, and 3D Views for WPF v7.3 / Xceed DataGrid for WPF / DataGrid Fundamentals / Views and Themes / Themes / Multi-surface Themes / Custom Multi-surface Themes / ElementalPinkTheme Class
In This Topic
    ElementalPinkTheme Class
    In This Topic

    The following code provides the implementation of the ElementalPinkTheme class, which was created to support the custom ImageAndDoubleTitleSurfaceConfiguration surface configuration demonstrated in Figure 1.


    Figure 1: ImageAndDoubleTitleSurfaceConfiguration in Elemental Pink theme
     
    VB.NET
    Copy Code
    Imports System
    Imports Xceed.Wpf.DataGrid.Views
    Imports Xceed.Wpf.DataGrid.Views.Surfaces
    Namespace Xceed.Wpf.Documentation
    
      <TargetSurfaceConfiguration( GetType( ImageAndDoubleTitleSurfaceConfiguration ) )> _
      Public Class ElementalPinkTheme
                   Inherits ElementalBlackTheme
        Public Sub New()
          ' the default surface configurations are added to the DefaultSurfaceConfigurations
          ' collection in the ElementalBlackTheme constructor.      
          MyBase.New()
        End Sub
        <TargetRegionPresenterName( "REGION_SecondTitle" )> _
        Public Property DefaultSecondTitleRegionConfiguration As RegionConfiguration
          Get
          End Get
          Set( ByVal Value As RegionConfiguration )
          End Set
        End Property
      End Class
    End Namespace
     
    C#
    Copy Code
    using System;
    using Xceed.Wpf.DataGrid.Views;
    using Xceed.Wpf.DataGrid.Views.Surfaces;
    namespace Xceed.Wpf.Documentation
    {
     [TargetSurfaceConfiguration( typeof( ImageAndDoubleTitleSurfaceConfiguration ) )]
     public class ElementalPinkTheme: ElementalBlackTheme
      {
        public ElementalPinkTheme()
          : base()
        {
          // the default surface configurations are added to the DefaultSurfaceConfigurations
          // collection in the ElementalBlackTheme constructor.     
        }
        [TargetRegionPresenterName( "REGION_SecondTitle" )]
        public RegionConfiguration DefaultSecondTitleRegionConfiguration
        {
          get;
          set;
        }  
      }
    }