/// <summary> /// Gets attached scalar binding for specified element. /// </summary> /// <param name="element">The specified element.</param> /// <returns>The result attached scalar binding. <see langword="null"/> if specified element is /// not attached scalar binding target.</returns> public static ScalarBinding GetAttachedScalarBinding(this UIElement element) { element.VerifyNotNull(nameof(element)); return(AttachedScalarBinding.GetAttachedScalarBinding(element)); }
internal static bool IsAttachedToScalarBinding(this UIElement element) { element.VerifyNotNull(nameof(element)); return(AttachedScalarBinding.GetAttachedScalarBinding(element) != null); }