1
是否可以使用字符串格式string.Format("stuff happened on {0}", date)
,还可以使用日期格式设置日期的格式?如何日期格式化格式化字符串中的参数
我当然可以使用string.Format("stuff {0}", date.ToString("d"))
;使用鲜为人知的optional parts of the format item
<TextBlock Text={Binding SomeDate,StringFormat='{}stuff happened on {0}'} />