<?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="150"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <TextBox Grid.Row="0" Grid.Column="0" Width="80" HorizontalAlignment="Center" VerticalAlignment="Stretch" Text="{x:Bind _movie.leiras, Mode=TwoWay}"/>
        <Button Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Content="Reset" Click="Button_Click"/>
        <CheckBox x:Name="c1" Grid.Row="1" Grid.Column="0" Width="90" HorizontalAlignment="Right" Content="Watched" Margin="0,5,0,5" IsChecked="{x:Bind _movie.megtekintett, Mode=TwoWay}"/>
        
    </Grid>

</Window>
