79438712

Date: 2025-02-14 08:15:02
Score: 1
Natty:
Report link

The best solution to this problem i have found is the class VisualTreeHelper.

The method GetChild(parent, index) will return the child at a certain point, and if you have multiple and dont know the exact number, GetChildren(parent) will provide all to filter.

This transcends normal .Child or .Parent properties and looks for elements that are subordinate to the element you provide within the visual tree.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Maximilian Hofmann