views:

320

answers:

3

Greetings, a simple WPF question. I would like to have a button with content="<" (the "backward button") How to I achieve this because the following wrong:

Content="<"
+2  A: 
<Button Content="&lt;"/>

Remember that XAML is still XML, so the same escapes apply.

This is also what the compiler tells you in that case, at least it does for me:

The open angle bracket character '<' is not valid in an attribute. It should be written as '&lt;'.

Joey
it does not for me:(
niao
+2  A: 

try this :

Content = "&lt;"
dada686
+2  A: 

Hi,

this article should help, basically you need to use

    <Button Content="&lt;" />
IanR