137 lines
3.6 KiB
XML
137 lines
3.6 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
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"
|
|
mc:Ignorable="d" d:DesignWidth="550" d:DesignHeight="450"
|
|
MinWidth="550" MinHeight="450"
|
|
Width="650" Height="500"
|
|
x:Class="LibationWinForms.AvaloniaUI.Views.Dialogs.BookDetailsDialog2"
|
|
xmlns:controls="clr-namespace:LibationWinForms.AvaloniaUI.Controls"
|
|
Title="Book Details" Name="BookDetails"
|
|
Icon="/AvaloniaUI/Assets/libation.ico">
|
|
|
|
<Grid RowDefinitions="*,Auto,Auto,Auto">
|
|
<Grid.Styles>
|
|
<Style Selector="Button:focus">
|
|
<Setter Property="BorderBrush" Value="{DynamicResource SystemAccentColor}" />
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
</Style>
|
|
</Grid.Styles>
|
|
<Grid ColumnDefinitions="Auto,*" Margin="10,10,10,0">
|
|
<Panel VerticalAlignment="Top" Margin="5" Background="LightGray" Width="80" Height="80" >
|
|
<Image Grid.Column="0" Width="80" Height="80" Source="{Binding Cover}" />
|
|
</Panel>
|
|
|
|
<TextBox
|
|
Grid.Column="1"
|
|
TextWrapping="Wrap"
|
|
Margin="5"
|
|
FontSize="12"
|
|
Text="{Binding DetailsText}" />
|
|
</Grid>
|
|
|
|
<controls:GroupBox
|
|
Label="Edit Tags"
|
|
Grid.Row="1"
|
|
BorderWidth="1"
|
|
Margin="10,0,10,0">
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock FontSize="12" VerticalAlignment="Top">
|
|
Tags are separated by a space. Each tag can contain letters, numbers, and underscores
|
|
</TextBlock>
|
|
|
|
<TextBox Margin="0,5,0,5"
|
|
MinHeight="25"
|
|
FontSize="12"
|
|
Text="{Binding Tags, Mode=TwoWay}"/>
|
|
</StackPanel>
|
|
</controls:GroupBox>
|
|
|
|
<controls:GroupBox
|
|
Label="Liberated status: Whether the book/pdf has been downloaded"
|
|
Grid.Row="2"
|
|
BorderWidth="1"
|
|
Margin="10,10,10,10">
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<TextBlock
|
|
FontSize="12"
|
|
VerticalAlignment="Top"
|
|
Margin="10,10,0,0"
|
|
Text="To download again next time: change to Not Downloaded
To not download: change to Downloaded" />
|
|
|
|
<Grid Margin="0,10,0,5" ColumnDefinitions="Auto,Auto,50,Auto,Auto,*">
|
|
|
|
<TextBlock
|
|
Grid.Column="0"
|
|
Margin="0,0,10,0"
|
|
VerticalAlignment="Center"
|
|
Text="Book" />
|
|
|
|
<TextBlock
|
|
Grid.Column="3"
|
|
Margin="0,0,10,0"
|
|
VerticalAlignment="Center"
|
|
Text="PDF" />
|
|
|
|
<ComboBox
|
|
Grid.Column="1"
|
|
Width="150"
|
|
MinHeight="25"
|
|
Height="25"
|
|
VerticalAlignment="Center"
|
|
SelectedItem="{Binding BookLiberatedSelectedItem, Mode=TwoWay}"
|
|
Items="{Binding BookLiberatedItems}">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
|
|
<TextBlock
|
|
FontSize="12"
|
|
Text="{Binding Text}" />
|
|
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
<ComboBox
|
|
IsEnabled="{Binding HasPDF}"
|
|
Grid.Column="4"
|
|
MinHeight="25"
|
|
Height="25"
|
|
Width="150"
|
|
VerticalAlignment="Center"
|
|
SelectedItem="{Binding PdfLiberatedSelectedItem, Mode=TwoWay}"
|
|
Items="{Binding PdfLiberatedItems}">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
|
|
<TextBlock
|
|
FontSize="12"
|
|
Text="{Binding Text}" />
|
|
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
</Grid>
|
|
</StackPanel>
|
|
</controls:GroupBox>
|
|
|
|
<Grid Grid.Row="3" ColumnDefinitions="*,Auto" Margin="10,0,10,10">
|
|
|
|
<Button
|
|
Grid.Column="1"
|
|
Content="Save"
|
|
Padding="30,3,30,3"
|
|
Click="SaveButton_Clicked" />
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</Window>
|