|
| 1 | +<Window x:Name="mainWindow" x:Class="Final_Project.MainWindow" WindowStartupLocation="CenterScreen" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:Final_Project" |
| 7 | + mc:Ignorable="d" |
| 8 | + Title="WhereToWatch v2.0 - Search Page" Height="750" Width="1000" ResizeMode="NoResize"> |
| 9 | + <Window.Background> |
| 10 | + <SolidColorBrush Color="#232533"></SolidColorBrush> |
| 11 | + </Window.Background> |
| 12 | + <Grid> |
| 13 | + <Grid.RowDefinitions> |
| 14 | + <RowDefinition Height="50"></RowDefinition> |
| 15 | + <RowDefinition Height="32"></RowDefinition> |
| 16 | + <RowDefinition></RowDefinition> |
| 17 | + <RowDefinition Height="63"></RowDefinition> |
| 18 | + </Grid.RowDefinitions> |
| 19 | + |
| 20 | + <Menu x:Name="mnuMain" IsMainMenu="True" Foreground="#307AD7" Background="#232533" BorderBrush="#307AD7"> |
| 21 | + <MenuItem x:Name="mnuAbout" Padding="5" Header="About" Background="Transparent" Click="mnuAbout_Click"/> |
| 22 | + </Menu> |
| 23 | + |
| 24 | + <Grid Grid.Row="0"> |
| 25 | + <Grid.RowDefinitions> |
| 26 | + <RowDefinition></RowDefinition> |
| 27 | + </Grid.RowDefinitions> |
| 28 | + <Grid.ColumnDefinitions> |
| 29 | + <ColumnDefinition Width="200"></ColumnDefinition> |
| 30 | + <ColumnDefinition></ColumnDefinition> |
| 31 | + <ColumnDefinition Width="220"></ColumnDefinition> |
| 32 | + <ColumnDefinition Width="220"></ColumnDefinition> |
| 33 | + <ColumnDefinition Width="120"></ColumnDefinition> |
| 34 | + </Grid.ColumnDefinitions> |
| 35 | + |
| 36 | + <Button x:Name="btnLogin" Grid.Column="4" Width="90" Height="25" Background="#348FFF" Foreground="White">Login</Button> |
| 37 | + |
| 38 | + <Label x:Name="lblUsername" Content="Username:" Foreground="White" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Left" FontWeight="Bold"/> |
| 39 | + <TextBox x:Name="txtUsername" Grid.Column="2" HorizontalAlignment="Right" Margin="10 3" Text="" Height="25" Width="125" IsEnabled="False"/> |
| 40 | + |
| 41 | + <Label x:Name="lblPassword" Content="Password:" Foreground="White" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Left" FontWeight="Bold"/> |
| 42 | + <PasswordBox x:Name="pwdPassword" Grid.Column="3" HorizontalAlignment="Right" Margin="10 3" Height="25" Width="125" IsEnabled="False"/> |
| 43 | + </Grid> |
| 44 | + <Grid Grid.Row="1" Visibility="Hidden"></Grid> |
| 45 | + <Grid Grid.Row="2" x:Name="gridRowTwo"> |
| 46 | + <Grid.RowDefinitions> |
| 47 | + <RowDefinition Height="0"></RowDefinition> |
| 48 | + <RowDefinition Height="49"></RowDefinition> |
| 49 | + <RowDefinition Height="32.8"></RowDefinition> |
| 50 | + <RowDefinition Height="484.8"></RowDefinition> |
| 51 | + </Grid.RowDefinitions> |
| 52 | + |
| 53 | + <Label x:Name="lblSearchSuggestion" Foreground="White" Content="SEARCH FOR ANY MOVIE OR TV SHOW" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="40" FontFamily="Franklin Gothic Book" RenderTransformOrigin="0,0.5" Height="69" Grid.RowSpan="2" Width="657" Margin="172,0.2,164.6,14" Grid.Row="1"/> |
| 54 | + <TextBox x:Name="txtSearchBox" TextAlignment="Center" Background="#282A39" Foreground="#348FFF" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20" Width="700" KeyDown="txtSearchBox_KeyDown" Margin="139,7.6,146.6,6"/> |
| 55 | + <DataGrid Name="dgMediaResults" Grid.Row="3" BorderBrush="Transparent" ScrollViewer.CanContentScroll="False" VerticalAlignment="Stretch" AutoGenerateColumns="false" HeadersVisibility="None" Background="Transparent" RowBackground="Transparent" GridLinesVisibility="None" |
| 56 | + HorizontalGridLinesBrush="White" VerticalGridLinesBrush="White" Margin="23,0,-0.4,-0.4" IsReadOnly="True"> |
| 57 | + <DataGrid.RowStyle> |
| 58 | + <Style TargetType="{x:Type DataGridRow}"> |
| 59 | + <EventSetter Event="MouseDoubleClick" Handler="dgMediaResults_MouseDoubleClick"></EventSetter> |
| 60 | + </Style> |
| 61 | + </DataGrid.RowStyle> |
| 62 | + <DataGrid.Columns> |
| 63 | + <DataGridTemplateColumn Header="Title" Width="200" SortMemberPath="Title" CanUserSort="True"> |
| 64 | + <DataGridTemplateColumn.CellTemplate> |
| 65 | + <DataTemplate> |
| 66 | + <StackPanel x:Name="stackOne"> |
| 67 | + <Image x:Name="tbPosterPath" Source="{Binding PosterPath}" Width="165" Height="230" Margin="10"/> |
| 68 | + <TextBlock x:Name="tbTitle" Foreground="White" Text="{Binding Title}" Width="Auto" FontWeight="Medium" Background="#282A39" Padding="5" TextWrapping="Wrap" HorizontalAlignment="Center"/> |
| 69 | + <TextBlock x:Name="tbReleaseDate" Foreground="White" Text="{Binding ReleaseDateString}" Width="Auto" FontWeight="Medium" Background="#282A39" Padding="5" TextWrapping="Wrap" HorizontalAlignment="Center"/> |
| 70 | + </StackPanel> |
| 71 | + </DataTemplate> |
| 72 | + </DataGridTemplateColumn.CellTemplate> |
| 73 | + </DataGridTemplateColumn> |
| 74 | + <DataGridTemplateColumn Header="Overview" Width="464"> |
| 75 | + <DataGridTemplateColumn.CellTemplate> |
| 76 | + <DataTemplate> |
| 77 | + <StackPanel> |
| 78 | + <TextBlock Foreground="White" Text="{Binding Overview}" Margin="3" TextWrapping="Wrap"/> |
| 79 | + </StackPanel> |
| 80 | + </DataTemplate> |
| 81 | + </DataGridTemplateColumn.CellTemplate> |
| 82 | + </DataGridTemplateColumn> |
| 83 | + <DataGridTemplateColumn Header="Genres" Width="150"> |
| 84 | + <DataGridTemplateColumn.CellTemplate> |
| 85 | + <DataTemplate> |
| 86 | + <StackPanel> |
| 87 | + <TextBlock Foreground="White" Text="{Binding GenresString}" Margin="3" TextWrapping="Wrap"/> |
| 88 | + </StackPanel> |
| 89 | + </DataTemplate> |
| 90 | + </DataGridTemplateColumn.CellTemplate> |
| 91 | + </DataGridTemplateColumn> |
| 92 | + <DataGridTemplateColumn Header="Popularity" Width="130"> |
| 93 | + <DataGridTemplateColumn.CellTemplate> |
| 94 | + <DataTemplate> |
| 95 | + <StackPanel> |
| 96 | + <TextBlock Foreground="White" Text="{Binding Popularity}" Margin="3" TextWrapping="Wrap" HorizontalAlignment="Center"/> |
| 97 | + </StackPanel> |
| 98 | + </DataTemplate> |
| 99 | + </DataGridTemplateColumn.CellTemplate> |
| 100 | + </DataGridTemplateColumn> |
| 101 | + </DataGrid.Columns> |
| 102 | + </DataGrid> |
| 103 | + <Button x:Name="btnShowFavorites" Content="Show Favorites" HorizontalAlignment="Left" Margin="865,7.6,0,0" Grid.Row="2" VerticalAlignment="Top" Width="85" Height="20" Background="#FF348FFF" Foreground="White" Click="btnShowFavorites_Click"/> |
| 104 | + </Grid> |
| 105 | + <StatusBar x:Name="sbarMain" Grid.Row="3" Background="#282A39"> |
| 106 | + <StatusBarItem x:Name="sbarItemMessage" |
| 107 | + VerticalAlignment="Center" HorizontalAlignment="Left" Padding="10 3" FontSize="16" Background="#282A39" Foreground="White" /> |
| 108 | + </StatusBar> |
| 109 | + <Label x:Name="lblResults" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="White" FontWeight="Medium" FontSize="20" Margin="5, 0" Visibility="Hidden">Loading Results...</Label> |
| 110 | + </Grid> |
| 111 | +</Window> |
0 commit comments