Initial
This commit is contained in:
113
Bokhantarare/MainWindow.xaml
Normal file
113
Bokhantarare/MainWindow.xaml
Normal file
@@ -0,0 +1,113 @@
|
||||
<Window x:Class="Bokhantarare.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Bokhantarare"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="0" Text="" TextChanged="ISBN_OnTextChange" x:Name="ISBN" Width="110"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="0" x:Name="ISBNPlaceholderText"
|
||||
Text="Enter ISBN here..."
|
||||
VerticalAlignment="Top"
|
||||
Foreground="Gray"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Visible" />
|
||||
<Button Grid.Row="1" Grid.Column="0" Content="Search by ISBN" ToolTip="This searches for a book(s) on openlibrary" Click="SearchByISBN"/>
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="" TextChanged="Title_OnTextChange" x:Name="Title" Width="110"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="1" x:Name="TitlePlaceholderText"
|
||||
Text="Enter Title here..."
|
||||
VerticalAlignment="Top"
|
||||
Foreground="Gray"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Visible" />
|
||||
<Button Grid.Row="1" Grid.Column="1" Content="Search by Title" ToolTip="This searches for a book(s) on openlibrary" Click="SearchByTitle"/>
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="3" Text="" TextChanged="CustomTitle_OnTextChange" x:Name="CustomTitle" Width="110"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="3" x:Name="CustomTitlePlaceholderText"
|
||||
Text="Enter Title here..."
|
||||
VerticalAlignment="Top"
|
||||
Foreground="Gray"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Visible" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="4" Text="" TextChanged="CustomISBN_OnTextChange" x:Name="CustomISBN" Width="110"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="4" x:Name="CustomISBNPlaceholderText"
|
||||
Text="Enter ISBN here..."
|
||||
VerticalAlignment="Top"
|
||||
Foreground="Gray"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Visible" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="5" Text="" TextChanged="CustomAuthor_OnTextChange" x:Name="CustomAuthor" Width="110" ToolTip="This is a comma separated field to allow multiple entries"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="5" x:Name="CustomAuthorPlaceholderText"
|
||||
Text="Enter Author here..."
|
||||
VerticalAlignment="Top"
|
||||
Foreground="Gray"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Visible" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="6" Text="" TextChanged="CustomPubYear_OnTextChange" x:Name="CustomPubYear" Width="145"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="6" x:Name="CustomPubYearPlaceholderText"
|
||||
Text="Enter Publishing Year here..."
|
||||
VerticalAlignment="Top"
|
||||
Foreground="Gray"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Visible" />
|
||||
|
||||
<Button Grid.Row="1" Grid.Column="3" Content="Create Entry" ToolTip="This Adds a book with the given properties" Click="CustomEntry"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1" Margin="0,10,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="20"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Grid.Column="0" x:Name="Books">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBox Grid.Row="0" Text="" TextChanged="Search_OnTextChange" x:Name="Search" ToolTip="Search by name"/>
|
||||
<TextBlock Grid.Row="0" x:Name="SearchPlaceholderText"
|
||||
Text="Enter Title to search for here..."
|
||||
VerticalAlignment="Top"
|
||||
Foreground="Gray"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Visible" />
|
||||
<Grid Grid.Row="1" Name="Library" MouseWheel="ScrolLibrary">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<ScrollBar Grid.Column="1" Orientation="Vertical" Minimum="1" Maximum="1" Scroll="ScrollView" x:Name="ScrollBar"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user