Xceed DataGrid for WPF v7.2 Documentation
ImageAndDoubleTitleSurfaceConfiguration Class
Welcome to Xceed DataGrid, Editors, and 3D Views for WPF v7.2 > Xceed DataGrid for WPF > DataGrid Fundamentals > Views and Themes > Themes > Multi-surface Themes > Custom Multi-surface Themes > Custom Surface Configurations > ImageAndDoubleTitleSurfaceConfiguration Class

The following code provides the implementation of the ImageAndDoubleTitleSurfaceConfiguration custom surface configuration class. 

VB.NET
Copy Code
Imports System
Imports System.Windows
Imports Xceed.Wpf.DataGrid.Views.Surfaces
Namespace Xceed.Wpf.Documentation

  Public Class ImageAndDoubleTitleSurfaceConfiguration
               Inherits ImageAndTitleSurfaceConfiguration
    Public Sub New()
      MyBase.New()    
    End Sub
    <TargetRegionPresenterName( "REGION_SecondTitle" )> _
    Public Property SecondTitleRegionConfiguration() As RegionConfiguration
     Get
        Return CType( GetValue( SecondTitleRegionConfigurationProperty ), RegionConfiguration )
     End Get
     Set( ByVal Value As RegionConfiguration )
        SetValue( SecondTitleRegionConfigurationProperty, value )
     End Set
    End Property
    Public Shared ReadOnly SecondTitleRegionConfigurationProperty As DependencyProperty =
        DependencyProperty.Register( "SecondTitleRegionConfiguration", _
                                     GetType( RegionConfiguration ), _
                                     GetType( ImageAndDoubleTitleSurfaceConfiguration ), _
                                     New UIPropertyMetadata( Nothing ) )
  End Class
End Namespace
C#
Copy Code
using System;
using System.Windows;
using Xceed.Wpf.DataGrid.Views.Surfaces;
namespace Xceed.Wpf.Documentation
{

 public class ImageAndDoubleTitleSurfaceConfiguration : ImageAndTitleSurfaceConfiguration
  {
    public ImageAndDoubleTitleSurfaceConfiguration()
      : base()
    {
    }
   [TargetRegionPresenterName( "REGION_SecondTitle" )]
   public RegionConfiguration SecondTitleRegionConfiguration
   {
     get
     {
       return ( RegionConfiguration )GetValue( SecondTitleRegionConfigurationProperty );
     }
     set
     {
       SetValue( SecondTitleRegionConfigurationProperty, value );
     }
   }
    public static readonly DependencyProperty SecondTitleRegionConfigurationProperty = 
        DependencyProperty.Register( "SecondTitleRegionConfiguration", 
                                      typeof( RegionConfiguration ), 
                                      typeof( ImageAndDoubleTitleSurfaceConfiguration ), 
                                      new UIPropertyMetadata( null ) );
  }
}