<?xml version="1.0" encoding="utf-8"?>
<Window
    x:Class="HelloXaml.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:HelloXaml"
    xmlns:Models="using:HelloXaml.Models"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="80" />
        </Grid.RowDefinitions>

        <TextBlock Text="Quantity" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" />
        <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center">
            <TextBox x:Name="vmi" Width="30" Text="{x:Bind model.Current.Quantity, Mode=TwoWay}"></TextBox>
            <Button Content="+" Command="{x:Bind model.IncrementCommand}" />
        </StackPanel>

        <TextBox Grid.Row="1" Grid.Column="1" Height="40" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="10,15,10,0" Text="{x:Bind model.Current.Desc, Mode=TwoWay}"/>
        
    </Grid>

</Window>
