RenderOptions.GetCacheInvalidationThresholdMaximum(DependencyObject) 메서드

정의

지정된 종속성 개체에 대한 CacheInvalidationThresholdMaximum 연결된 속성의 값을 반환합니다.

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

매개 변수

target
DependencyObject

CacheInvalidationThresholdMaximum 연결된 속성의 값을 검색할 종속성 개체입니다.

반환

Double

지정된 종속성 개체에 대한 CacheInvalidationThresholdMaximum 연결 속성의 현재 값입니다.

특성

예외

지정된 targetnull입니다.

예제

다음 예제에서는 에 대한 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

적용 대상

추가 정보