I got this error in the designer while building my WPF application.

To fix the problem, you must use '< as shown below.
Content="<< Left"
Recently I tried to add a less than sign to a Button control in XAML, I got this error The open angle bracket character '<' is not valid in an attribute.

DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · WPFWPF Simplified: Build Windows Apps Using C# and XAMLGet the bookWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.