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>

  • 相关阅读:
    PAT 甲级 1113 Integer Set Partition
    简单 dp
    #Leetcode# 707. Design Linked List
    #Leetcode# 817. Linked List Components
    #Leetcode# 268. Missing Number
    #Leetcode# 328. Odd Even Linked List
    #Leetcode# 445. Add Two Numbers II
    jzoj 1252. 天平
    2019.01.26【NOIP提高组】模拟 B 组 总结
    【NOIP2011DAY2】计算系数
  • 原文地址:https://www.cnblogs.com/changbaishan/p/9212459.html
Copyright © 2011-2022 走看看