Aracılığıyla paylaş


RenderOptions.GetCacheInvalidationThresholdMaximum(DependencyObject) Yöntem

Tanım

Belirtilen bağımlılık nesnesi için ekli özelliğin CacheInvalidationThresholdMaximum değerini döndürür.

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

Parametreler

target
DependencyObject

Ekli özelliğin değerinin CacheInvalidationThresholdMaximum alındığı bağımlılık nesnesi.

Döndürülenler

Belirtilen bağımlılık nesnesindeki CacheInvalidationThresholdMaximum ekli özelliğin geçerli değeri.

Öznitelikler

Özel durumlar

Belirtilen target değeridir null.

Örnekler

Aşağıdaki örnekte bir için DrawingBrushönbelleğe alma ipucu değerlerinin nasıl alınıyor olduğu gösterilmektedir.

// 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

Şunlara uygulanır

Ayrıca bkz.