XAML特殊字符

XAML特殊字符不能直接写,需如下
1、特殊字符 字符实体
  小于号(<) &lt;
  大于号(>) &gt;
  &符号(&) &amp;
  引号(") &quot;
  换行 &#13;

注:后面的分号不能少

2、显示一对大括号:{ABC}

<Button Content="{}{ABC}"/>
或者

 <Button>
  <Button.Content>
    {ABC}
  </Button.Content>
 </Button>

  

posted @ 2018-11-27 22:03  马玲  阅读(583)  评论(0编辑  收藏  举报