【发布时间】:2021-07-06 22:02:05
【问题描述】:
如何在MultiBinding Label 中显示x:Static 变量?
<Label>
<Label.Text>
<MultiBinding StringFormat="{}{0} {1}">
<Binding Path="x:Static resources:AppResources.FirstName"/>
<Binding Path="User.FirstName"/>
</MultiBinding>
</Label.Text>
</Label>
想要的结果:
名字:约翰
【问题讨论】:
-
stackoverflow.com/questions/25160189/…,或将 {0} 放入资源中。
标签: c# xamarin xamarin.forms