I am using the rich text box to display a long legal disclaimer that requires a lot of different formats and also contains links in it. Because of this my text box consists of many span and hyperlink tags. Because our product is international I need to localize. Unfortunately it appears that the only way a span tag accepts text is to have it statically placed at design time which obviously will not work for me. I have tried multiple things:
1. Text={Binding Converter={StaticResource LabelConverter},ConverterParameter=KEY}
this does not work because text does not allow binding.
I have tried other stuff as well but since Span is not dependency object none of it has worked. I also tried your suggestion in the documentation about extending your LocalizationManager but span does not allow attachment of resource key either. Is there something else I should do here or is span not really useful unless I have static design time text? Is there another approach I should take besides span?
1. Text={Binding Converter={StaticResource LabelConverter},ConverterParameter=KEY}
this does not work because text does not allow binding.
I have tried other stuff as well but since Span is not dependency object none of it has worked. I also tried your suggestion in the documentation about extending your LocalizationManager but span does not allow attachment of resource key either. Is there something else I should do here or is span not really useful unless I have static design time text? Is there another approach I should take besides span?