buechermarkt/BuechermarktClient/BookTypes.xaml

32 lines
1.5 KiB
XML

<Window x:Class="BuechermarktClient.BookTypes"
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:BuechermarktClient"
mc:Ignorable="d"
Title="BookTypes" Height="300" Width="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<ListView Grid.Row="0" Margin="0,0,0,0" Name="BookTypesList">
<ListView.View>
<GridView>
<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="Auto"></GridViewColumn>
<GridViewColumn Header="ISBN" DisplayMemberBinding="{Binding ISBN}" Width="Auto"></GridViewColumn>
</GridView>
</ListView.View>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<EventSetter Event="PreviewMouseDoubleClick" Handler="ListViewItem_PreviewMouseUp"></EventSetter>
</Style>
</ListView.ItemContainerStyle>
</ListView>
<Button Grid.Row="2" Content="Hinzufügen" VerticalAlignment="Center" Click="AddNew_Click">
</Button>
</Grid>
</Window>