Hey hat jemand eine Ahnung warum ich die Gui nicht sehen kann? [Das Programm funktioniert beim Ausführen]
<Window x:Class="Parking.ParkingMeter.Views.MainWindow"
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:viewModels="clr-namespace:Parking.ParkingMeter.ViewModels"
mc:Ignorable="d"
Title="ParkingMenu" Height="300" Width="300">
<Window.Resources>
<BooleanToVisibilityConverter x:Key="BoolToVis"/>
</Window.Resources>
<Grid>
<StackPanel>
<Label>Welcome to ParkingMenu. Please pull a Ticket!</Label>
<GroupBox Header="Preis">
<Label Content="{Binding Path=(viewModels:MainViewModel.PriceTag)}" />
</GroupBox>
<GroupBox Header="Ticket">
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
<Label>Parkdauer in Stunden:</Label>
<TextBox Text="{Binding Path=(viewModels:MainViewModel.DurationHours), Mode=TwoWay}" MinWidth="120"/>
</StackPanel>
<Button Command="{Binding Path=(viewModels:MainViewModel.PullTicketCommand)}" CommandParameter="{Binding Path=(viewModels:MainViewModel.DurationHours)}">Ticket lösen</Button>
<StackPanel>
<TextBlock TextWrapping="Wrap" Visibility="{Binding Path=(viewModels:MainViewModel.HasCurrentTicket), Converter={StaticResource BoolToVis}, FallbackValue=Hidden}" Text="{Binding Path=(viewModels:MainViewModel.CurrentTicketDisplay)}" />
</StackPanel>
</StackPanel>
</GroupBox>
</StackPanel>
</Grid>
</Window>