Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Open Brace in Label Control


I have usecase to use open brace in XAML form Label control. If i use single quote in front of open brace { , then i am not getting error. but single quote is displayed along with open brace. Can you have fix for displaying open brace alone in Label control?

Best Answer


  • RajaThilakRajaThilak USMember

    Xamarin Form Label Control:

  • JohnHardmanJohnHardman GBUniversity admin

    @RajaThilak - I am not a XAML person, but won't a double brace {{ do what you want?

    If not, it might be worth posting your XAML so that people can review the problem.

  • RajaThilakRajaThilak USMember

    Hi @JohnHardman ,

    I have tried below XAML and was getting result with single quote.

    Your answer solves my problem. Thanks for your help.

  • RajaThilakRajaThilak USMember

    My XAML code is not getting displayed after posing. Is there any specific reason?

  • JohnHardmanJohnHardman GBUniversity admin

    @RajaThilak - To get the XAML to show in my post, I prefixed every line with four spaces (I suspect that a Tab would probably work too).

Sign In or Register to comment.