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

DataTrigger in XAML throwing an error

$
0
0

Hello.
I'm trying to use DataTrigger from sample http://blog.xamarin.com/triggers-in-xamarin.forms/ but it throws error.

<Entry x:Name="emailAddress" Text="" Placeholder="email address"/>
                        <Button Text="Send">
                            <Button.Triggers>
                                <DataTrigger TargetType="Button" Binding="{Binding Source={x:Reference emailAddress}, Path=Text.Length}" Value="0">
                                    <Setter Property="IsEnabled" Value="False" />
                                </DataTrigger>
                            </Button.Triggers>
                        </Button>

and got error:
The Property TargetType is required to create a Xamarin.Forms.DataTrigger object.

It's bug?

Forms version : 1.3.5.6337 (1.4pre2 does not work too).


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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