Click here to Skip to main content
15,891,204 members
Articles / Desktop Programming / WPF

Walk up the Visual Tree

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
26 Nov 2010CPOL 21.7K   3  
Introduction The following snippet provides a generic method to walk up the visual tree of Silverlight in order to find an element of a given type. It will return the first found item of said type, or null if the search ends at the visual tree root without any results.  Code // walk up the...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Glaux Soft AG, Bern
Switzerland Switzerland
MS in Physics
Secondary School Teacher
Software Developer / Project Manager

Comments and Discussions