// Returns whether the given DynamicObject is a UIElement or not. internal static bool IsUIElement(DependencyObject o) { return(UIElementType.IsInstanceOfType(o)); }