Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

ElementExtensions

Mark Smith edited this page Aug 29, 2016 · 1 revision

ElementExtensions

A set of extension methods on the Xamarin.Forms Element class.

Methods

  • FindOwner : a method to locate a specific type in the parent/child tree, starting at a given element and moving backwards.

  • FindResource : locates a named resource, starting at a specific element and walking up the visual tree. Throws an exception if the resource does not exist.

  • TryFindResource : locates a named resource, starting at a specific element and walking up the visual tree. Returns true/false based on whether the resource exists.