<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="WWWings_GUI_SL5.App"
             >
    <Application.Resources>
    <DataTemplate x:Key="FlugTemplate">
      <StackPanel Orientation="Horizontal">
        <TextBlock Text="Flug Nr" Margin="3,0"/>
        <TextBlock Text="{Binding ID}" Margin="3,0"/>
        <TextBlock Text="von" Margin="3,0"/>
        <TextBlock Text="{Binding Abflugort}" Margin="3,0"/>
        <TextBlock Text="nach" Margin="3,0"/>
        <TextBlock Text="{Binding Zielort}" Margin="3,0"/>
        <TextBlock Text="am" Margin="3,0"/>
        <TextBlock Text="{Binding Datum, StringFormat=g}" Margin="3,0"/>
      </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="PassagierTemplate">
      <StackPanel Orientation="Horizontal">
        <TextBlock Text="ID" Margin="3,0"/>
        <TextBlock Text="{Binding ID}" Margin="3,0"/>
        <TextBlock Text="Vorname" Margin="3,0"/>
        <TextBlock Text="{Binding Vorname}" Margin="3,0"/>
        <TextBlock Text="Nachname" Margin="3,0"/>
        <TextBlock Text="{Binding Name}" Margin="3,0"/>
      </StackPanel>
    </DataTemplate>

  </Application.Resources>
</Application>
