UIElement.FindSubElementsForTouchTargeting(Point, Rect) Metodo

Definizione

Consente a una sottoclasse UIElement di esporre elementi figlio che consentono di risolvere la destinazione del tocco.

protected:
 virtual IIterable<IIterable<Point> ^> ^ FindSubElementsForTouchTargeting(Point point, Rect boundingRect) = FindSubElementsForTouchTargeting;
IIterable<IIterable<Point>> FindSubElementsForTouchTargeting(Point const& point, Rect const& boundingRect);
protected virtual IEnumerable<IEnumerable<Point>> FindSubElementsForTouchTargeting(Point point, Rect boundingRect);
function findSubElementsForTouchTargeting(point, boundingRect)
Protected Overridable Function FindSubElementsForTouchTargeting (point As Point, boundingRect As Rect) As IEnumerable(Of IEnumerable(Of Point))

Parametri

point
Point

Punto toccato.

boundingRect
Rect

Limiti usati per la tolleranza tocco.

Restituisce

Set di set di punti. Questi rappresentano i vertici dei sottoelementi intersecati dal punto di tocco specificato (più tolleranza).

Commenti

I punti nell'elenco sono in ordine z decrescente: la parte superiore nello stack di rendering viene visualizzata prima nell'elenco.

FindElementsInHostCoordinates è un metodo helper di classe statica simile usato anche per l'esame dell'albero degli oggetti generale e di hit test. Tuttavia, FindSubElementsForTouchTargeting aggiunge la perfezionamento di un input Rect da usare per la tolleranza tocco.

Se si sta programmando usando C#, il tipo di valore restituito di questo metodo viene proiettato come raccolta generica IEnumerable che contiene elementi UIElement .

Si applica a

Vedi anche