<?xml version="1.0" encoding="utf-8" ?>
<pages:CallbackPage xmlns="http://xamarin.com/schemas/2014/forms"
                    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                    xmlns:pages="clr-namespace:PhilExample.UI.Pages"
                    xmlns:intfs="clr-namespace:PhilExampleCrawler.Common.Interfaces;assembly=PhilExampleCrawler.Common"
                    xmlns:ffimg="clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"
                    xmlns:vm="clr-namespace:PhilExample.VMs"
                    xmlns:views="clr-namespace:PhilExample.UI.Views"
                    x:Class="PhilExample.UI.Pages.SelectRadiusPage" 
                    x:TypeArguments="intfs:ICategory"
                    x:DataType="vm:SelectRadiusVM"
                    Shell.NavBarIsVisible="False">


    <ContentPage.Content>
        <StackLayout Margin="24,24,24,0" 
                     HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">

            <views:PopupTitleView Title="Suchradius" CloseCommand="{Binding CloseCommand}"/>


            <StackLayout Margin="0,12,0,0" Padding="0" Spacing="0"
                            HorizontalOptions="FillAndExpand">

                <CollectionView Margin="0,0,0,0"
                                ItemsSource="{Binding Radii}"
                                HorizontalScrollBarVisibility="Never"
                                VerticalScrollBarVisibility="Never"
                                ItemsLayout="VerticalList">

                    <CollectionView.ItemTemplate>
                        <DataTemplate>
                            <views:CategoryMiniView />
                        </DataTemplate>
                    </CollectionView.ItemTemplate>
                </CollectionView>
            </StackLayout>

            </StackLayout>
    </ContentPage.Content>
</pages:CallbackPage>