<Window x:Class="Rkis29.View.Registration"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        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:local="clr-namespace:Rkis29.View" xmlns:b="http://schemas.microsoft.com/xaml/behaviors" xmlns:viewmodel="clr-namespace:Rkis29.ViewModel" d:DataContext="{d:DesignInstance Type=viewmodel:VWMain}"
        mc:Ignorable="d"
        xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        Title="Registration" Name="ProfilWND" Height="450" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="300"/>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="100"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="100*"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="100*"/>
        </Grid.RowDefinitions>
        <DataGrid Background="#FFB5B8B1" IsReadOnly="True" AutoGenerateColumns="False"  Name="GridTask" Grid.Row="1" Grid.RowSpan="5" Margin="0,50,0,0" Grid.Column="1" Grid.ColumnSpan="3">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Название" Binding="{Binding NameT}" FontSize="16" Width="*"></DataGridTextColumn>
                <DataGridTextColumn Header="Описание" Binding="{Binding Description}" FontSize="16" Width="*"></DataGridTextColumn>
                <DataGridTextColumn Header="Статус" Binding="{Binding StatusTask.Name}" FontSize="16" Width="*"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Label Grid.Column="2" Content="Мой профиль" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Height="40" Width="142"/>
        <Label Content="{Binding LbProfil}" Grid.Column="2" Height="39" Width="401"  HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="14" Margin="0,66,0,0" Grid.RowSpan="2"/>
        <TextBlock  Grid.Row="1" Height="23" Width="290" Text="Задачи:" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="18" Margin="10,16,0,0" RenderTransformOrigin="1.473,0.443" Grid.Column="1" Grid.ColumnSpan="2"/>
        <Button Command="{Binding TbGo_Status}" CommandParameter="{Binding ElementName=GridTask}" Content="Поменять статус" FontSize="14" Margin="142,10,10,0" Grid.Column="2" Grid.Row="6" Height="36" VerticalAlignment="Top"></Button>
        <Button Grid.Column="3" Content="Поиск задач" Command="{Binding Autho_ready}" CommandParameter="{Binding ElementName=ProfilWND}" VerticalAlignment="Top" FontSize="14" Height="36" Cursor="Hand"  HorizontalAlignment="Left" Width="136" Margin="4,10,0,0" Grid.Row="6"/>
        <b:Interaction.Triggers>
            <b:EventTrigger EventName="Loaded">
                <b:InvokeCommandAction Command="{Binding DataGo}" CommandParameter="{Binding ElementName=GridTask}">
                </b:InvokeCommandAction>
            </b:EventTrigger>
        </b:Interaction.Triggers>
    </Grid>
</Window>
