1

一切都在标题中。我希望能够在工具提示中添加一些项目符号列表,但到目前为止还没有找到任何简单的方法。

提前致谢!

4

4 回答 4

4

您想BulletDecorator使用ToolTip. 例子:

      <ToolTip>
        <BulletDecorator>
          <BulletDecorator.Bullet>
            <Ellipse Height="10" Width="10" Fill="Blue"/>
          </BulletDecorator.Bullet>
          <TextBlock>Text with a bullet!</TextBlock>
        </BulletDecorator>
      </ToolTip>

有关详细信息,请参阅http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.bulletdecorator(v=vs.100).aspx

于 2013-10-31T06:15:05.607 回答
0

你必须有一个自定义工具提示

一个不错的博客示例 http://stevenhollidge.blogspot.co.il/2012/04/custom-tooltip-and-popup.html

微软信息 http://msdn.microsoft.com/en-us/library/ms745107.aspx

只需在内容中放置某种富文本框或列表框...

于 2013-10-31T06:10:31.177 回答
0

只是一个猜测:
为什么不使用unicode 字符(例如 0x2981)和\r\n谎言休息?

于 2013-10-31T06:18:28.047 回答
-1

我通过以下方式正确显示了它:

<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="&#x2022;"/>
                    <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>
于 2020-02-20T07:21:21.197 回答