【发布时间】:2013-10-31 06:00:13
【问题描述】:
一切都在标题中。我希望能够在工具提示中添加一些项目符号列表,但到目前为止还没有找到任何简单的方法。
提前致谢!
【问题讨论】:
-
你试过我给出的答案了吗?
-
参见。我的 cmets 在你的回答中
一切都在标题中。我希望能够在工具提示中添加一些项目符号列表,但到目前为止还没有找到任何简单的方法。
提前致谢!
【问题讨论】:
您希望将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 characters(例如 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>
【讨论】: