Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Entry Triggers are not firing when using a custom Renderer

$
0
0

hi,

i have used the AppCompat to extended my material disign, i have extended entry(TextInputLayout).
but now my trigger applied to my xamarin forms entry , are not firing any more.

does any body have any idea how to solve this?

xaml code:

 <Entry
                Text="{Binding Password.Value, Mode=TwoWay}"
                IsPassword="true"
                AutomationId="password"
                    Placeholder="Password"
                    PlaceholderColor="Black">
                <Entry.Style>
                    <OnPlatform x:TypeArguments="Style"
                        iOS="{StaticResource EntryStyle}"
                        Android="{StaticResource EntryStyle}"
                        WinPhone="{StaticResource UwpEntryStyle}"/>
                </Entry.Style>
                <Entry.Behaviors>
                    <behaviors:TurnValidOnFocusBehavior ValidityObject="{Binding Password}" />
                </Entry.Behaviors>
                <Entry.Triggers>
                    <DataTrigger TargetType="Entry"
                                 Binding="{Binding Password.IsValid}"
                                 Value="False">
                        <Setter Property="effects:LineColorEffect.LineColor" Value="{StaticResource ErrorColor}" />
                    </DataTrigger>
                </Entry.Triggers>
            </Entry>

Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>