Search code examples
wpfxamlmarkup-extensions

How Replace Xaml Text with Text based on MarkUp Extensions automatically


We have some translation mark up extension which looks like this:

TextBlock Text="{l:Translate 'My string'}"

and we want (because we could use some other tool for xaml translation) to replace text tags inside of all project xamls automatically.

Is there any way to find out all nodes or attributes with regex or with xml reader/write to implement this case?


Solution

  • We have used regular expressions which is not the best way but we can leave with it.