<UserControl x:Class="TeamViewerApi.Views.AccountView" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:viewModels="clr-namespace:TeamViewerApi.ViewModels" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500">
    <UserControl.DataContext>
        <viewModels:AccountViewModel />
    </UserControl.DataContext>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <TextBlock Grid.Row="0" Grid.Column="0" Text="Id" />
        <TextBlock Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" Text="{Binding Account.AccountId, Mode=OneWay}" />
        <TextBlock Grid.Row="1" Grid.Column="0" Text="Name" />
        <TextBox Grid.Row="1" Grid.Column="1" Width="200px" Text="{Binding Account.Name, Mode=TwoWay}" />
        <TextBlock Grid.Row="2" Grid.Column="0" Text="Email" />
        <TextBox Grid.Row="2" Grid.Column="1" Width="150px" Text="{Binding Account.Email, Mode=TwoWay}" />
        <TextBlock Grid.Row="3" Grid.Column="0" Text="Company" />
        <TextBlock Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Text="{Binding Account.Company, Mode=OneWay}" />
        
        <Button Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" 
                HorizontalAlignment="Left" 
                Width="100px" 
                Content="Get account" 
                Command="{Binding GetAccountCommand, Mode=OneWay}" />
        <Button Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" 
                HorizontalAlignment="Right" 
                Width="100px" 
                Content="Save changes" 
                Command="{Binding SaveAccountCommand, Mode=OneWay}" />
    </Grid>
</UserControl>
