我需要在程序中创建一个非常长的字符串,并且一直在使用String.Format.我遇到的问题是当你有超过8-10个参数时跟踪所有数字.
是否有可能创建某种形式的重载,接受类似于此的语法?
String.Format("You are {age} years old and your last name is {name} ",
{age = "18", name = "Foo"});
我希望TextBlock中的所有字符都以大写形式显示
 <TextBlock Name="tbAbc"
            FontSize="12"
            TextAlignment="Center"
            Text="Channel Name"
            Foreground="{DynamicResource {x:Static r:RibbonSkinResources.RibbonGroupLabelFontColorBrushKey}}" />
字符串通过Binding获取.我不想在字典本身中将字符串设为大写.