Represents an attribute that is set on a theme to identify the views to which it can be applied.
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
System.Object
System.Attribute
Xceed.Wpf.DataGrid.Views.TargetViewAttribute
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