﻿<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="Xamarin.Forms.Controls.GalleryPages.ShapesGalleries.ClipViewsGallery"
    Title="ClipViews Gallery">
    <ContentPage.Resources>
        <ResourceDictionary>

            <EllipseGeometry

                x:Key="EllipseClip"
                RadiusX="300"
                RadiusY="50" />

        </ResourceDictionary>
    </ContentPage.Resources>
    <ContentPage.Content>
        <ScrollView>
            <StackLayout
                Padding="12">
                <Button
                    BackgroundColor="Red"
                    Text="Button"
                    Clip="{StaticResource EllipseClip}" />
                <DatePicker
                    BackgroundColor="Red"
                    Clip="{StaticResource EllipseClip}" />
                <Entry
                    BackgroundColor="Red"
                    Placeholder="Entry"
                    Clip="{StaticResource EllipseClip}" />
                <Editor
                    BackgroundColor="Red"
                    Placeholder="Editor"
                    Clip="{StaticResource EllipseClip}" />
                <Grid
                    BackgroundColor="Red"
                    HeightRequest="50"
                    Clip="{StaticResource EllipseClip}">
                    <Label
                        Text="Grid" />
                </Grid>
                <SearchBar
                    BackgroundColor="Red"
                    Clip="{StaticResource EllipseClip}" />
                <TimePicker
                    BackgroundColor="Red"
                    Clip="{StaticResource EllipseClip}" />
            </StackLayout>
        </ScrollView>
    </ContentPage.Content>
</ContentPage>
