Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RenderOptions.SetCacheInvalidationThresholdMinimum Method

Sets the cache invalidation threshold minimum for the DependencyObject.

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

public static void SetCacheInvalidationThresholdMinimum (
	DependencyObject target,
	double cacheInvalidationThresholdMinimum
)
public static void SetCacheInvalidationThresholdMinimum (
	DependencyObject target, 
	double cacheInvalidationThresholdMinimum
)
public static function SetCacheInvalidationThresholdMinimum (
	target : DependencyObject, 
	cacheInvalidationThresholdMinimum : double
)
You cannot use methods in XAML.

Parameters

target

The DependencyObject to set.

cacheInvalidationThresholdMinimum

A Double value that represents the cache invalidation threshold minimum.

The cacheInvalidationThresholdMinimum parameter value is a relative size value that corresponds to the current cached target size. For example, setting cacheInvalidationThresholdMinimum to 0.5, causes the target to be regenerated and cached when the size of target reaches the relative threshold sizes of 0.5, 0.25, and so forth. When target is between threshold sizes, it does not need to be regenerated—the cached copy of target is used.

The following example shows how to use the caching hint option for a DrawingBrush.

// Set the minimum and maximum relative sizes for regenerating the tiled brush.
RenderOptions.SetCacheInvalidationThresholdMinimum(drawingBrush, 0.5);
RenderOptions.SetCacheInvalidationThresholdMaximum(drawingBrush, 2.0);

// The tiled brush will be regenerated when the size is
//   0.5x, 0.25x (and so forth)
// and
//   2x, 4x, 8x (and so forth)
// of the original size.

// Set the caching hint option for the brush.
RenderOptions.SetCachingHint(drawingBrush, CachingHint.Cache);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft