Xceed DataGrid for WPF v7.2 Documentation
TargetViewAttribute Class
Members  Example 


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.Views Namespace : TargetViewAttribute Class
Represents an attribute that is set on a theme to identify the views to which it can be applied.
Syntax
'Declaration
 
<AttributeUsageAttribute(AttributeTargets.Class, 
   Inherited=True, 
   AllowMultiple=True)>
Public NotInheritable Class TargetViewAttribute 
   Inherits System.Attribute
'Usage
 
Dim instance As TargetViewAttribute
[AttributeUsage(AttributeTargets.Class, 
   Inherited=true, 
   AllowMultiple=true)]
public sealed class TargetViewAttribute : System.Attribute 
Example
The following example demonstrates how to use the TargetViewAttribute to identify the view (CustomView) to which the theme (CustomTheme) applies.
[ TargetView( typeof( CustomView ) ) ]
public class CustomTheme : Theme
{
}
< TargetView( GetType( CustomView ) ) >
Public Class CustomTheme
     Inherits Theme
End Class
Inheritance Hierarchy

System.Object
   System.Attribute
      Xceed.Wpf.DataGrid.Views.TargetViewAttribute

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

Reference

TargetViewAttribute Members
Xceed.Wpf.DataGrid.Views Namespace