special character wpf

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

Content="<"

Answers


<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;'.


Need Your Help

Flex mxmlc error loading JVM windows 7 64 bit

java flex sdk

I'am executing this command in my windows 7 console:

c++: convert vector<char> to double

c++ vector buffer

I am using vector&lt;char&gt; to send and receive data via socket. In this vector I stored data of different types. Unsigned Integer and Doubles.