|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
RenderOptions.GetCachingHint, méthode
.NET Framework 4.5
Espace de noms : System.Windows.Media
Assembly : PresentationCore (dans PresentationCore.dll)
[AttachedPropertyBrowsableForTypeAttribute(typeof(TileBrush))] public static CachingHint GetCachingHint( DependencyObject target )
Paramètres
- target
- Type : System.Windows.DependencyObject
L'objet de dépendance à partir duquel récupérer la valeur de la propriété jointe de CachingHint .
Valeur de retour
Type : System.Windows.Media.CachingHint| Exception | Condition |
|---|---|
| ArgumentNullException |
// 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... }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.