We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

EnablePasswordVIsibility do not work on my new project, but it does on the sample project in Github

I have created a new project from visual studio 2017 using syncfusion SfTextInputLayout but the EnablePasswordVisibility do not work.

The XAML of the page is ?


<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:App5"
                 xmlns:inputLayout="clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms"
             x:Class="App5.MainPage">

    <StackLayout>
        <Entry></Entry>

        <inputLayout:SfTextInputLayout
                    x:Name="passwordLayout"
                    CharMaxLength="8"
                    ContainerType="Filled"
                    EnablePasswordVisibilityToggle="true"
                    ErrorText="Enter 5 to 8 characters"
                     EnableHintAnimation="True" FocusedColor="Yellow" UnfocusedColor="Transparent" ShowHelperText="True" TrailingViewPosition="Inside"
                             HelperText="Enter 5 to 8 characters"
                    Hint="Password"
                    ShowCharCount="true">

            <Entry
                        x:Name="password"
                        IsPassword="true" />

            <inputLayout:SfTextInputLayout.LeadingView>
                <Label
                            FontSize="18"
                            Text="K"
                            TextColor="Red"
                            VerticalTextAlignment="Center">
                    <Label.FontFamily>
                        <OnPlatform x:TypeArguments="x:String">
                            <On Platform="iOS" Value="InputLayoutIcons" />
                            <On Platform="Android" Value="InputLayoutIcons.ttf#InputLayoutIcons" />
                            <On Platform="UWP" Value="/Assets/Fonts/InputLayoutIcons.ttf#InputLayoutIcons" />
                        </OnPlatform>
                    </Label.FontFamily>
                </Label>
            </inputLayout:SfTextInputLayout.LeadingView>
        </inputLayout:SfTextInputLayout>


    </StackLayout>

</ContentPage>

Attachment: EmulatorImage_c6f073a2.rar

2 Replies

AN Andre November 19, 2018 10:55 AM UTC

The sample project.

Attachment: App5_a86bb9a2.rar


MP Michael Prabhu M Syncfusion Team November 20, 2018 08:41 AM UTC

Hi Andre, 

Greetings from Syncfusion. 

We are able to reproduce the issue “EnablePasswordVisibilityToggle didn’t work properly”. So, we have created a new support incident to have further follow-ups. We will assist you through incident under your Direct Trac account.  
Our Direct Trac support system can be accessed from the following link:  
                                

Thanks, 
Michael 
 


Loader.
Live Chat Icon For mobile
Up arrow icon