The following code provides the implementation of the ElementalPinkTheme class, which was created to support the custom ImageAndDoubleTitleSurfaceConfiguration surface configuration demonstrated in Figure 1.
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; } } } |