<?xml version="1.0" encoding="UTF-8"?>
<ContentView
     xmlns="http://xamarin.com/schemas/2014/forms"
     xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
     xmlns:hs="clr-namespace:Aurora.Design.Components.HostSelector"
     xmlns:ml="clr-namespace:Aurora.Design.Components.MemberList"
     xmlns:renderedViews="clr-namespace:Sharpnado.Presentation.Forms.RenderedViews;assembly=Sharpnado.Presentation.Forms"
     xmlns:qu="clr-namespace:Aurora.Design.Components.Queue"
     x:Class="Aurora.Design.Views.Party.PartyView">
    <ContentView.Content>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition
                     Height="*"/>
            </Grid.RowDefinitions>
            <StackLayout
                 Grid.Row="0"
                 IsVisible="{Binding IsNotSelectingHost}">
                <Label
                     Text="Party Members"/>
                <ml:MemberList
                     VerticalOptions="FillAndExpand"
                     Members="{Binding Members}"/>
                <Label
                     Text="Queue"/>
                <qu:Queue
                     ItemsSource="{Binding Queue}"
                     SelectedItem="{Binding SelectedSong}"
                     ItemDoubleClicked="{Binding PlayCommand}"/>
            </StackLayout>
            <hs:HostSelector
                 Grid.Row="0"
                 Hostname="{Binding Hostname}"
                 HostCommand="{Binding HostCommand}"
                 JoinCommand="{Binding JoinCommand}"
                 IsVisible="{Binding IsSelectingHost}"/>
        </Grid>
    </ContentView.Content>
</ContentView>