<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"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="CheckArticlesForSpam.Views.ArticleDatePage"
			 xmlns:vm="using:CheckArticlesForSpam.ViewModels"
			 x:DataType="vm:MainWindowViewModel">
	<StackPanel HorizontalAlignment="Stretch">
		<Grid Margin="0 20 0 0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<Border
				Grid.Column="0" >
				<Button
					FontFamily="{StaticResource TitleFont}"
					CornerRadius="10"
					Content="НАЗАД"
					Background="#7f5e38"
					Foreground="White"
					FontSize="25"
					Padding="20 10 20 10"
					Margin="0 0 0 0"
					HorizontalAlignment="Left"
					Command="{Binding LogedToProgram}">
					<Button.Styles>
						<Style Selector="Button:pointerover /template/ ContentPresenter">
							<Setter Property="Background" Value="#D8B389"></Setter>
							<Setter Property="Foreground" Value="White"></Setter>
						</Style>
					</Button.Styles>
				</Button>
			</Border>
			<Border
				Grid.Column="1">
				<Button
					FontFamily="{StaticResource TitleFont}"
					CornerRadius="10"
					Content="ПРОВЕРИТЬ СТАТЬЮ"
					Background="Green"
					Foreground="White"
					FontSize="30"
					Padding="20 10 20 10"
					HorizontalAlignment="Center"
					Margin="0 0 20 0"
					Command="{Binding SendArticleForCheck}">
					<Button.Styles>
						<Style Selector="Button:pointerover /template/ ContentPresenter">
							<Setter Property="Background" Value="#00FF7F"></Setter>
							<Setter Property="Foreground" Value="White"></Setter>
						</Style>
					</Button.Styles>
				</Button>
			</Border>
			<Border
				Grid.Column="2" >
				<Button
					FontFamily="{StaticResource TitleFont}"
					CornerRadius="10"
					Content="СОХРАНИТЬ"
					Background="#7f5e38"
					Foreground="White"
					FontSize="25"
					Padding="20 10 20 10"
					HorizontalAlignment="Right"
					Margin="0 0 0 0"
					Command="{Binding SaveArticle}">
					<Button.Styles>
						<Style Selector="Button:pointerover /template/ ContentPresenter">
							<Setter Property="Background" Value="#D8B389"></Setter>
							<Setter Property="Foreground" Value="White"></Setter>
						</Style>
					</Button.Styles>
				</Button>
			</Border>
		</Grid>
		<TextBlock
			FontFamily="{StaticResource TitleFont}"
			FontSize="30"
			Foreground="{Binding ArticleDataPageVM.ColorMessage}"
			Margin="0 20 0 0"
			HorizontalAlignment="Center"
			Text="{Binding ArticleDataPageVM.Message}"/>
		<TextBox
			Margin="0 20 0 0"
			Text="{Binding ArticleDataPageVM.TitleArticle}"
			Background="#f7f3ef"/>
		<TextBox
			Height="{Binding $parent[StackPanel].Bounds.Height}"
			Margin="0 20 0 0"
			Text="{Binding ArticleDataPageVM.TextArticle}"
			TextWrapping="Wrap"
			Background="#f7f3ef"/>
	</StackPanel>
</UserControl>