253 lines
12 KiB
XML
253 lines
12 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.AssessmentSheetValueView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:localViewDetail="clr-namespace:BeWo.View.Detail"
|
|
xmlns:localViewModel="clr-namespace:BeWo.ViewModel"
|
|
xmlns:proxy="clr-namespace:BeWo.ServiceProxy"
|
|
xmlns:r="clr-namespace:BeWo.Security"
|
|
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
|
|
<Grid>
|
|
<GroupBox
|
|
x:Name="root"
|
|
Header="Aktuell erfasste Punktebogen Werte"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<Grid.Resources>
|
|
<DataTemplate x:Key="DropDownItemTemplate">
|
|
<Border
|
|
Height="20"
|
|
MinWidth="20"
|
|
HorizontalAlignment="Stretch"
|
|
Background="{Binding}"
|
|
BorderBrush="Black"
|
|
BorderThickness="1"
|
|
CornerRadius="2" />
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="SelectedItemTemplate">
|
|
<Border
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="{Binding}"
|
|
BorderBrush="Black"
|
|
BorderThickness="1" />
|
|
</DataTemplate>
|
|
</Grid.Resources>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="200" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Row="0" Grid.Column="0">Bezeichnung</Label>
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{val:ValidationBinding Path=NewVM.Description,
|
|
UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<!--<Label Grid.Column="2" Grid.Row="0" >Shortcut Taste</Label>
|
|
<TextBox Grid.Column="3" Grid.Row="0" Grid.ColumnSpan="2" Margin="3" Height="23" Text="{Binding Path=NewVM.ShortcutKey, UpdateSourceTrigger=PropertyChanged}" />-->
|
|
|
|
<Label Grid.Row="1">Zeichen im Plan</Label>
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=NewVM.Sign, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Label Grid.Row="3" Grid.Column="0">Position</Label>
|
|
<dxe:SpinEdit
|
|
x:Name="tb_pos"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Width="100"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
EditValue="{Binding Path=NewVM.Position, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}"
|
|
IsFloatValue="False"
|
|
MinValue="0" />
|
|
|
|
|
|
<Label Grid.Row="2" Grid.Column="0">Farbe im Plan</Label>
|
|
<ComboBox
|
|
Name="combobox_brush"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalContentAlignment="Stretch"
|
|
VerticalContentAlignment="Stretch"
|
|
ItemsSource="{Binding Path=AllBrushes, Mode=OneWay}"
|
|
SelectedItem="{val:ValidationBinding Path=NewVM.Brush}">
|
|
|
|
<ComboBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid
|
|
Columns="12"
|
|
IsItemsHost="True"
|
|
Rows="12" />
|
|
</ItemsPanelTemplate>
|
|
</ComboBox.ItemsPanel>
|
|
<ComboBox.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ComboBoxItem}">
|
|
<Setter Property="Margin" Value="2" />
|
|
<Setter Property="Padding" Value="0" />
|
|
</Style>
|
|
</ComboBox.ItemContainerStyle>
|
|
</ComboBox>
|
|
|
|
<Button
|
|
Name="button_addAsv"
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="5"
|
|
Height="25"
|
|
Margin="3,3,3,3"
|
|
Padding="5,0"
|
|
HorizontalAlignment="Left"
|
|
Click="button_addAsv_Click"
|
|
FontWeight="Normal"
|
|
IsDefault="True">
|
|
Hinzufügen
|
|
</Button>
|
|
|
|
<dxg:GridControl
|
|
x:Name="datagrid_asv"
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="7"
|
|
Margin="0,10,0,0"
|
|
DataSource="{Binding VMList}">
|
|
<dxg:GridControl.Columns>
|
|
|
|
<dxg:GridColumn
|
|
Width="24"
|
|
FieldName="IsDeleteable"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="18"
|
|
Height="18"
|
|
VerticalAlignment="Center"
|
|
Click="DeleteButton_Click"
|
|
Content="r"
|
|
FontFamily="Webdings"
|
|
Visibility="{Binding Path=EditValue, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
|
|
<dxg:GridColumn
|
|
Width="80"
|
|
FieldName="Position"
|
|
Header="Position" />
|
|
<dxg:GridColumn
|
|
Width="180"
|
|
FieldName="Description"
|
|
Header="Bezeichnung" />
|
|
<dxg:GridColumn
|
|
Width="100"
|
|
FieldName="Sign"
|
|
Header="Zeichen im Plan" />
|
|
<dxg:GridColumn
|
|
x:Name="column_Color"
|
|
Width="40"
|
|
FieldName="Brush"
|
|
Header="Farbe">
|
|
<dxg:GridColumn.DisplayTemplate>
|
|
<ControlTemplate>
|
|
<Border
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="{Binding Value}"
|
|
BorderBrush="Black"
|
|
BorderThickness="1" />
|
|
</ControlTemplate>
|
|
</dxg:GridColumn.DisplayTemplate>
|
|
<dxg:GridColumn.EditTemplate>
|
|
<ControlTemplate>
|
|
<Button
|
|
x:Name="PART_Editor"
|
|
Height="21"
|
|
HorizontalAlignment="Stretch"
|
|
Background="{Binding EditValue}"
|
|
BorderThickness="0"
|
|
Click="button_select_color_Click"
|
|
Foreground="{Binding EditValue}"
|
|
Style="{x:Null}" />
|
|
</ControlTemplate>
|
|
</dxg:GridColumn.EditTemplate>
|
|
</dxg:GridColumn>
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AutoWidth="true"
|
|
NavigationStyle="Cell"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
<Popup
|
|
x:Name="popup_color"
|
|
Placement="MousePoint"
|
|
StaysOpen="false">
|
|
<ListBox
|
|
x:Name="listbox_colorpicker"
|
|
BorderThickness="0"
|
|
Loaded="colorEditor_Loaded"
|
|
SelectionChanged="listbox_colorpicker_SelectionChanged">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid
|
|
Columns="12"
|
|
IsItemsHost="True"
|
|
Rows="12" />
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ListBoxItem}">
|
|
<Setter Property="Margin" Value="2" />
|
|
<Setter Property="Padding" Value="0" />
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
</ListBox>
|
|
</Popup>
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
</Grid>
|
|
|
|
</localView:BeWoView> |