/// <summary>
 /// Gets a style diagnostics for a <see cref="StyledElement"/>.
 /// </summary>
 /// <param name="styledElement">The element.</param>
 public static StyleDiagnostics GetStyleDiagnostics(this StyledElement styledElement)
 {
     return(styledElement.GetStyleDiagnosticsInternal());
 }