Building on from my earlier post here I thought I'd show how we can use VisualTreeHelper to go the other way up the tree and find a parent of a specified type.
Welcome to my blog! I'll be posting any bits and pieces I come across that I think might be interesting or useful for any one else. Hopefully it will be of use to others out there.
Showing posts with label VisualTreeHelper. Show all posts
Showing posts with label VisualTreeHelper. Show all posts
Saturday, 30 March 2013
Thursday, 28 March 2013
WPF - Find Child by Type
WPF provides the VisualTreeHelper class which exposes a few static methods that help us to navigate the visual tree more easily. However, the existing methods don't provide any specific methods for searching the visual tree for a particular element type.
Subscribe to:
Posts (Atom)