RenderOptions.SetCacheInvalidationThresholdMinimum Methode

Definition

Legt den Wert der CacheInvalidationThresholdMinimum angefügten Eigenschaft für ein angegebenes Abhängigkeitsobjekt fest.

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)

Parameter

target
DependencyObject

Das Abhängigkeitsobjekt, von dem der Wert der CacheInvalidationThresholdMinimum Eigenschaft festgelegt werden soll.

cacheInvalidationThresholdMinimum
Double

Der neue Wert, auf den die Eigenschaft festgelegt werden soll.

Ausnahmen

Der angegebene target Wert ist null.

Beispiele

Im folgenden Beispiel wird die Verwendung der Option für Zwischenspeicherhinweise für ein DrawingBrush-Element gezeigt.

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)

Hinweise

Verwenden Sie diese Methode, um die CacheInvalidationThresholdMinimum angefügte Eigenschaft im Code festzulegen.

Gilt für:

Weitere Informationen