wpf StringFormat
来源:互联网 发布:陈程编程 编辑:程序博客网 时间:2024/05/22 05:01
1.<TextBlock Text="{Binding Message, StringFormat={}{0}元}"/>
2.<TextBlock Text="{Binding Message, StringFormat='yyyy-MM-dd'}"/>
3.<TextBlock Text="{Binding Message, StringFormat='yyyy:MM:dd'}"/>
<pre name="code" class="html">4.<TextBlock Text="{Binding Message, StringFormat='{}{0:D2}'}"/> //1 -》 01
5.多重绑定
<ListBox ItemsSource="{StaticResource MyData}"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock> <TextBlock.Text> <MultiBinding StringFormat="{}{0} -- Now only {1:C}!"> <Binding Path="Description"/> <Binding Path="Price"/> </MultiBinding> </TextBlock.Text> </TextBlock> </DataTemplate> </ListBox.ItemTemplate></ListBox>
0 0
- wpf StringFormat
- WPF SP1新功能—StringFormat
- WPF中StringFormat的用法
- WPF中StringFormat的用法
- wpf 中使用StringFormat的技巧
- WPF中StringFormat 格式化 的用法
- wpf 中使用StringFormat的技巧
- WPF中StringFormat的用法 (转)
- stringformat
- StringFormat
- StringFormat
- WPF在XAML中Binding使用StringFormat属性
- wpf中的 绑定Binding MultiBinding StringFormat格式转化问题
- Silverlight/wpf DataGrid TextBox 等控件内容 Binding 中日期格式 StringFormat
- 当stringFormat碰上{和}
- Silverlight之StringFormat、IValueConverter
- Binding StringFormat 笔记
- 字符串格式化工具类StringFormat
- http无状态
- zoj 1201
- 股市基础知识、买盘、卖盘、成交量
- 让QWebView支持下载文件
- 用Unicode迎接未来
- wpf StringFormat
- 快速排序
- 基本排序系列之基数排序
- eclipse 使用JPA Tools 根据数据库表自动生成实体类
- 二分
- 自旋锁(网络博客等学习和整理)
- 配置DNS服务器
- string与int的相互转换
- 时候new一个新线程获取数据并调用hander处理数