But I saw an e...">

Can I use the "<-" sign in the Content property of a control?

I tried calling Button as follows:

 <Button Content="<-Delete" /> 

But I saw an error:

The symbol "- Delete" unexpectedly

How to enable the < sign in the Content Button property?

+7
source share
2 answers

Using:

 <Button Content="&lt;-Delete" /> 

Link for Use Special Characters in XAML

enter image description here

+8
source

you can use

 <Button Content="&lt;-Delete" /> 

or

 <Button Content="&#60;-Delete" /> 

to complete this task.

+4
source