<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 xmlns:i="https://github.com/projektanker/icons.avalonia"
			 xmlns:vm="using:Needlework.Net.ViewModels.Pages.Endpoints"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="Needlework.Net.Views.Pages.Endpoints.EndpointTabItemContentView"
			 x:DataType="vm:EndpointTabItemContentViewModel">
	<Grid RowDefinitions="auto,auto,*" ColumnDefinitions="*">
		<Menu Grid.Row="0"
			  Grid.Column="0">
			<MenuItem Header="_New tab">
				<MenuItem Header="LCU"
						  Command="{Binding AddEndpointCommand}"
						  CommandParameter="{x:Static vm:Tab.LCU}"/>
				<MenuItem Header="Game Client"
						  Command="{Binding AddEndpointCommand}"
						  CommandParameter="{x:Static vm:Tab.GameClient}"/>
			</MenuItem>
		</Menu>
		<Separator Grid.Row="1"
				   Grid.Column="0"/>
		<Grid Grid.Row="2"
			  Grid.Column="0"
			  RowDefinitions="auto,*"
			  ColumnDefinitions="*"
			  Margin="16">
			<StackPanel Orientation="Horizontal"
						Grid.Row="0"
						Grid.Column="0"
						Margin="0 0 0 8">
				<Button Command="{Binding GoBackCommand}"
						Theme="{StaticResource TransparentButton}"
						Margin="0 0 8 0">
					<i:Icon Value="fa-arrow-left"
							FontSize="20"/>
				</Button>
				<TextBlock Theme="{StaticResource TitleTextBlockStyle}"
						   Text="{Binding Title}"/>
			</StackPanel>
			<TransitioningContentControl
				Grid.Row="1"
				Grid.Column="0"
				Content="{Binding ActiveViewModel}"/>
		</Grid>
	</Grid>
</UserControl>
