///-------------------------------------------------------------------------------------------------
 /// <summary>   Builds the dependency tree for the given <paramref name="element"/>. </summary>
 ///
 /// <param name="element">  The element for which the dependency tree should be build. </param>
 ///
 /// <returns>
 ///     The root node of the dependency tree. The root node is the given
 ///     <paramref name="element"/> and all dependencies are arranged below.
 /// </returns>
 ///-------------------------------------------------------------------------------------------------
 public DependencyTreeNode <T> Build(T element)
 {
     return(new(element, GetSubNodes(_dependencyObjectCollection.GetDependencyObject(element))));
 }
Пример #2
0
        private IEnumerable <T> InternalResolve(T element)
        {
            var dependencyObject = _dependencyObjectCollection.GetDependencyObject(element);

            return(GetDependencies(dependencyObject, false));
        }