Share via


RenderOptions.GetCacheInvalidationThresholdMinimum(DependencyObject) Méthode

Définition

Retourne la valeur de la propriété jointe CacheInvalidationThresholdMinimum pour un objet de dépendance spécifié.

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

Paramètres

target
DependencyObject

Objet de dépendance à partir duquel récupérer la valeur de la propriété jointe CacheInvalidationThresholdMinimum.

Retours

Valeur actuelle de la propriété jointe CacheInvalidationThresholdMinimum au niveau de l’objet de dépendance spécifié.

Attributs

Exceptions

Le target spécifié a la valeur null.

Exemples

L’exemple suivant montre comment récupérer les valeurs d’indicateur de mise en cache pour un 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

S’applique à

Voir aussi