Partager via


OutOfBrowserSettings.EnableGPUAcceleration Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that indicates whether to use graphics processor unit hardware acceleration for cached compositions, which potentially results in graphics optimization.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public ReadOnly Property EnableGPUAcceleration As Boolean
public bool EnableGPUAcceleration { get; }
<OutOfBrowserSettings EnableGPUAcceleration="bool" />

Property Value

Type: System.Boolean
true if GPU acceleration is enabled; otherwise, false. The default is false.

Remarks

At the object level, you set cached composition information for graphics with the CacheMode property and BitmapCache values.

During profiling and performance tuning phases of application development, you can set Settings.EnableCacheVisualization to true to produce an overlay visualization of the areas in your UI that are being hardware accelerated.

The EnableGPUAcceleration property is read-only at run time, but you can set it in the out-of-browser configuration. For more information, see How to: Configure an Application for Out-of-Browser Support.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.