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


In This Topic
    TargetViewAttribute Class
    In This Topic
    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

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the TargetViewAttribute class.  
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from System.Attribute)
    Public PropertyGets the view for which the theme applies.  
    Top
    Public Methods
     NameDescription
    Public Method (Inherited from System.Attribute)
    Public Method (Inherited from System.Attribute)
    Public Method (Inherited from System.Attribute)
    Public Method (Inherited from System.Attribute)
    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