<Window x:Class="MovieSearchApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Movie Search" Height="850" Width="700">
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="*" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>

    <!-- Left Column: Movie List -->
    <ListBox x:Name="movieListBox" Grid.Column="0" Margin="10" VerticalAlignment="Stretch"/>

    <!-- Right Column: Search and Result -->
    <StackPanel Grid.Column="1" Margin="10">
      <Label Content="Enter search query:"/>
      <TextBox x:Name="searchTextBox" Width="200" Margin="0,0,0,10"/>
      <Button Content="OK" Click="SearchButton_Click"/>
      <Label Content="Filtered Movies:" Margin="0,20,0,0"/>
      <ListBox x:Name="resultListBox" Width="200" Height="300" VerticalAlignment="Stretch"/>
    </StackPanel>
  </Grid>
</Window>

