Get Attached Properties of a type 29-12-2015 14:07:35 C# / WPF 0 Bookmark(s) 236 View(s) public IEnumerable GetAttachedProperties(DependencyObject element) { var markupObject = MarkupWriter.GetMarkupObjectFor(element); foreach (MarkupProperty mp in markupObject.Properties) { if (mp.IsAttached && mp.DependencyProperty != null) { var dpd = DependencyPropertyDescriptor.FromProperty(mp.DependencyProperty, element.GetType()); if (dpd != null) { yield return dpd.DependencyProperty; } } } }