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