一切都在标题中。我希望能够在工具提示中添加一些项目符号列表,但到目前为止还没有找到任何简单的方法。
提前致谢!
您想BulletDecorator
使用ToolTip
. 例子:
<ToolTip>
<BulletDecorator>
<BulletDecorator.Bullet>
<Ellipse Height="10" Width="10" Fill="Blue"/>
</BulletDecorator.Bullet>
<TextBlock>Text with a bullet!</TextBlock>
</BulletDecorator>
</ToolTip>
你必须有一个自定义工具提示
一个不错的博客示例 http://stevenhollidge.blogspot.co.il/2012/04/custom-tooltip-and-popup.html
微软信息 http://msdn.microsoft.com/en-us/library/ms745107.aspx
只需在内容中放置某种富文本框或列表框...
只是一个猜测:
为什么不使用unicode 字符(例如 0x2981)和\r\n
谎言休息?
我通过以下方式正确显示了它:
<ListView
x:Name="listView"
Margin="0,-5,0,0"
BackgroundColor="Transparent"
HasUnevenRows="True"
HeightRequest="50"
HorizontalOptions="CenterAndExpand"
ItemsSource="{Binding TradingHoursList}"
SeparatorColor="Transparent">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<RelativeLayout>
<Label Text="•"/>
<Label
Margin="10,0,0,0"
FontAttributes="Italic"
FontFamily="Arial Black"
FontSize="15"
HorizontalOptions="Start"
Text="{Binding}"
VerticalOptions="Start"/>
</RelativeLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>