Add carriage return to string resource in WPF

后端 未结 3 533
醉话见心
醉话见心 2020-12-31 07:15

My applications store all localized text in a string resource dictionary as suggested here http://msdn.microsoft.com/en-us/library/bb295251(VS.85).aspx

             


        
3条回答
  •  难免孤独
    2020-12-31 08:01

    UPDATE: updated answer - better option

    The XAML parser normalized whitespace according to the following rules.

    http://msdn.microsoft.com/en-us/library/cc189036(VS.95).aspx#whitespace

    To instruct your sys:String to preserve whitespace, apply xml:space="preserved to it:

    this
    is
    my
    resource
    

提交回复
热议问题