Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use sign "<-" in Content property of Control?

Tags:

c#

wpf

xaml

I've tried to name Button like that:

<Button  Content="<-Delete" /> 

But I've seen the error:

The token " - Delete" is unexpected

How to include < sign in the Content property of Button?

like image 372
StepUp Avatar asked Dec 08 '15 07:12

StepUp


People also ask

What are content controls in forms?

Content controls are individual controls that you can add and customize for use in templates, forms, and documents. For example, many online forms are designed with a drop-down list control that provides a restricted set of choices for the user of the form.

How do I edit content control text in Word?

On the Developer tab, in the Controls group, click Design Mode. Click the content control where you want to revise the placeholder instructional text. Edit the placeholder text and format it any way you want.


1 Answers

Use :

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

Reference for Use Special Characters in XAML

enter image description here

like image 122
sujith karivelil Avatar answered Sep 29 '22 11:09

sujith karivelil