Questions tagged «formatprovider»

5
格式化十进制百分比值?
我想要的是这样的: String.Format("Value: {0:%%}.", 0.8526) %%是该格式提供程序或我正在寻找的任何内容。结果应为:Value: %85.26.。 对于wpf绑定,我基本上需要它,但首先让我们解决一般的格式设置问题: <TextBlock Text="{Binding Percent, StringFormat=%%}" />
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.