RenderOptions.GetCacheInvalidationThresholdMaximum(DependencyObject) Methode

Definition

Gibt den Wert der CacheInvalidationThresholdMaximum angefügten Eigenschaft für ein angegebenes Abhängigkeitsobjekt zurück.

public:
 static double GetCacheInvalidationThresholdMaximum(System::Windows::DependencyObject ^ target);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.Media.TileBrush))]
public static double GetCacheInvalidationThresholdMaximum(System.Windows.DependencyObject target);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.Media.TileBrush))>]
static member GetCacheInvalidationThresholdMaximum : System.Windows.DependencyObject -> double
Public Shared Function GetCacheInvalidationThresholdMaximum (target As DependencyObject) As Double

Parameter

target
DependencyObject

Das Abhängigkeitsobjekt, aus dem der Wert der CacheInvalidationThresholdMaximum angefügten Eigenschaft abgerufen werden soll.

Gibt zurück

Der aktuelle Wert der CacheInvalidationThresholdMaximum angefügten Eigenschaft für das angegebene Abhängigkeitsobjekt.

Attribute

Ausnahmen

Der angegebene target Wert ist null.

Beispiele

Das folgende Beispiel zeigt, wie Die Zwischenspeicherungshinweiswerte für ein DrawingBrush.

// Get the caching hint option for the brush.
CachingHint cachingHint = RenderOptions.GetCachingHint(drawingBrush);

if (cachingHint == CachingHint.Cache)
{
    // Get the minimum and maximum relative sizes for regenerating the tiled brush.
    double minimum = RenderOptions.GetCacheInvalidationThresholdMinimum(drawingBrush);
    double maximum = RenderOptions.GetCacheInvalidationThresholdMaximum(drawingBrush);

    // Perform action based on cache values...
}
' Get the caching hint option for the brush.
Dim cachingHintOpt As CachingHint = RenderOptions.GetCachingHint(drawingBrush)

If cachingHintOpt = CachingHint.Cache Then
    ' Get the minimum and maximum relative sizes for regenerating the tiled brush.
    Dim minimum As Double = RenderOptions.GetCacheInvalidationThresholdMinimum(drawingBrush)
    Dim maximum As Double = RenderOptions.GetCacheInvalidationThresholdMaximum(drawingBrush)

    ' Perform action based on cache values...
End If

Gilt für:

Weitere Informationen