Esempio n. 1
0
        /// <summary>
        /// Returns a collection of child elements.
        /// </summary>
        public static IEnumerable <DependencyObject> Elements(this DependencyObject item)
        {
            ILinqTree <DependencyObject> adapter = new VisualTreeAdapter(item);

            foreach (var child in adapter.Children())
            {
                yield return(child);
            }
        }