Share via


ScrollViewer.UnregisterAnchorCandidate(UIElement) Méthode

Définition

Annule l’inscription d’un UIElement en tant qu’ancre de défilement potentielle.

public:
 virtual void UnregisterAnchorCandidate(UIElement ^ element) = UnregisterAnchorCandidate;
void UnregisterAnchorCandidate(UIElement const& element);
public void UnregisterAnchorCandidate(UIElement element);
function unregisterAnchorCandidate(element)
Public Sub UnregisterAnchorCandidate (element As UIElement)

Paramètres

element
UIElement

UiElement dans la sous-arborescence de ScrollViewer.

Implémente

Remarques

Quand la propriété CanBeScrollAnchor d’un élément passe à false (ou que l’élément est supprimé de l’arborescence visuelle), l’infrastructure localise le premier IScrollAnchorProvider dans la chaîne d’ancêtres de cet élément et appelle automatiquement sa méthode UnregisterAnchorCandidate.

S’applique à

Voir aussi