85 lines
5.0 KiB
XML
85 lines
5.0 KiB
XML
<UserControl x:Class="CineBook.Views.MyBookingsView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Background="#0A0A0A">
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Margin="0,0,0,16">
|
|
<TextBlock Text="👤 MEINE BUCHUNGEN" Style="{StaticResource RetroHeader}"/>
|
|
<TextBlock x:Name="UserNameText" FontFamily="Courier New" FontSize="11" Foreground="#666" Margin="0,4,0,0"/>
|
|
</StackPanel>
|
|
|
|
<!-- STATS PANEL -->
|
|
<Border Grid.Row="1" Background="#111" BorderBrush="#222" BorderThickness="1" Padding="16,12" Margin="0,0,0,14">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Border Background="#1B2E1B" BorderBrush="#27AE60" BorderThickness="1" Padding="16,8" CornerRadius="2" Margin="0,0,12,0">
|
|
<StackPanel>
|
|
<TextBlock x:Name="TotalBookingsText" Text="0" FontFamily="Courier New" FontSize="22"
|
|
FontWeight="Bold" Foreground="#27AE60" HorizontalAlignment="Center"/>
|
|
<TextBlock Text="BUCHUNGEN" FontFamily="Courier New" FontSize="9" Foreground="#555" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Background="#2A1A00" BorderBrush="#F5C518" BorderThickness="1" Padding="16,8" CornerRadius="2" Margin="0,0,12,0">
|
|
<StackPanel>
|
|
<TextBlock x:Name="TotalSpentText" Text="0 €" FontFamily="Courier New" FontSize="22"
|
|
FontWeight="Bold" Foreground="#F5C518" HorizontalAlignment="Center"/>
|
|
<TextBlock Text="AUSGEGEBEN" FontFamily="Courier New" FontSize="9" Foreground="#555" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Background="#2A1A1A" BorderBrush="#C0392B" BorderThickness="1" Padding="16,8" CornerRadius="2">
|
|
<StackPanel>
|
|
<TextBlock x:Name="ActiveBookingsText" Text="0" FontFamily="Courier New" FontSize="22"
|
|
FontWeight="Bold" Foreground="#C0392B" HorizontalAlignment="Center"/>
|
|
<TextBlock Text="AKTIV" FontFamily="Courier New" FontSize="9" Foreground="#555" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<DataGrid x:Name="MyGrid" Grid.Row="2" Style="{StaticResource RetroDataGrid}">
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#1a1a1a"/>
|
|
<Setter Property="Foreground" Value="#F5C518"/>
|
|
<Setter Property="FontFamily" Value="Courier New"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="FontSize" Value="11"/>
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="BorderBrush" Value="#333"/>
|
|
<Setter Property="BorderThickness" Value="0,0,1,1"/>
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
<DataGrid.RowStyle>
|
|
<Style TargetType="DataGridRow">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Foreground" Value="#CCC"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#1E1A00"/>
|
|
<Setter Property="Foreground" Value="#F5C518"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="BUCHUNGSCODE" Binding="{Binding BookingCode}" Width="140"/>
|
|
<DataGridTextColumn Header="FILM" Binding="{Binding MovieTitle}" Width="*"/>
|
|
<DataGridTextColumn Header="VORFÜHRUNG" Binding="{Binding ScreeningDisplay}" Width="150"/>
|
|
<DataGridTextColumn Header="SITZ" Binding="{Binding SeatDisplay}" Width="70"/>
|
|
<DataGridTextColumn Header="PREIS" Binding="{Binding PriceDisplay}" Width="80"/>
|
|
<DataGridTextColumn Header="STATUS" Binding="{Binding Status}" Width="100"/>
|
|
<DataGridTextColumn Header="DATUM" Binding="{Binding DateDisplay}" Width="130"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
<TextBlock x:Name="StatusText" Grid.Row="3" Style="{StaticResource RetroLabel}"
|
|
Foreground="#666" Margin="0,8,0,0"/>
|
|
</Grid>
|
|
</UserControl>
|