Share via


ScrollViewer.UnregisterAnchorCandidate(UIElement) Método

Definición

Anula el registro de un UIElement como un posible delimitador de desplazamiento.

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)

Parámetros

element
UIElement

UiElement dentro del subárbol del ScrollViewer.

Implementaciones

Comentarios

Cuando la propiedad CanBeScrollAnchor de un elemento cambia a false (o el elemento se quita del árbol visual), el marco busca el primer IScrollAnchorProvider en la cadena de antecesores de ese elemento y llama automáticamente a su método UnregisterAnchorCandidate.

Se aplica a

Consulte también