摘要: XAML特殊字符不能直接写,需如下1、特殊字符 字符实体 小于号(<) &lt; 大于号(>) &gt; &符号(&) &amp; 引号(") &quot; 换行 &#13; 注:后面的分号不能少 2、显示一对大括号:{ABC} <Button Content="{}{ABC}"/>或者 <Butt 阅读全文
posted @ 2018-11-27 22:03 马玲 阅读(583) 评论(0) 推荐(1) 编辑
摘要: 数据处理 1、保留两位小数 = float.Parse(数据).ToString("F2") //不准确 例如9.57转换后变为9.60 四舍五入 Math.Round(变量, 位数, MidpointRounding.AwayFromZero).ToString() 2、numeric(18, 2 阅读全文
posted @ 2018-11-27 21:38 马玲 阅读(228) 评论(0) 推荐(0) 编辑