private static IEnumerable <TagPrefix> GetTagPrefixes(LanguageElement element)
 {
     return(TagPrefix.FindMatching(element.FileNode, TagPrefix.AtCaret(element)));
 }
 void rpRenameXamlNamespacePrefix_CheckAvailability(object sender, CheckContentAvailabilityEventArgs ea)
 {
     ea.Available = TagPrefix.AtCaret(ea.Element) != null;
 }