Black Theme for the WPF App

This commit is contained in:
2019-03-13 00:22:31 +01:00
parent fd076a8d63
commit 1996d0fe09
11 changed files with 3213 additions and 29 deletions

View File

@@ -6,21 +6,24 @@
xmlns:local="clr-namespace:LaDOSE.DesktopApp.UserControls"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
>
<UserControl.Resources>
</UserControl.Resources>
<Grid>
<ListView Grid.Row ="1" ItemsSource="{Binding Path=Reservation}">
<ListView Grid.Row ="1" Margin="2" ItemsSource="{Binding Path=Reservation}">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Background="Green" x:Name="Panel" VerticalAlignment="Stretch" >
<Label Content="{Binding Name}"></Label>
<StackPanel Orientation="Horizontal" x:Name="Panel" VerticalAlignment="Stretch" >
<Label x:Name="Name" Content="{Binding Name}">
</Label>
</StackPanel>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding Valid}" Value="False">
<Setter TargetName="Panel" Property="Background" Value="Red" />
<DataTrigger Binding="{Binding Valid}" Value="True">
<Setter TargetName="Name" Property="Foreground" Value="Green" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>