WPF 数据转换

wpf中数据转换有两种:

1 StringFormat/ItemStringFormat

货币{0:C}

科学计数法 {0:E3}

百分数{0:P}

固定小数{0:F?}

短日期 {0:d}

长日期{0:D}

月和日 {0:M}

通用格式 {0:G}

2 值转换器

posted @ 2018-03-30 10:35  dxm809  阅读(221)  评论(0编辑  收藏  举报