Open Brace in Label Control

Hi,

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

Answers

  • RajaThilakRajaThilak USMember

    Xamarin Form Label Control:

  • JohnHardmanJohnHardman GBUniversity mod

    @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 mod

    @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.