开发者

WPF: how to set infinity symbol as content for a label?

I have a label. As the content I want to set the infini开发者_高级运维ty symbol. How can I achieve that?

WPF: how to set infinity symbol as content for a label?


<Label Content="&#x221E;" ... />

FYI: XML Character Entities and XAML


Like this:

<Label Content="&#8734;"/>


The infinity symbol is represented by the unicode character 221e. If you follow the link it shows fonts that support the character. It seems like most popular fonts do, including Arial, which I think is the default font for labels.


Somethig like this (might need to specify size of the image):

<Label>
    <Label.Content>
        <Image Source="URI to Image"/>
    </Label.Content>
</Label>

Edit: Since you posted a picture i assumed you have an image, if you want the symbol as text say so.


See here: http://www.fileformat.info/info/unicode/char/221e/index.htm

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜