zoukankan      html  css  js  c++  java
  • WPF中XAML中使用String.Format格式化字符串示例

    https://www.cnblogs.com/candyzkn/p/4476832.html

    <TextBlock Text="{Binding jshjL,Converter={StaticResource StringToDecimalKey},StringFormat=¥{0:F2}}"

    <!--<TextBlock Text="{Binding strokeNo,StringFormat={0}为真!}" Style="{StaticResource TextTitleBigStyle}" FontWeight="Bold"/>-->

    <StackPanel Grid.Column="0" Orientation="Horizontal" Margin="50,0,0,0">
                        <TextBlock Text="价税合计(大写):" Style="{StaticResource TextTitleSmallStyle}" Foreground="{StaticResource foreground_pattern_text_brown}" FontSize="10"/>
                        <TextBlock Text="{Binding jshjS,StringFormat=ⓧ{0}}" Margin="10,0,0,0" Style="{StaticResource TextTitleSmallStyle}" FontSize="10"/>
                    </StackPanel>

                    <StackPanel Grid.Column="1" Orientation="Horizontal">
                        <TextBlock Text="(小写):" Style="{StaticResource TextTitleSmallStyle}" Foreground="{StaticResource foreground_pattern_text_brown}" FontSize="10"/>
                        <TextBlock Text="{Binding jshjL,Converter={StaticResource StringToDecimalKey},StringFormat=¥{0:F2}}" Margin="10,0,0,0" Style="{StaticResource TextTitleSmallStyle}" FontSize="10"/>
                    </StackPanel>

  • 相关阅读:
    tornado web 框架的认识
    JavaScript 作用域知识点梳理
    服务器
    git——学习
    webservice——和API接口
    celery——任务调度模块
    supervisor——进程管理工具
    Python常用的语句
    数据类型比较总结
    字符集和字符编码问题
  • 原文地址:https://www.cnblogs.com/changbaishan/p/9212459.html
Copyright © 2011-2022 走看看