换行符要将新行字符如何设置文本,包括故事板
<VisualState x:Name="Snapped">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Text" Storyboard.TargetName="textBlock">
<DiscreteObjectKeyFrame KeyTime="0" Value="Here is my text.\nThis is new line"/>
</Storyboard>
</VisualState>
输出文本,以取代“\ n”:Here is my text.\nThis is new line
无需换行字符。
评论:如果这个值可以用资源文件中的字符串填充,那将是一个很好的.. !! 无论哪种方式会帮助我,但后来一个是不错的办法。
阅读本? http://stackoverflow.com/questions/183406/xaml-newline-in-string-attribute –