<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:vm="using:CheckArticlesForSpam.ViewModels"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="CheckArticlesForSpam.Views.ListArticles"
			 x:DataType="vm:MainWindowViewModel">
	<Grid
		  ColumnDefinitions="*, 40*, *"
		  RowDefinitions="80, 10, *, 40"
		  Background="#ebe2d9">
		<Border
			Grid.Column="1"
			Background="#f7f3ef"
			CornerRadius="10">
			<StackPanel
				Orientation="Horizontal"
				HorizontalAlignment="Left">
				<Image
					HorizontalAlignment="Left"
					Width="70"
					Source="/Assets/account_profile_user_avatar_icon.png"/>
				<Border
					CornerRadius="10"
					Background="#946E42"
					Padding="20 10 20 0"
					Margin="20 10 20 0"
					Height="40">
					<TextBlock
						HorizontalAlignment="Center"
						FontFamily="{StaticResource TextInBox}"
						Foreground="White"
						FontSize="20"
						Text="{Binding ListArticlesVM.UserName}"/>
				</Border>
				<Button
					Background="#946E42"
					Foreground="White"
					CornerRadius="10"
					FontSize="20"
					Content="Настройки"
					FontFamily="{StaticResource TextInBox}"
					Height="40"
					HorizontalAlignment="Right"
					Padding="20 10 20 0"
					Margin="20 10 20 0"
					Command="{Binding EditProfile}">
					<Button.Styles>
						<Style Selector="Button:pointerover /template/ ContentPresenter">
							<Setter Property="Background" Value="#D8B389"></Setter>
							<Setter Property="Foreground" Value="White"></Setter>
						</Style>
					</Button.Styles>
				</Button>
			</StackPanel>
		</Border>
		<Panel
			Grid.Column="0"
			Grid.Row="2"
			Background="#ebe2d9"
			/>
		<Border
			Grid.Column="1"
			Grid.Row="2"
			CornerRadius="5">
			<Panel  Grid.Column="1" Grid.Row="2">
				<UserControl Content="{Binding ListArticlesVM.Uc}"/>
			</Panel>
		</Border>
	</Grid>
</UserControl>
