<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
			 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
			 xmlns:local="clr-namespace:WorkingWithTriggers;assembly=WorkingWithTriggers"
			 x:Class="WorkingWithTriggers.OnClickEventTriggerXaml"
			 Padding="20, 50, 120, 0">
	 <ContentPage.Resources>
        <ResourceDictionary>
            <Style TargetType="Button">
                <Setter Property="HorizontalOptions" Value="Center" />
                <Setter Property="VerticalOptions"   Value="CenterAndExpand" />
                <Setter Property="BorderWidth"       Value="3" />
                <Setter Property="FontSize"          Value="Large" />

                <Style.Triggers>
                    <EventTrigger Event="Clicked">
                        <local:VisualElementPopTriggerAction />
                    </EventTrigger>
                </Style.Triggers>
            </Style>
        </ResourceDictionary>
    </ContentPage.Resources>

    <StackLayout>

    	<Label Text="EventTrigger in Style" FontSize="Small" />

        <Button Text=" Do this! " Clicked="OnDoThisClick" />

        <Button Text=" Do that! " Clicked="OnDoThatClick" />

    </StackLayout>
</ContentPage>
