Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

wpf

I have a label. As the content I want to set the infinity symbol. How can I achieve that?

like image 307
RoflcoptrException Avatar asked Feb 15 '11 19:02

RoflcoptrException


5 Answers

Like this:

<Label Content="&#8734;"/>
like image 171
Yogesh Avatar answered Nov 20 '22 06:11

Yogesh


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

FYI: XML Character Entities and XAML

like image 21
Artem Koshelev Avatar answered Nov 20 '22 07:11

Artem Koshelev


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.

like image 20
Kibbee Avatar answered Nov 20 '22 07:11

Kibbee


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.

like image 1
H.B. Avatar answered Nov 20 '22 05:11

H.B.


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

like image 1
Davide Piras Avatar answered Nov 20 '22 07:11

Davide Piras