Files
dcnsanplanung/dcnsanplanung.wpf/MainWindow.xaml

32 lines
1.5 KiB
XML

<Window x:Class="dcnsanplanung.wpf.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:local="clr-namespace:dcnsanplanung.wpf"
xmlns:viewmodel="clr-namespace:dcnsanplanung.wpf.ViewModel"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<StackPanel>
<ComboBox ItemsSource="{Binding VerfügbareHaltungen}" SelectedItem="{Binding SelectedHaltung}" SelectionChanged="Items_SelectionChanged">
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Objektbezeichnung}" />
<TextBlock Text=" | " />
<TextBlock Text="{Binding Bewertungklasse}" />
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Name="LoadXML" Command="{Binding LoadXMLFile}" Content="LoadXML" />
<Button Content="Klassifiziere" Command="{Binding Klassifiere}" />
<Label Content="{Binding ZahlEinzelfall}" />
<Button Content="Zeige Einzelfall" Command="{Binding SelectEinzelfall}" />
</StackPanel>
</Grid>
</Window>