C# 如果使用MVVM,如何在Xamarin foms中的标签前添加项目符号?
我需要在标签中添加一个项目符号,但我正在对标签文本使用绑定。以下是我所做的,但绑定不起作用:C# 如果使用MVVM,如何在Xamarin foms中的标签前添加项目符号?,c#,xaml,mvvm,xamarin.forms,C#,Xaml,Mvvm,Xamarin.forms,我需要在标签中添加一个项目符号,但我正在对标签文本使用绑定。以下是我所做的,但绑定不起作用: <Label Text="• {Binding NoticeTitle}" FontAttributes="Bold" FontSize="12" VerticalOptions="StartAndExpand" HorizontalOptions="StartAndExp
<Label Text="• {Binding NoticeTitle}" FontAttributes="Bold"
FontSize="12" VerticalOptions="StartAndExpand"
HorizontalOptions="StartAndExpand" />
尝试使用StringFormat
<Label Text="{Binding NoticeTitle,
StringFormat='• {0}'}" />