Forum Xamarin.Forms

Command Span Not Working Persian

fakhravarifakhravari Member ✭✭✭✭
edited May 2019 in Xamarin.Forms

hi
not working persian lang in run Command

I do not have a problem with English :)
I did not run when Farsi text :o

                    <Label>
                        <Label.FormattedText>
                            <FormattedString>
                                <Span Text="Forget" ForegroundColor="Red">
                                    <Span.GestureRecognizers>
                                        <TapGestureRecognizer Command="{Binding GoToForgetPage}" />
                                    </Span.GestureRecognizers>
                                </Span>
                                <Span Text="Forgot your password?" ForegroundColor="DodgerBlue">
                                    <Span.GestureRecognizers>
                                        <TapGestureRecognizer Command="{Binding GoToForgetPage}" />
                                    </Span.GestureRecognizers>
                                </Span>
                            </FormattedString>
                        </Label.FormattedText>
                    </Label>


    public ICommand GoToForgetPage { get; private set; }

    public LoginPage()
    {
        InitializeComponent();
        GoToForgetPage = new Command(async () => await DisplayAlert("Tapped", "This is a tapped Span.", "OK"));
        BindingContext = this;
    }

Answers

  • YelinZhYelinZh Member, Xamarin Team Xamurai
    edited May 2019

    I reproduced you code and it works well. What did you mean 'not working persian lang in run Command'?

  • fakhravarifakhravari Member ✭✭✭✭
    yes
    to change text = فراموشی رمز عبور
    not workink
  • huangjinshehuangjinshe USMember ✭✭✭

    @fakhravari said:
    yes
    to change text = فراموشی رمز عبور
    not workink

    You're right, maybe it's about RTL, you should report it to Github.

Sign In or Register to comment.