67 lines
3.4 KiB
XML
67 lines
3.4 KiB
XML
<UserControl x:Class="KanSan.UI.UCTaetigkeitEdit"
|
|
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:local="clr-namespace:KanSan.UI"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.CommandBindings>
|
|
<CommandBinding Command="local:CalendarCommands.SelectToday"
|
|
Executed="SelectTodayExecuted"
|
|
CanExecute="SelectTodayCanExecute" />
|
|
</UserControl.CommandBindings>
|
|
<UserControl.Resources>
|
|
<Style x:Key="DefaultCalendar" TargetType="Calendar">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Calendar}">
|
|
<StackPanel HorizontalAlignment="Center" Name="PART_Root">
|
|
<CalendarItem Background="{TemplateBinding Control.Background}" BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="{TemplateBinding Control.BorderThickness}" Name="PART_CalendarItem" Style="{TemplateBinding Calendar.CalendarItemStyle}" />
|
|
<Button Content="Today" Command="local:CalendarCommands.SelectToday" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
|
|
</StackPanel>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="39" />
|
|
<RowDefinition Height="39" />
|
|
<RowDefinition Height="200" />
|
|
<RowDefinition Height="39" />
|
|
<RowDefinition Height="39" />
|
|
<RowDefinition Height="39" />
|
|
<RowDefinition Height="39" />
|
|
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Row="0" Grid.Column="0" Content="Mitarbeiter" />
|
|
<Label Grid.Row="1" Grid.Column="0" Content="Fahrzeug" />
|
|
<Label Grid.Row="2" Grid.Column="0" Content="Datum" />
|
|
<Label Grid.Row="3" Grid.Column="0" Content="Tätigkeitbeschreibung" />
|
|
<Label Grid.Row="4" Grid.Column="0" Content="Menge" />
|
|
<Label Grid.Row="5" Grid.Column="0" Content="Bemerkung" />
|
|
|
|
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Mitarbeiter}" />
|
|
|
|
<Calendar Style="{StaticResource DefaultCalendar}" Grid.Row="2" Grid.Column="1" Name="Calender" SelectedDate="{Binding ZeitStempel}"/>
|
|
<ComboBox Grid.Row="3" Grid.Column="1" ItemsSource="{Binding LVPositionen}" SelectedItem="{Binding Leistungsverzeichnis}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Beschreibung}" />
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Anzahl}" />
|
|
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Bemerkung}"/>
|
|
<Button Grid.Row="6" Grid.ColumnSpan="2" Content="Speichern" Name="Speichern" Click="Speichern_Click" />
|
|
|
|
</Grid>
|
|
</UserControl>
|