RenderOptions.GetCacheInvalidationThresholdMinimum(DependencyObject) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回所指定相依性物件的 CacheInvalidationThresholdMinimum 附加屬性值。
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
參數
- target
- DependencyObject
要從中擷取 CacheInvalidationThresholdMinimum 附加屬性值的相依性物件。
傳回
所指定相依性物件上 CacheInvalidationThresholdMinimum 附加屬性的目前值。
- 屬性
例外狀況
指定的 target
為 null
。
範例
下列範例示範如何擷取 的 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