RenderOptions.SetCacheInvalidationThresholdMinimum Methode

Definitie

Hiermee stelt u de waarde van de CacheInvalidationThresholdMinimum gekoppelde eigenschap in voor een opgegeven afhankelijkheidsobject.

public:
 static void SetCacheInvalidationThresholdMinimum(System::Windows::DependencyObject ^ target, double cacheInvalidationThresholdMinimum);
public static void SetCacheInvalidationThresholdMinimum(System.Windows.DependencyObject target, double cacheInvalidationThresholdMinimum);
static member SetCacheInvalidationThresholdMinimum : System.Windows.DependencyObject * double -> unit
Public Shared Sub SetCacheInvalidationThresholdMinimum (target As DependencyObject, cacheInvalidationThresholdMinimum As Double)

Parameters

target
DependencyObject

Het afhankelijkheidsobject waarop de waarde van de CacheInvalidationThresholdMinimum eigenschap moet worden ingesteld.

cacheInvalidationThresholdMinimum
Double

De nieuwe waarde voor het instellen van de eigenschap op.

Uitzonderingen

De opgegeven target is null.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de optie voor het opslaan van cachehints voor een DrawingBrushgebruikt.

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

// Set the minimum and maximum relative sizes for regenerating the tiled brush.
// The tiled brush will be regenerated and re-cached when its size is
// 0.5x or 2x of the current cached size.
RenderOptions.SetCacheInvalidationThresholdMinimum(drawingBrush, 0.5);
RenderOptions.SetCacheInvalidationThresholdMaximum(drawingBrush, 2.0);
Dim drawingBrush As New DrawingBrush()

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

' Set the minimum and maximum relative sizes for regenerating the tiled brush.
' The tiled brush will be regenerated and re-cached when its size is
' 0.5x or 2x of the current cached size.
RenderOptions.SetCacheInvalidationThresholdMinimum(drawingBrush, 0.5)
RenderOptions.SetCacheInvalidationThresholdMaximum(drawingBrush, 2.0)

Opmerkingen

Gebruik deze methode om de CacheInvalidationThresholdMinimum gekoppelde eigenschap in code in te stellen.

Van toepassing op

Zie ook