<?xml version="1.0" encoding="UTF-8"?> <ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Aurora.Design.Components.ImageButton.ImageButton"> <ContentView.GestureRecognizers> <TapGestureRecognizer Tapped="OnButtonTapped" /> </ContentView.GestureRecognizers> <ContentView.Content> <StackLayout VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"> <Image x:Name="imgButton" Aspect="AspectFit" /> </StackLayout> </ContentView.Content> </ContentView>