最新のbing APIの更新で何が変わったのかわかりません。しばらくアプリを更新していませんでしたが、以前の正規表現で IRouteService 応答からタグが取り除かれなくなりました。
//Remove all Bing Maps tags around keywords.
Regex regex = new Regex("<[/a-zA-Z:]*>", RegexOptions.IgnoreCase | RegexOptions.Multiline);
textBlock1.Text = regex.Replace(directions.ToString(), string.Empty);
予期しない結果:
Leg #1
1. 15.034 Head <VirtualEarth:span class="heading">northeast</VirtualEarth:span>.
2. 8.4 Turn <VirtualEarth:TurnDir>left</VirtualEarth:TurnDir>
3. 0 You will reach your destination . The destination is on your left.
予想された結果
Leg #1
1. 15.034 Head northeast.
2. 8.4 Turn left
3. 0 You will reach your destination . The destination is on your left.
明らかな何かがあなたたちに突き出ているのではないかと思っていました! ご覧いただきありがとうございます。