.NET Framework Class Library
RenderCapability..::.Tier Property

Gets a value that indicates the rendering tier for the current thread.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
Syntax

Visual Basic (Declaration)
Public Shared ReadOnly Property Tier As Integer
Visual Basic (Usage)
Dim value As Integer

value = RenderCapability.Tier
C#
public static int Tier { get; }
Visual C++
public:
static property int Tier {
    int get ();
}
JScript
public static function get Tier () : int
XAML
You cannot set this property in XAML.

Property Value

Type: System..::.Int32
An Int32 value whose high-order word corresponds to the rendering tier for the current thread.
Remarks

The return value is one of three possible values:

Return value

Rendering tier

Notes

0x00000000

0

No graphics hardware acceleration available for the application on the device.

0x00010000

1

Partial graphics hardware acceleration available on the video card. This corresponds to a DirectX version that is greater than or equal to 7.0 and less than 9.0.

0x00020000

2

A rendering tier value of 2 means that most of the graphics features of WPF should use hardware acceleration provided the necessary system resources have not been exhausted. This corresponds to a DirectX version that is greater than or equal to 9.0.

For more information on the definitions for the rendering tiers, see Graphics Rendering Tiers.

If the current thread does not have an associated Dispatcher object, one is automatically created.

Examples

The following example shows how to return the rendering tier for the current thread.

C#
// The rendering tier corresponds to the high-order word of the Tier property.
int renderingTier = (RenderCapability.Tier >> 16);
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

Other Resources

Tags :


Page view tracker