RenderOptions.GetCacheInvalidationThresholdMinimum(DependencyObject) Methode

Definitie

Retourneert de waarde van de CacheInvalidationThresholdMinimum gekoppelde eigenschap voor een opgegeven afhankelijkheidsobject.

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

Parameters

target
DependencyObject

Het afhankelijkheidsobject waaruit de waarde van de CacheInvalidationThresholdMinimum gekoppelde eigenschap moet worden opgehaald.

Retouren

De huidige waarde van de CacheInvalidationThresholdMinimum gekoppelde eigenschap voor het opgegeven afhankelijkheidsobject.

Kenmerken

Uitzonderingen

De opgegeven target is null.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de cachehintwaarden voor een 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

Van toepassing op

Zie ook