77 lines
4.7 KiB
XML
77 lines
4.7 KiB
XML
<UserControl x:Class="StammGenerator.Views.SchachtEditView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:viewmodel="clr-namespace:StammGenerator.ViewModel"
|
|
|
|
xmlns:local="clr-namespace:StammGenerator.Views"
|
|
mc:Ignorable="d"
|
|
xmlns:converter="clr-namespace:StammGenerator.Converters"
|
|
xmlns:stat="clr-namespace:SewerStammGen.Shared.Enum;assembly=SewerStammGen.Shared"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.Resources>
|
|
<converter:EqualValueToParameterConverter x:Key="EqualValueToParameterConverter" />
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="520" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Column="0" Grid.Row="0" Content="Bezeichnung" />
|
|
<Label Grid.Column="0" Grid.Row="1" Content="Deckel Rechtswert" />
|
|
<Label Grid.Column="0" Grid.Row="2" Content="Deckel Hochwert" />
|
|
<Label Grid.Column="0" Grid.Row="3" Content="Deckel Höhe" />
|
|
<Label Grid.Column="0" Grid.Row="4" Content="Sohl Rechtswert" />
|
|
<Label Grid.Column="0" Grid.Row="5" Content="Sohl Hochwert" />
|
|
<Label Grid.Column="0" Grid.Row="6" Content="Sohl Höhe" />
|
|
<Label Grid.Column="0" Grid.Row="7" Content="Vermesser" />
|
|
<Label Grid.Column="0" Grid.Row="8" Content="Aufnahmedatum" />
|
|
<Label Grid.Column="0" Grid.Row="9" Content="Entwässerungsart" />
|
|
<Label Grid.Column="0" Grid.Row="10" Content="SchachtType" />
|
|
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="0" Text="{Binding Objektbezeichnung}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="1" Text="{Binding DeckelRechtsWert}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="2" Text="{Binding DeckelHochWert}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="3" Text="{Binding DeckelHoehe}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="4" Text="{Binding SohlRechtsWert}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="5" Text="{Binding SohlHochWert}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="6" Text="{Binding SohlHoehe}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="7" Text="{Binding Vermesser}" />
|
|
<TextBox Margin="2" Grid.Column="1" Grid.Row="8" Text="{Binding AufnahmeDatum}" />
|
|
|
|
<DockPanel Grid.Column="1" Grid.Row="9">
|
|
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Regenwasser" IsChecked="{Binding Entwaeserung, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:EEntwaeserung.Regenwasser}}" />
|
|
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Schmutzwasser" IsChecked="{Binding Entwaeserung, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:EEntwaeserung.Schmutzwasser}}" />
|
|
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Mischwasser" IsChecked="{Binding Entwaeserung, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:EEntwaeserung.Mischwasser}}" />
|
|
</DockPanel>
|
|
|
|
<DockPanel Grid.Column="1" Grid.Row="10">
|
|
<!-- SchachtType-->
|
|
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Hauptkanal" IsChecked="{Binding SchachtType, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:ESchachtType.Hauptkanal}}" />
|
|
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Revision" IsChecked="{Binding SchachtType, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:ESchachtType.Revisionschacht}}" />
|
|
</DockPanel>
|
|
|
|
|
|
<StackPanel Grid.ColumnSpan="2" Grid.Row="11">
|
|
<Button Content="Speichern" Command="{Binding Speichern}" />
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</UserControl>
|