Styles nur in PrototypeStyles.xaml
CustomerVermittlungArbeitView Control anpassungen Xaml
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
<ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" />
|
||||
<ResourceDictionary Source="Styles\OrangeBlack.xaml" />
|
||||
<ResourceDictionary Source="Styles\AnalysisExpanderStyle.xaml" />
|
||||
<ResourceDictionary Source="Styles\PrototypeStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<!--<conv:AssessmentSheetCategory2VisibilityConverter x:Key="AssessmentSheetCategory2VisibilityConverter" />-->
|
||||
<conv:EnumToDescriptionConverter x:Key="enumToDescriptionConverter" />
|
||||
|
||||
@@ -1,382 +1,612 @@
|
||||
<ResourceDictionary 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:conv="clr-namespace:BeWo.Converter" xmlns:localcore="clr-namespace:BeWo.Core" mc:Ignorable="d">
|
||||
<conv:BoolVisibilityConverter x:Key="BoolVisibilityConverter" />
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:conv="clr-namespace:BeWo.Converter"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:localcore="clr-namespace:BeWo.Core"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
<conv:BoolVisibilityConverter x:Key="BoolVisibilityConverter" />
|
||||
|
||||
<LinearGradientBrush x:Key="ExpanderArrowHoverFill" EndPoint="0,1" StartPoint="0,0">
|
||||
<GradientStop Color="#FFF0F8FE" Offset="0" />
|
||||
<GradientStop Color="#FFE0F3FE" Offset="0.3" />
|
||||
<GradientStop Color="#FF6FA7C5" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="ExpanderArrowPressedFill" EndPoint="0,1" StartPoint="0,0">
|
||||
<GradientStop Color="#FFDCF0FA" Offset="0" />
|
||||
<GradientStop Color="#FFC5E6F7" Offset="0.2" />
|
||||
<GradientStop Color="#FF5690D0" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="ExpanderArrowFill" EndPoint="0,1" StartPoint="0,0">
|
||||
<GradientStop Color="White" Offset="0" />
|
||||
<GradientStop Color="#FFBFBFBF" Offset="0.5" />
|
||||
<GradientStop Color="#FF878787" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid SnapsToDevicePixels="False" Background="Transparent">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="19" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Grid.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="-90" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Grid.LayoutTransform>
|
||||
<Ellipse Fill="{DynamicResource ExpanderArrowFill}" Stroke="DarkGray" HorizontalAlignment="Center" x:Name="circle" VerticalAlignment="Center" Width="19" Height="19" />
|
||||
<Path Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" x:Name="arrow" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5" />
|
||||
</Grid>
|
||||
<ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" VerticalAlignment="Top" SnapsToDevicePixels="True" Grid.Row="1" RecognizesAccessKey="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter Property="Data" TargetName="arrow" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B" />
|
||||
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderUpHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid SnapsToDevicePixels="False" Background="Transparent">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="19" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="180" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Grid.LayoutTransform>
|
||||
<Ellipse Fill="{DynamicResource ExpanderArrowFill}" Stroke="DarkGray" HorizontalAlignment="Center" x:Name="circle" VerticalAlignment="Center" Width="19" Height="19" />
|
||||
<Path Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" x:Name="arrow" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5" />
|
||||
</Grid>
|
||||
<ContentPresenter HorizontalAlignment="Left" Margin="4,0,0,0" VerticalAlignment="Center" SnapsToDevicePixels="True" Grid.Column="1" RecognizesAccessKey="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter Property="Data" TargetName="arrow" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B" />
|
||||
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderLeftHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid SnapsToDevicePixels="False" Background="Transparent">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="19" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Grid.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="90" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Grid.LayoutTransform>
|
||||
<Ellipse Fill="{DynamicResource ExpanderArrowFill}" Stroke="DarkGray" HorizontalAlignment="Center" x:Name="circle" VerticalAlignment="Center" Width="19" Height="19" />
|
||||
<Path Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" x:Name="arrow" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5" />
|
||||
</Grid>
|
||||
<ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" VerticalAlignment="Top" SnapsToDevicePixels="True" Grid.Row="1" RecognizesAccessKey="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter Property="Data" TargetName="arrow" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B" />
|
||||
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderHeaderFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Border>
|
||||
<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="0" SnapsToDevicePixels="true" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid SnapsToDevicePixels="False" Background="Transparent">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="19" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Ellipse Fill="{DynamicResource ExpanderArrowFill}" Stroke="DarkGray" HorizontalAlignment="Center" x:Name="circle" VerticalAlignment="Center" Width="19" Height="19" />
|
||||
<Path Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" x:Name="arrow" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5" />
|
||||
<ContentPresenter HorizontalAlignment="Left" Margin="4,0,0,0" VerticalAlignment="Center" SnapsToDevicePixels="True" Grid.Column="1" RecognizesAccessKey="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter Property="Data" TargetName="arrow" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B" />
|
||||
<Setter Property="StrokeThickness" TargetName="circle" Value="1.5" />
|
||||
<Setter Property="Fill" TargetName="circle" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter Property="Stroke" TargetName="arrow" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="analysisExpander" TargetType="{x:Type Expander}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="BorderBrush" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Expander}">
|
||||
<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
|
||||
<DockPanel>
|
||||
<ToggleButton localcore:BeWoWpfUtils.IsExpanderButtonVisible="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}" IsEnabled="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}" FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" Margin="1" MinHeight="0" MinWidth="0" x:Name="HeaderSite" Style="{DynamicResource AnalysisExpanderToggleButton}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}" FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" DockPanel.Dock="Top" />
|
||||
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" x:Name="ExpandSite" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Focusable="false" Visibility="Collapsed" DockPanel.Dock="Bottom" />
|
||||
</DockPanel>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded" Value="true">
|
||||
<Setter Property="Visibility" TargetName="ExpandSite" Value="Visible" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="AnalysisExpanderToggleButton" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="Storyboard1">
|
||||
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Visibility)">
|
||||
<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Border BorderBrush="#14FFFFFF" BorderThickness="1,1,1,0" CornerRadius="5,5,5,5">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#19000000" Offset="0" />
|
||||
<GradientStop Color="#4C000000" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
<Grid Margin="3,0,10,0" SnapsToDevicePixels="False" Background="Transparent">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" x:Name="columnDefinition" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ContentPresenter HorizontalAlignment="Stretch" Margin="4,0,0,0" VerticalAlignment="Center" SnapsToDevicePixels="True" Grid.Column="1" RecognizesAccessKey="True" />
|
||||
<Rectangle Visibility="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible, Converter={StaticResource BoolVisibilityConverter}}" Stroke="#4C000000" RadiusX="2" RadiusY="2" x:Name="rectangle" Width="14" Height="14" Grid.ColumnSpan="1" Margin="5,5,5,5">
|
||||
<Rectangle.Fill>
|
||||
<RadialGradientBrush>
|
||||
<GradientStop Color="#19000000" Offset="0" />
|
||||
<GradientStop Color="#4C000000" Offset="1" />
|
||||
</RadialGradientBrush>
|
||||
</Rectangle.Fill>
|
||||
</Rectangle>
|
||||
<Path Visibility="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible, Converter={StaticResource BoolVisibilityConverter}}" Fill="{x:Null}" Stretch="Fill" Stroke="White" HorizontalAlignment="Center" x:Name="path1" VerticalAlignment="Center" Width="1" Height="8" RenderTransformOrigin="0.5,0.5" Data="M9.375,4.125 L9.375,10.375" d:LayoutOverrides="Width">
|
||||
<Path.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform ScaleX="1" ScaleY="1" />
|
||||
<SkewTransform AngleX="0" AngleY="0" />
|
||||
<RotateTransform Angle="-90" />
|
||||
<TranslateTransform X="0" Y="0" />
|
||||
</TransformGroup>
|
||||
</Path.RenderTransform>
|
||||
</Path>
|
||||
<Path Visibility="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible, Converter={StaticResource BoolVisibilityConverter}}" Fill="{x:Null}" Stretch="Fill" Stroke="White" HorizontalAlignment="Center" x:Name="path" VerticalAlignment="Center" Height="8" Data="M9.625,4.625 L9.625,10.125" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard x:Name="Storyboard1_BeginStoryboard" Storyboard="{StaticResource Storyboard1}" />
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<RemoveStoryboard BeginStoryboardName="Storyboard1_BeginStoryboard" />
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true" />
|
||||
<Trigger Property="IsPressed" Value="true" />
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<LinearGradientBrush x:Key="ExpanderArrowHoverFill" StartPoint="0,0" EndPoint="0,1">
|
||||
<GradientStop Offset="0" Color="#FFF0F8FE" />
|
||||
<GradientStop Offset="0.3" Color="#FFE0F3FE" />
|
||||
<GradientStop Offset="1" Color="#FF6FA7C5" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="ExpanderArrowPressedFill" StartPoint="0,0" EndPoint="0,1">
|
||||
<GradientStop Offset="0" Color="#FFDCF0FA" />
|
||||
<GradientStop Offset="0.2" Color="#FFC5E6F7" />
|
||||
<GradientStop Offset="1" Color="#FF5690D0" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="ExpanderArrowFill" StartPoint="0,0" EndPoint="0,1">
|
||||
<GradientStop Offset="0" Color="White" />
|
||||
<GradientStop Offset="0.5" Color="#FFBFBFBF" />
|
||||
<GradientStop Offset="1" Color="#FF878787" />
|
||||
</LinearGradientBrush>
|
||||
<Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="19" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Grid.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="-90" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Grid.LayoutTransform>
|
||||
<Ellipse
|
||||
x:Name="circle"
|
||||
Width="19"
|
||||
Height="19"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Fill="{DynamicResource ExpanderArrowFill}"
|
||||
Stroke="DarkGray" />
|
||||
<Path
|
||||
x:Name="arrow"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="M 1,1.5 L 4.5,5 L 8,1.5"
|
||||
SnapsToDevicePixels="false"
|
||||
Stroke="#666"
|
||||
StrokeThickness="2" />
|
||||
</Grid>
|
||||
<ContentPresenter
|
||||
Grid.Row="1"
|
||||
Margin="0,4,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter TargetName="arrow" Property="Data" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF3C7FB1" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF526C7B" />
|
||||
<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderUpHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="19" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="180" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Grid.LayoutTransform>
|
||||
<Ellipse
|
||||
x:Name="circle"
|
||||
Width="19"
|
||||
Height="19"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Fill="{DynamicResource ExpanderArrowFill}"
|
||||
Stroke="DarkGray" />
|
||||
<Path
|
||||
x:Name="arrow"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="M 1,1.5 L 4.5,5 L 8,1.5"
|
||||
SnapsToDevicePixels="false"
|
||||
Stroke="#666"
|
||||
StrokeThickness="2" />
|
||||
</Grid>
|
||||
<ContentPresenter
|
||||
Grid.Column="1"
|
||||
Margin="4,0,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter TargetName="arrow" Property="Data" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF3C7FB1" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF526C7B" />
|
||||
<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderLeftHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="19" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Grid.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<TransformGroup.Children>
|
||||
<TransformCollection>
|
||||
<RotateTransform Angle="90" />
|
||||
</TransformCollection>
|
||||
</TransformGroup.Children>
|
||||
</TransformGroup>
|
||||
</Grid.LayoutTransform>
|
||||
<Ellipse
|
||||
x:Name="circle"
|
||||
Width="19"
|
||||
Height="19"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Fill="{DynamicResource ExpanderArrowFill}"
|
||||
Stroke="DarkGray" />
|
||||
<Path
|
||||
x:Name="arrow"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="M 1,1.5 L 4.5,5 L 8,1.5"
|
||||
SnapsToDevicePixels="false"
|
||||
Stroke="#666"
|
||||
StrokeThickness="2" />
|
||||
</Grid>
|
||||
<ContentPresenter
|
||||
Grid.Row="1"
|
||||
Margin="0,4,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter TargetName="arrow" Property="Data" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF3C7FB1" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF526C7B" />
|
||||
<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderHeaderFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Border>
|
||||
<Rectangle
|
||||
Margin="0"
|
||||
SnapsToDevicePixels="true"
|
||||
Stroke="Black"
|
||||
StrokeDashArray="1 2"
|
||||
StrokeThickness="1" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border Padding="{TemplateBinding Padding}">
|
||||
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="19" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Ellipse
|
||||
x:Name="circle"
|
||||
Width="19"
|
||||
Height="19"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Fill="{DynamicResource ExpanderArrowFill}"
|
||||
Stroke="DarkGray" />
|
||||
<Path
|
||||
x:Name="arrow"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="M 1,1.5 L 4.5,5 L 8,1.5"
|
||||
SnapsToDevicePixels="false"
|
||||
Stroke="#666"
|
||||
StrokeThickness="2" />
|
||||
<ContentPresenter
|
||||
Grid.Column="1"
|
||||
Margin="4,0,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter TargetName="arrow" Property="Data" Value="M 1,4.5 L 4.5,1 L 8,4.5" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF3C7FB1" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowHoverFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter TargetName="circle" Property="Stroke" Value="#FF526C7B" />
|
||||
<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
|
||||
<Setter TargetName="circle" Property="Fill" Value="{DynamicResource ExpanderArrowPressedFill}" />
|
||||
<Setter TargetName="arrow" Property="Stroke" Value="#FF003366" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="analysisExpander" TargetType="{x:Type Expander}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="BorderBrush" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Expander}">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="3"
|
||||
SnapsToDevicePixels="true">
|
||||
<DockPanel>
|
||||
<ToggleButton
|
||||
x:Name="HeaderSite"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Margin="1"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
localcore:BeWoWpfUtils.IsExpanderButtonVisible="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}"
|
||||
Content="{TemplateBinding Header}"
|
||||
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||||
ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
||||
DockPanel.Dock="Top"
|
||||
FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"
|
||||
FontFamily="{TemplateBinding FontFamily}"
|
||||
FontSize="{TemplateBinding FontSize}"
|
||||
FontStretch="{TemplateBinding FontStretch}"
|
||||
FontStyle="{TemplateBinding FontStyle}"
|
||||
FontWeight="{TemplateBinding FontWeight}"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
IsEnabled="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}"
|
||||
Style="{DynamicResource AnalysisExpanderToggleButton}" />
|
||||
<ContentPresenter
|
||||
x:Name="ExpandSite"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
DockPanel.Dock="Bottom"
|
||||
Focusable="false"
|
||||
Visibility="Collapsed" />
|
||||
</DockPanel>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded" Value="true">
|
||||
<Setter TargetName="ExpandSite" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="AnalysisExpanderToggleButton" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="Storyboard1">
|
||||
<ObjectAnimationUsingKeyFrames
|
||||
BeginTime="00:00:00"
|
||||
Storyboard.TargetName="path"
|
||||
Storyboard.TargetProperty="(UIElement.Visibility)"
|
||||
Duration="00:00:00.0010000">
|
||||
<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Border
|
||||
BorderBrush="#14FFFFFF"
|
||||
BorderThickness="1,1,1,0"
|
||||
CornerRadius="5,5,5,5">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Offset="0" Color="#19000000" />
|
||||
<GradientStop Offset="1" Color="#4C000000" />
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
<Grid
|
||||
Margin="3,0,10,0"
|
||||
Background="Transparent"
|
||||
SnapsToDevicePixels="False">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition x:Name="columnDefinition" Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ContentPresenter
|
||||
Grid.Column="1"
|
||||
Margin="4,0,0,0"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
<Rectangle
|
||||
x:Name="rectangle"
|
||||
Grid.ColumnSpan="1"
|
||||
Width="14"
|
||||
Height="14"
|
||||
Margin="5,5,5,5"
|
||||
RadiusX="2"
|
||||
RadiusY="2"
|
||||
Stroke="#4C000000"
|
||||
Visibility="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible,
|
||||
Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Rectangle.Fill>
|
||||
<RadialGradientBrush>
|
||||
<GradientStop Offset="0" Color="#19000000" />
|
||||
<GradientStop Offset="1" Color="#4C000000" />
|
||||
</RadialGradientBrush>
|
||||
</Rectangle.Fill>
|
||||
</Rectangle>
|
||||
<Path
|
||||
x:Name="path1"
|
||||
Width="1"
|
||||
Height="8"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="M9.375,4.125 L9.375,10.375"
|
||||
Fill="{x:Null}"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Stretch="Fill"
|
||||
Stroke="White"
|
||||
Visibility="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible,
|
||||
Converter={StaticResource BoolVisibilityConverter}}"
|
||||
d:LayoutOverrides="Width">
|
||||
<Path.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform ScaleX="1" ScaleY="1" />
|
||||
<SkewTransform AngleX="0" AngleY="0" />
|
||||
<RotateTransform Angle="-90" />
|
||||
<TranslateTransform X="0" Y="0" />
|
||||
</TransformGroup>
|
||||
</Path.RenderTransform>
|
||||
</Path>
|
||||
<Path
|
||||
x:Name="path"
|
||||
Height="8"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="M9.625,4.625 L9.625,10.125"
|
||||
Fill="{x:Null}"
|
||||
Stretch="Fill"
|
||||
Stroke="White"
|
||||
Visibility="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible,
|
||||
Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard x:Name="Storyboard1_BeginStoryboard" Storyboard="{StaticResource Storyboard1}" />
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<RemoveStoryboard BeginStoryboardName="Storyboard1_BeginStoryboard" />
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true" />
|
||||
<Trigger Property="IsPressed" Value="true" />
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="FlatLineExpander" TargetType="{x:Type Expander}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="BorderBrush" Value="#5F5F5F" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Expander}">
|
||||
<Style x:Key="FlatLineExpander" TargetType="{x:Type Expander}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
||||
<Setter Property="BorderBrush" Value="#5F5F5F" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Expander}">
|
||||
|
||||
<DockPanel>
|
||||
<Border SnapsToDevicePixels="true" Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,0,1" DockPanel.Dock="Top">
|
||||
<ToggleButton localcore:BeWoWpfUtils.IsExpanderButtonVisible="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}"
|
||||
IsEnabled="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}" FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"
|
||||
Margin="1" MinHeight="0" MinWidth="0" x:Name="HeaderSite" Style="{DynamicResource TriangleToggleButton}" Content="{TemplateBinding Header}"
|
||||
ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
||||
FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}"
|
||||
FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{TemplateBinding Foreground}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Border>
|
||||
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" x:Name="ExpandSite"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Focusable="false" Visibility="Collapsed" DockPanel.Dock="Bottom" />
|
||||
</DockPanel>
|
||||
<DockPanel>
|
||||
<Border
|
||||
Background="Transparent"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="0,0,0,1"
|
||||
DockPanel.Dock="Top"
|
||||
SnapsToDevicePixels="true">
|
||||
<ToggleButton
|
||||
x:Name="HeaderSite"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Margin="1"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
localcore:BeWoWpfUtils.IsExpanderButtonVisible="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}"
|
||||
Content="{TemplateBinding Header}"
|
||||
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||||
ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
||||
FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"
|
||||
FontFamily="{TemplateBinding FontFamily}"
|
||||
FontSize="{TemplateBinding FontSize}"
|
||||
FontStretch="{TemplateBinding FontStretch}"
|
||||
FontStyle="{TemplateBinding FontStyle}"
|
||||
FontWeight="{TemplateBinding FontWeight}"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
IsEnabled="{TemplateBinding localcore:BeWoWpfUtils.IsExpanderButtonVisible}"
|
||||
Style="{DynamicResource TriangleToggleButton}" />
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
x:Name="ExpandSite"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
DockPanel.Dock="Bottom"
|
||||
Focusable="false"
|
||||
Visibility="Collapsed" />
|
||||
</DockPanel>
|
||||
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded" Value="true">
|
||||
<Setter Property="Visibility" TargetName="ExpandSite" Value="Visible" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded" Value="true">
|
||||
<Setter TargetName="ExpandSite" Property="Visibility" Value="Visible" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="TriangleToggleButton" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="Storyboard1">
|
||||
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Visibility)">
|
||||
<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Grid Margin="3,0,10,0" SnapsToDevicePixels="False" Background="Transparent">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" x:Name="columnDefinition" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ContentPresenter HorizontalAlignment="Stretch" Margin="8,0,0,0" VerticalAlignment="Center" SnapsToDevicePixels="True" Grid.Column="1" RecognizesAccessKey="True" />
|
||||
<Grid x:Name="expander_button" Grid.Column="0" Height="12" Width="12" Margin="1" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
|
||||
<Grid.RenderTransform>
|
||||
<RotateTransform Angle="0" />
|
||||
</Grid.RenderTransform>
|
||||
<!--<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Path_Arrow" VerticalAlignment="Center" Fill="#FF000000" Data="M0,0L4,7 8,0z" Margin="0,2,0,0" />-->
|
||||
<Polygon
|
||||
SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Path_Arrow" VerticalAlignment="Center" Margin="0,0,0,0"
|
||||
Points="0,0 7,4 0,8 0,0" StrokeThickness="0"
|
||||
Fill="#FF000000">
|
||||
<Style x:Key="TriangleToggleButton" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="Storyboard1">
|
||||
<ObjectAnimationUsingKeyFrames
|
||||
BeginTime="00:00:00"
|
||||
Storyboard.TargetName="path"
|
||||
Storyboard.TargetProperty="(UIElement.Visibility)"
|
||||
Duration="00:00:00.0010000">
|
||||
<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
<Grid
|
||||
Margin="3,0,10,0"
|
||||
Background="Transparent"
|
||||
SnapsToDevicePixels="False">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition x:Name="columnDefinition" Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ContentPresenter
|
||||
Grid.Column="1"
|
||||
Margin="8,0,0,0"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="True" />
|
||||
<Grid
|
||||
x:Name="expander_button"
|
||||
Grid.Column="0"
|
||||
Width="12"
|
||||
Height="12"
|
||||
Margin="1"
|
||||
VerticalAlignment="Center"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<Grid.RenderTransform>
|
||||
<RotateTransform Angle="0" />
|
||||
</Grid.RenderTransform>
|
||||
<!--<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Path_Arrow" VerticalAlignment="Center" Fill="#FF000000" Data="M0,0L4,7 8,0z" Margin="0,2,0,0" />-->
|
||||
<Polygon
|
||||
x:Name="Path_Arrow"
|
||||
Margin="0,0,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Fill="#FF000000"
|
||||
Points="0,0 7,4 0,8 0,0"
|
||||
SnapsToDevicePixels="True"
|
||||
StrokeThickness="0" />
|
||||
</Grid>
|
||||
|
||||
</Polygon>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Trigger.EnterActions>
|
||||
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Trigger.EnterActions>
|
||||
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="expander_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" To="90" Duration="0" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="expander_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" To="0" Duration="0" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
Storyboard.TargetName="expander_button"
|
||||
Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)"
|
||||
To="90"
|
||||
Duration="0" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
Storyboard.TargetName="expander_button"
|
||||
Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)"
|
||||
To="0"
|
||||
Duration="0" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
@@ -1 +1,4 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"></ResourceDictionary>
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" />
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,31 +1,32 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
xmlns:conv="clr-namespace:BeWo.Converter"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxei="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
||||
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
||||
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
|
||||
>
|
||||
<Style x:Key="TitleLabel" TargetType="Label">
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:conv="clr-namespace:BeWo.Converter"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxei="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
||||
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
||||
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
|
||||
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls">
|
||||
<Style x:Key="TitleLabel" TargetType="Label">
|
||||
<Setter Property="TextElement.FontSize" Value="16" />
|
||||
<Setter Property="TextElement.Foreground" Value="{StaticResource TabItemHotTextBrush}" />
|
||||
<Setter Property="TextElement.FontFamily" Value="Microsoft Sans Serif" />
|
||||
<Setter Property="Padding" Value="3,0,3,0" />
|
||||
<Setter Property="MinHeight" Value="20" />
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
<Setter Property="Margin" Value="3, -6, 3, 6"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||
<Setter Property="Margin" Value="3,-6,3,6" />
|
||||
</Style>
|
||||
<Style TargetType="uc:NullItemComboBox" BasedOn="{StaticResource {x:Type uc:NullItemComboBox}}">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Style BasedOn="{StaticResource {x:Type uc:NullItemComboBox}}" TargetType="uc:NullItemComboBox">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
</Style>
|
||||
<Style TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Setter Property="Height" Value="23"/>
|
||||
<Style BasedOn="{StaticResource {x:Type ComboBox}}" TargetType="ComboBox">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="Height" Value="23" />
|
||||
</Style>
|
||||
<Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="{x:Type CheckBox}">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<!--<Style TargetType="dxe:DateEdit" BasedOn="{StaticResource {x:Type dxe:DateEdit}}" x:Shared="False">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
@@ -45,39 +46,77 @@
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>-->
|
||||
<Style TargetType="{x:Type dxe:DateEdit}" BasedOn="{StaticResource {x:Type dxe:DateEdit}}">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Setter Property="Padding" Value="1"/>
|
||||
<Setter Property="Height" Value="23"/>
|
||||
<Style BasedOn="{StaticResource {x:Type dxe:DateEdit}}" TargetType="{x:Type dxe:DateEdit}">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="Height" Value="23" />
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Style.Resources>
|
||||
<DataTemplate x:Key="{dxet:ButtonsThemeKey ResourceKey=ToggleButtonInfoTemplate, IsThemeIndependent=True}">
|
||||
<dx:ToggleStateButton IsChecked="{Binding Path=IsChecked, Mode=TwoWay}"
|
||||
x:Name="PART_Item"
|
||||
Margin="2"
|
||||
dxei:SetIsCheckedToButtonInfoBehavior.IsEnabled="True"
|
||||
Style="{StaticResource ComboBoxTransparentButtonStyle}">
|
||||
</dx:ToggleStateButton>
|
||||
<dx:ToggleStateButton
|
||||
x:Name="PART_Item"
|
||||
Margin="2"
|
||||
dxei:SetIsCheckedToButtonInfoBehavior.IsEnabled="True"
|
||||
IsChecked="{Binding Path=IsChecked, Mode=TwoWay}"
|
||||
Style="{StaticResource ComboBoxTransparentButtonStyle}" />
|
||||
<DataTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding Path=IsDefaultButton}"
|
||||
Value="True">
|
||||
<Setter TargetName="PART_Item"
|
||||
Property="IsChecked"
|
||||
Value="{Binding Path=(dxe:BaseEdit.OwnerEdit).IsPopupOpen, RelativeSource={RelativeSource Self}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<DataTrigger Binding="{Binding Path=IsDefaultButton}" Value="True">
|
||||
<Setter TargetName="PART_Item" Property="IsChecked" Value="{Binding Path=(dxe:BaseEdit.OwnerEdit).IsPopupOpen, RelativeSource={RelativeSource Self}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding Path=IsDefaultButton}"
|
||||
Value="False">
|
||||
<Setter TargetName="PART_Item"
|
||||
Property="HandleToggle"
|
||||
Value="False" />
|
||||
<DataTrigger Binding="{Binding Path=IsDefaultButton}" Value="False">
|
||||
<Setter TargetName="PART_Item" Property="HandleToggle" Value="False" />
|
||||
</DataTrigger>
|
||||
</DataTemplate.Triggers>
|
||||
</DataTemplate>
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type StackPanel}">
|
||||
|
||||
<Style BasedOn="{StaticResource {x:Type dxe:TextEdit}}" TargetType="{x:Type dxe:TextEdit}">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="Height" Value="23" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="Visibility" Value="Visible" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled}" Value="False">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="{x:Type Label}">
|
||||
<Setter Property="IsEnabled" Value="True" />
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="Padding" Value="3" />
|
||||
<Setter Property="VerticalAlignment" Value="Top" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="{x:Type TextBox}">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="Padding" Value="3" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
<Style TargetType="RadioButton">
|
||||
<Setter Property="Margin" Value="3" />
|
||||
<Setter Property="VerticalAlignment" Value="Top" />
|
||||
</Style>
|
||||
<DataTemplate x:Key="ListItemView">
|
||||
<TextBlock
|
||||
Text="{Binding Path=., Converter={StaticResource EnumTranslationConverter}}"
|
||||
TextWrapping="Wrap"
|
||||
ToolTip="{Binding Path=Text, RelativeSource={RelativeSource Self}}" />
|
||||
</DataTemplate>
|
||||
<Style
|
||||
x:Key="EnumTranslationNullItemComboBox"
|
||||
BasedOn="{StaticResource {x:Type uc:NullItemComboBox}}"
|
||||
TargetType="{x:Type uc:NullItemComboBox}">
|
||||
<Setter Property="ItemTemplate" Value="{StaticResource ListItemView}" />
|
||||
</Style>
|
||||
<Style
|
||||
x:Key="EnumTranslationComboBox"
|
||||
BasedOn="{StaticResource {x:Type ComboBox}}"
|
||||
TargetType="{x:Type ComboBox}">
|
||||
<Setter Property="ItemTemplate" Value="{StaticResource ListItemView}" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
@@ -1,35 +1,58 @@
|
||||
<UserControl x:Class="BeWo.View.Controls.BehinderungsartenSelectionControl"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300">
|
||||
<UserControl
|
||||
x:Class="BeWo.View.Controls.BehinderungsartenSelectionControl"
|
||||
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"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="300"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ListBox Grid.Row="0" x:Name="listbox_result" ItemsSource="{Binding Path=PossibleBehinderungsarten}" Background="{DynamicResource ObjectEditBackgroundBrush}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Border BorderBrush="{x:Null}" Height="23" CornerRadius="5">
|
||||
<CheckBox Margin="6,0,0,0" VerticalAlignment="Center" FontFamily="Microsoft Sans Serif" Tag="{Binding}" IsChecked="{Binding Path=IsChecked}"
|
||||
Content="{Binding Path=Name}" Checked="BehinderungsartCB_OnChecked" Unchecked="BehinderungsartCB_OnChecked"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
<ListBox
|
||||
x:Name="listbox_result"
|
||||
Grid.Row="0"
|
||||
Background="{DynamicResource ObjectEditBackgroundBrush}"
|
||||
ItemsSource="{Binding Path=PossibleBehinderungsarten}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Border
|
||||
Height="23"
|
||||
BorderBrush="{x:Null}"
|
||||
CornerRadius="5">
|
||||
<CheckBox
|
||||
Margin="6,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
Checked="BehinderungsartCB_OnChecked"
|
||||
Content="{Binding Path=Name}"
|
||||
FontFamily="Microsoft Sans Serif"
|
||||
IsChecked="{Binding Path=IsChecked}"
|
||||
Tag="{Binding}"
|
||||
Unchecked="BehinderungsartCB_OnChecked" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button HorizontalAlignment="Right" Grid.Column="1" Margin="3" Content="Schließen" Width="70" Height="25" Command="ApplicationCommands.Close" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button
|
||||
Grid.Column="1"
|
||||
Width="70"
|
||||
Height="25"
|
||||
Margin="3"
|
||||
HorizontalAlignment="Right"
|
||||
Command="ApplicationCommands.Close"
|
||||
Content="Schließen" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@@ -1,33 +1,57 @@
|
||||
<UserControl x:Class="BeWo.View.Controls.CustomerVermittlungArbeitControl"
|
||||
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:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
|
||||
<UserControl
|
||||
x:Class="BeWo.View.Controls.CustomerVermittlungArbeitControl"
|
||||
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:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
d:DesignHeight="1450"
|
||||
d:DesignWidth="1800"
|
||||
mc:Ignorable="d">
|
||||
<d:DesignerProperties.DesignStyle>
|
||||
<Style TargetType="UserControl">
|
||||
<Setter Property="Background" Value="White" />
|
||||
<Setter Property="Height" Value="1366" />
|
||||
<Setter Property="Width" Value="768" />
|
||||
</Style>
|
||||
</d:DesignerProperties.DesignStyle>
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="..\..\Styles\PrototypeStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style BasedOn="{StaticResource ObjectEditGroupBox}" TargetType="{x:Type GroupBox}">
|
||||
<Setter Property="Margin" Value="15" />
|
||||
<Setter Property="Padding" Value="10,7,7,5" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid HorizontalAlignment="Stretch">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" MaxWidth="500" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox Grid.RowSpan="3" Grid.Column="0" Padding="5" Style="{StaticResource ObjectEditGroupBox}" Header="Falldaten">
|
||||
<Grid>
|
||||
<Grid.Resources>
|
||||
<ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
</Grid.Resources>
|
||||
<GroupBox
|
||||
Grid.RowSpan="3"
|
||||
Grid.Column="1"
|
||||
Width="{Binding Path=Width, ElementName=grid}"
|
||||
HorizontalAlignment="Stretch"
|
||||
Header="Falldaten">
|
||||
<Grid x:Name="grid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" MinWidth="200"/>
|
||||
<ColumnDefinition x:Name="column1" Width="Auto" />
|
||||
<ColumnDefinition
|
||||
x:Name="column2"
|
||||
Width="*"
|
||||
MinWidth="200"
|
||||
MaxWidth="300" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
@@ -49,87 +73,225 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0" Content="Eigenes Aktenzeichen" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Margin="3" Height="23" Text="{Binding Path=EigenesAktenzeichen, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="Auftragseingang" IsEnabled="True" />
|
||||
<dxe:DateEdit Grid.Row="1" Grid.Column="1" Margin="3" Height="23" ShowClearButton="False" EditValue="{Binding Path=Auftragseingang, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"/>
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="Auftragsherkunft" />
|
||||
<uc:NullItemComboBox x:Name="comboBox_Auftragsherkunft" Grid.Row="2" Grid.Column="1" Margin="3" Height="23" SelectedValue="{Binding Path=Auftragsherkunft, Mode=TwoWay}"
|
||||
ItemsSource="{Binding Path=Auftragsherkunfte}" MinWidth="30" HorizontalAlignment="Stretch"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"/>
|
||||
<Label Grid.Row="3" Grid.Column="0" Content="Vermittlungsgrundlage" />
|
||||
<uc:NullItemComboBox x:Name="comboBox_Vermittlungsgrundlage" Grid.Row="3" Grid.Column="1" Margin="3" Height="23" SelectedValue="{Binding Path=Vermittlungsgrundlage, Mode=TwoWay}"
|
||||
ItemsSource="{Binding Path=Vermittlungsgrundlagen}" MinWidth="30" HorizontalAlignment="Stretch"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"/>
|
||||
<Label Grid.Row="4" Grid.Column="0" Content="Tagessätze" />
|
||||
<dxe:TextEdit Grid.Row="4" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=Tagessatze, UpdateSourceTrigger=PropertyChanged}" Mask="########0.##"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="5" Grid.Column="0" Content="Tagessatzhöhe" />
|
||||
<dxe:TextEdit Grid.Row="5" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=Tagessatzhohe, UpdateSourceTrigger=PropertyChanged}" Mask="########0.00 $"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="6" Grid.Column="0" Content="Höhe der Geldstrafe" />
|
||||
<dxe:TextEdit Grid.Row="6" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True" IsReadOnly="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=HoheDerGeldstrafe, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Mask="########0.00 $"
|
||||
/>
|
||||
<Label Grid.Row="7" Grid.Column="0" Content="Zu leistende Arbeitsstunden" />
|
||||
<dxe:TextEdit Grid.Row="7" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=ZuLeistendeArbeitsstunden, UpdateSourceTrigger=PropertyChanged}" Mask="########0.## Std"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="8" Grid.Column="0" Content="Hinweis" />
|
||||
<TextBox Grid.Row="8" Grid.Column="1" Margin="3" Height="23" Text="{Binding Path=Hinweis, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="9" Grid.Column="0" Content="Termin" />
|
||||
<dxe:DateEdit Grid.Row="9" Grid.Column="1" Margin="3" Height="23" ShowClearButton="True" EditValue="{Binding Path=Termin, UpdateSourceTrigger=PropertyChanged}"
|
||||
Mask="G" MaskUseAsDisplayFormat="True" IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}">
|
||||
<Label
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Content="Eigenes Aktenzeichen" />
|
||||
<TextBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Text="{Binding Path=EigenesAktenzeichen, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Content="Auftragseingang" />
|
||||
<dxe:DateEdit
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
EditValue="{Binding Path=Auftragseingang, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"
|
||||
ShowClearButton="False" />
|
||||
<Label
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Content="Auftragsherkunft" />
|
||||
<uc:NullItemComboBox
|
||||
x:Name="comboBox_Auftragsherkunft"
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"
|
||||
ItemsSource="{Binding Path=Auftragsherkunfte}"
|
||||
SelectedValue="{Binding Path=Auftragsherkunft, Mode=TwoWay}" />
|
||||
<Label
|
||||
Grid.Row="3"
|
||||
Grid.Column="0"
|
||||
Content="Vermittlungsgrundlage" />
|
||||
<uc:NullItemComboBox
|
||||
x:Name="comboBox_Vermittlungsgrundlage"
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"
|
||||
ItemsSource="{Binding Path=Vermittlungsgrundlagen}"
|
||||
SelectedValue="{Binding Path=Vermittlungsgrundlage, Mode=TwoWay}" />
|
||||
<Label
|
||||
Grid.Row="4"
|
||||
Grid.Column="0"
|
||||
Content="Tagessätze" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=Tagessatze, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Mask="########0.##"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="5"
|
||||
Grid.Column="0"
|
||||
Content="Tagessatzhöhe" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=Tagessatzhohe, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Mask="########0.00 $"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="6"
|
||||
Grid.Column="0"
|
||||
Content="Höhe der Geldstrafe" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=HoheDerGeldstrafe, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="True"
|
||||
Mask="########0.00 $"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="7"
|
||||
Grid.Column="0"
|
||||
Content="Zu leistende Arbeitsstunden" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="7"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=ZuLeistendeArbeitsstunden, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Mask="########0.## Std"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="8"
|
||||
Grid.Column="0"
|
||||
Content="Hinweis" />
|
||||
<TextBox
|
||||
Grid.Row="8"
|
||||
Grid.Column="1"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Text="{Binding Path=Hinweis, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="9"
|
||||
Grid.Column="0"
|
||||
Content="Termin" />
|
||||
<dxe:DateEdit
|
||||
Grid.Row="9"
|
||||
Grid.Column="1"
|
||||
EditValue="{Binding Path=Termin, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"
|
||||
Mask="G"
|
||||
MaskUseAsDisplayFormat="True"
|
||||
ShowClearButton="True">
|
||||
<dxe:DateEdit.StyleSettings>
|
||||
<dxe:DateEditNavigatorWithTimePickerStyleSettings />
|
||||
</dxe:DateEdit.StyleSettings>
|
||||
</dxe:DateEdit>
|
||||
<Label Grid.Row="10" Grid.Column="0" Content="Bearbeitungsstatus" />
|
||||
<uc:NullItemComboBox x:Name="combobox_bearbeitungsstatus" Grid.Row="10" Grid.Column="1" Margin="3" Height="23" SelectedValue="{Binding Path=FalldatenBearbeitungsstatus, Mode=TwoWay}" MinWidth="30" HorizontalAlignment="Stretch"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"/>
|
||||
<Label Grid.Row="11" Grid.Column="0" Content="Auftragsrückgabe" />
|
||||
<TextBox Grid.Row="11" Grid.Column="1" Margin="3" Height="23" Text="{Binding Path=Auftragsruckgabe, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="12" Grid.Column="0" Content="Verlauf" />
|
||||
<TextBox Grid.Row="12" Grid.Column="1" Margin="3" Height="23" Text="{Binding Path=Verlauf, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="13" Grid.Column="0" Content="Abgeleistete Stunden" />
|
||||
<dxe:TextEdit Grid.Row="13" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=AbgeleisteteStunden, UpdateSourceTrigger=PropertyChanged}" Mask="########0.## Std"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="14" Grid.Column="0" Content="Ersparte Hafttage" />
|
||||
<dxe:TextEdit Grid.Row="14" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=ErsparteHafttage, UpdateSourceTrigger=PropertyChanged}" Mask="########0.## Tage"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="15" Grid.Column="0" Content="Geleistete Ratenzahlung" />
|
||||
<dxe:TextEdit Grid.Row="15" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=GeleisteteRatenzahlung, UpdateSourceTrigger=PropertyChanged}" Mask="########0.00 $"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="16" Grid.Column="0" Content="Geleistete Einmalzahlung" />
|
||||
<dxe:TextEdit Grid.Row="16" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=GeleisteteEinmalzahlung, UpdateSourceTrigger=PropertyChanged}" Mask="########0.00 $"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="17" Grid.Column="0" Content="Bemerkung" />
|
||||
<TextBox Grid.Row="17" Grid.Column="1" Margin="3" Height="60" Text="{Binding Path=Bemerkung, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label
|
||||
Grid.Row="10"
|
||||
Grid.Column="0"
|
||||
Content="Bearbeitungsstatus" />
|
||||
<uc:NullItemComboBox
|
||||
x:Name="combobox_bearbeitungsstatus"
|
||||
Grid.Row="10"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"
|
||||
SelectedValue="{Binding Path=FalldatenBearbeitungsstatus, Mode=TwoWay}" />
|
||||
<Label
|
||||
Grid.Row="11"
|
||||
Grid.Column="0"
|
||||
Content="Auftragsrückgabe" />
|
||||
<TextBox
|
||||
Grid.Row="11"
|
||||
Grid.Column="1"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Text="{Binding Path=Auftragsruckgabe, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="12"
|
||||
Grid.Column="0"
|
||||
Content="Verlauf" />
|
||||
<TextBox
|
||||
Grid.Row="12"
|
||||
Grid.Column="1"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Text="{Binding Path=Verlauf, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="13"
|
||||
Grid.Column="0"
|
||||
Content="Abgeleistete Stunden" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="13"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=AbgeleisteteStunden, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Mask="########0.## Std"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="14"
|
||||
Grid.Column="0"
|
||||
Content="Ersparte Hafttage" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="14"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=ErsparteHafttage, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Mask="########0.## Tage"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="15"
|
||||
Grid.Column="0"
|
||||
Content="Geleistete Ratenzahlung" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="15"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=GeleisteteRatenzahlung, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Mask="########0.00 $"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="16"
|
||||
Grid.Column="0"
|
||||
Content="Geleistete Einmalzahlung" />
|
||||
<dxe:TextEdit
|
||||
Grid.Row="16"
|
||||
Grid.Column="1"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=GeleisteteEinmalzahlung, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Mask="########0.00 $"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<Label
|
||||
Grid.Row="17"
|
||||
Grid.Column="0"
|
||||
Content="Bemerkung" />
|
||||
<TextBox
|
||||
Grid.Row="17"
|
||||
Grid.Column="1"
|
||||
Height="92"
|
||||
AcceptsReturn="True"
|
||||
IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"
|
||||
Text="{Binding Path=Bemerkung, UpdateSourceTrigger=PropertyChanged}"
|
||||
TextWrapping="Wrap"
|
||||
VerticalScrollBarVisibility="Auto" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Padding="5" Grid.Column="2" Style="{StaticResource ObjectEditGroupBox}" Header="Gründe für Abbruch" VerticalAlignment="Top">
|
||||
<GroupBox
|
||||
Grid.Column="0"
|
||||
VerticalAlignment="Top"
|
||||
Header="Gründe für Abbruch">
|
||||
<Grid>
|
||||
<Grid.Resources>
|
||||
<ResourceDictionary>
|
||||
|
||||
</ResourceDictionary>
|
||||
</Grid.Resources>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@@ -148,33 +310,108 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<CheckBox Grid.Row="0" Grid.Column="0" IsChecked="{Binding Path=GrundArbeitsunfahig, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="0" Grid.Column="1" Content="{markup:Translate GrundArbeitsunfahig}" />
|
||||
<CheckBox Grid.Row="1" Grid.Column="0" IsChecked="{Binding Path=GrundSuchtproblem, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="1" Grid.Column="1" Content="{markup:Translate GrundSuchtproblem}" />
|
||||
<CheckBox Grid.Row="2" Grid.Column="0" IsChecked="{Binding Path=GrundPsychischeProbleme, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="2" Grid.Column="1" Content="{markup:Translate GrundPsychischeProbleme}" />
|
||||
<CheckBox Grid.Row="3" Grid.Column="0" IsChecked="{Binding Path=GrundKeineMotivation, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="3" Grid.Column="1" Content="{markup:Translate GrundKeineMotivation}" />
|
||||
<CheckBox Grid.Row="4" Grid.Column="0" IsChecked="{Binding Path=GrundInHaft, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="4" Grid.Column="1" Content="{markup:Translate GrundInHaft}" />
|
||||
<CheckBox Grid.Row="5" Grid.Column="0" IsChecked="{Binding Path=GrundUnbekannt, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="5" Grid.Column="1" Content="{markup:Translate GrundUnbekannt}" />
|
||||
<CheckBox Grid.Row="6" Grid.Column="0" IsChecked="{Binding Path=GrundKeinKontakt, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="6" Grid.Column="1" Content="{markup:Translate GrundKeinKontakt}" />
|
||||
<CheckBox Grid.Row="7" Grid.Column="0" IsChecked="{Binding Path=GrundNichtAngetreten, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="7" Grid.Column="1" Content="{markup:Translate GrundNichtAngetreten}" />
|
||||
<CheckBox Grid.Row="8" Grid.Column="0" IsChecked="{Binding Path=GrundAbbruchDerTatigkeit, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="8" Grid.Column="1" Content="{markup:Translate GrundAbbruchDerTatigkeit}" />
|
||||
<CheckBox Grid.Row="9" Grid.Column="0" IsChecked="{Binding Path=GrundWiderruf, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="9" Grid.Column="1" Content="{markup:Translate GrundWiderruf}" />
|
||||
<CheckBox Grid.Row="10" Grid.Column="0" IsChecked="{Binding Path=Grund459StPO, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="10" Grid.Column="1" Content="{markup:Translate Grund459StPO}" />
|
||||
<CheckBox Grid.Row="11" Grid.Column="0" IsChecked="{Binding Path=GrundAusbleibenDerZahlung, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="11" Grid.Column="1" Content="{markup:Translate GrundAusbleibenDerZahlung}" />
|
||||
<CheckBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundArbeitsunfahig, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundArbeitsunfahig}" />
|
||||
<CheckBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundSuchtproblem, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundSuchtproblem}" />
|
||||
<CheckBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundPsychischeProbleme, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundPsychischeProbleme}" />
|
||||
<CheckBox
|
||||
Grid.Row="3"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundKeineMotivation, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundKeineMotivation}" />
|
||||
<CheckBox
|
||||
Grid.Row="4"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundInHaft, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundInHaft}" />
|
||||
<CheckBox
|
||||
Grid.Row="5"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundUnbekannt, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundUnbekannt}" />
|
||||
<CheckBox
|
||||
Grid.Row="6"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundKeinKontakt, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundKeinKontakt}" />
|
||||
<CheckBox
|
||||
Grid.Row="7"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundNichtAngetreten, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="7"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundNichtAngetreten}" />
|
||||
<CheckBox
|
||||
Grid.Row="8"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundAbbruchDerTatigkeit, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="8"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundAbbruchDerTatigkeit}" />
|
||||
<CheckBox
|
||||
Grid.Row="9"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundWiderruf, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="9"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundWiderruf}" />
|
||||
<CheckBox
|
||||
Grid.Row="10"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=Grund459StPO, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="10"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate Grund459StPO}" />
|
||||
<CheckBox
|
||||
Grid.Row="11"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=GrundAusbleibenDerZahlung, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="11"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate GrundAusbleibenDerZahlung}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="1" Grid.Column="2" Style="{StaticResource ObjectEditGroupBox}" Header="Besonderheiten" VerticalAlignment="Top" Grid.RowSpan="2">
|
||||
<GroupBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Header="Besonderheiten">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@@ -186,14 +423,38 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<CheckBox Grid.Row="0" Grid.Column="0" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" IsChecked="{Binding Path=BesonderheitMehrfacheBeauftragung, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="0" Grid.Column="1" Margin="0" Content="{markup:Translate BesonderheitMehrfacheBeauftragung}" />
|
||||
<CheckBox Grid.Row="1" Grid.Column="0" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" IsChecked="{Binding Path=BesonderheitMehrfacheVermittlung, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="1" Grid.Column="1" Margin="0" Content="{markup:Translate BesonderheitMehrfacheVermittlung}" />
|
||||
<CheckBox Grid.Row="2" Grid.Column="0" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" IsChecked="{Binding Path=BesonderheitVermittlungAusHaft, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="2" Grid.Column="1" Margin="0" Content="{markup:Translate BesonderheitVermittlungAusHaft}" />
|
||||
<CheckBox Grid.Row="3" Grid.Column="0" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" IsChecked="{Binding Path=BesonderheitDurchBGBWAufgesucht, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="3" Grid.Column="1" Margin="0" Content="{markup:Translate BesonderheitDurchBGBWAufgesucht}" />
|
||||
<CheckBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=BesonderheitMehrfacheBeauftragung, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate BesonderheitMehrfacheBeauftragung}" />
|
||||
<CheckBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=BesonderheitMehrfacheVermittlung, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate BesonderheitMehrfacheVermittlung}" />
|
||||
<CheckBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=BesonderheitVermittlungAusHaft, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate BesonderheitVermittlungAusHaft}" />
|
||||
<CheckBox
|
||||
Grid.Row="3"
|
||||
Grid.Column="0"
|
||||
IsChecked="{Binding Path=BesonderheitDurchBGBWAufgesucht, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Content="{markup:Translate BesonderheitDurchBGBWAufgesucht}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
|
||||
@@ -1,35 +1,58 @@
|
||||
<UserControl x:Class="BeWo.View.Controls.MerkzeichenSelectionControl"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="230" d:DesignWidth="300">
|
||||
<UserControl
|
||||
x:Class="BeWo.View.Controls.MerkzeichenSelectionControl"
|
||||
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"
|
||||
d:DesignHeight="230"
|
||||
d:DesignWidth="300"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ListBox Grid.Row="0" x:Name="listbox_result" ItemsSource="{Binding Path=PossibleMerkzeichen}" Background="{DynamicResource ObjectEditBackgroundBrush}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Border BorderBrush="{x:Null}" Height="23" CornerRadius="5">
|
||||
<CheckBox Margin="6,0,0,0" VerticalAlignment="Center" FontFamily="Microsoft Sans Serif" Tag="{Binding}" IsChecked="{Binding Path=IsChecked}"
|
||||
Content="{Binding Path=Name}" Checked="MerkzeichenCB_OnChecked" Unchecked="MerkzeichenCB_OnChecked"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
<ListBox
|
||||
x:Name="listbox_result"
|
||||
Grid.Row="0"
|
||||
Background="{DynamicResource ObjectEditBackgroundBrush}"
|
||||
ItemsSource="{Binding Path=PossibleMerkzeichen}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Border
|
||||
Height="23"
|
||||
BorderBrush="{x:Null}"
|
||||
CornerRadius="5">
|
||||
<CheckBox
|
||||
Margin="6,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
Checked="MerkzeichenCB_OnChecked"
|
||||
Content="{Binding Path=Name}"
|
||||
FontFamily="Microsoft Sans Serif"
|
||||
IsChecked="{Binding Path=IsChecked}"
|
||||
Tag="{Binding}"
|
||||
Unchecked="MerkzeichenCB_OnChecked" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button HorizontalAlignment="Right" Grid.Column="1" Margin="3" Content="Schließen" Width="70" Height="25" Command="ApplicationCommands.Close" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button
|
||||
Grid.Column="1"
|
||||
Width="70"
|
||||
Height="25"
|
||||
Margin="3"
|
||||
HorizontalAlignment="Right"
|
||||
Command="ApplicationCommands.Close"
|
||||
Content="Schließen" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
<UserControl x:Class="BeWo.View.Controls.MonthPicker"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<UserControl
|
||||
x:Class="BeWo.View.Controls.MonthPicker"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<dxe:ComboBoxEdit x:Name="_MonthPicker" IsManipulationEnabled="False" IsTextEditable="False" HorizontalAlignment="Stretch"/>
|
||||
<dxe:ComboBoxEdit
|
||||
x:Name="_MonthPicker"
|
||||
HorizontalAlignment="Stretch"
|
||||
IsManipulationEnabled="False"
|
||||
IsTextEditable="False" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -1,53 +1,46 @@
|
||||
<UserControl x:Name="root_usercontrol"
|
||||
<UserControl
|
||||
x:Class="BeWo.View.Controls.Wohnhilfe.CustomerWohnhilfeControl"
|
||||
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:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
||||
xmlns:dxepc="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:BeWo.View.Controls.Wohnhilfe"
|
||||
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
xmlns:viewmodel="clr-namespace:BeWo.ViewModel"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxei="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
||||
xmlns:wohnhilfe="clr-namespace:BeWo.View.Controls.Wohnhilfe"
|
||||
xmlns:cs="ignorablePrefix"
|
||||
mc:Ignorable="d cs"
|
||||
d:DataContext="{d:DesignInstance d:Type=viewmodel:CustomerWohnhilfeVM, IsDesignTimeCreatable=True}"
|
||||
d:DesignHeight="1450" d:DesignWidth="1800" SizeChanged="UserControl_SizeChanged">
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:cs="ignorablePrefix"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxei="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
||||
xmlns:dxepc="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
||||
xmlns:local="clr-namespace:BeWo.View.Controls.Wohnhilfe"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
xmlns:viewmodel="clr-namespace:BeWo.ViewModel"
|
||||
xmlns:wohnhilfe="clr-namespace:BeWo.View.Controls.Wohnhilfe"
|
||||
x:Name="root_usercontrol"
|
||||
d:DataContext="{d:DesignInstance d:Type=viewmodel:CustomerWohnhilfeVM,
|
||||
IsDesignTimeCreatable=True}"
|
||||
d:DesignHeight="1450"
|
||||
d:DesignWidth="1800"
|
||||
SizeChanged="UserControl_SizeChanged"
|
||||
mc:Ignorable="d cs">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource ObjectEditGroupBox}">
|
||||
<Setter Property="Margin" Value="15"/>
|
||||
<Setter Property="Padding" Value="10, 7, 7, 5"/>
|
||||
</Style>
|
||||
<DataTemplate x:Key="ListItemView">
|
||||
<TextBlock Text="{Binding Path=., Converter={StaticResource EnumTranslationConverter}}"
|
||||
ToolTip="{Binding Path=Text, RelativeSource={RelativeSource Self}}"
|
||||
TextWrapping="Wrap"
|
||||
/>
|
||||
</DataTemplate>
|
||||
<Style TargetType="{x:Type uc:NullItemComboBox}" BasedOn="{StaticResource {x:Type uc:NullItemComboBox}}">
|
||||
<Setter Property="ItemTemplate" Value="{StaticResource ListItemView}"/>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
||||
<Setter Property="ItemTemplate" Value="{StaticResource ListItemView}"/>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type Label}" BasedOn="{StaticResource {x:Type Label}}">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Setter Property="Padding" Value="3"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
<Style x:Key="StackpanelDetailsStyle" TargetType="{x:Type StackPanel}" BasedOn="{StaticResource {x:Type StackPanel}}">
|
||||
<Setter Property="Margin" Value="40, -1, 0, 3"/>
|
||||
</Style>
|
||||
<Style TargetType="RadioButton">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="..\..\..\Styles\PrototypeStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style BasedOn="{StaticResource ObjectEditGroupBox}" TargetType="{x:Type GroupBox}">
|
||||
<Setter Property="Margin" Value="15" />
|
||||
<Setter Property="Padding" Value="10,7,7,5" />
|
||||
</Style>
|
||||
<Style x:Key="StackpanelDetailsStyle" TargetType="{x:Type StackPanel}">
|
||||
<Setter Property="Margin" Value="40,-1,0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource EnumTranslationNullItemComboBox}" TargetType="{x:Type uc:NullItemComboBox}" />
|
||||
<Style BasedOn="{StaticResource EnumTranslationComboBox}" TargetType="{x:Type ComboBox}" />
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<ScrollViewer x:Name="scrollviewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
|
||||
<ScrollViewer
|
||||
x:Name="scrollviewer"
|
||||
HorizontalScrollBarVisibility="Auto"
|
||||
VerticalScrollBarVisibility="Auto">
|
||||
<Grid x:Name="grid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
@@ -61,262 +54,520 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!--<GroupBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="4" x:Name="EintraegeGrid" Style="{StaticResource ObjectEditGroupBox}" Header="Notizen">
|
||||
|
||||
|
||||
</GroupBox>-->
|
||||
|
||||
<GroupBox x:Name="groupbox_1" Grid.Row="0" Grid.Column="0" DataContext="{Binding BereichBundVM}" Header="Bereich Bund" >
|
||||
<GroupBox
|
||||
x:Name="groupbox_1"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
DataContext="{Binding BereichBundVM}"
|
||||
Header="Bereich Bund">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*" />
|
||||
</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 Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0">B1010 Verbandszugehörigkeit der Eintrichtung</Label>
|
||||
<uc:NullItemComboBox Grid.Row="0" Grid.Column="1" SelectedValue="{Binding Verbandszugehorigkeit}" ItemsSource="{Binding VerbandszugehorigkeitTypes}"/>
|
||||
<Label Grid.Row="0" Grid.Column="0">B1010 Verbandszugehörigkeit der Eintrichtung</Label>
|
||||
<uc:NullItemComboBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding VerbandszugehorigkeitTypes}"
|
||||
SelectedValue="{Binding Verbandszugehorigkeit}" />
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0">B1020 Geschlecht nach Personenstandsurkunde</Label>
|
||||
<uc:NullItemComboBox Grid.Row="1" Grid.Column="1" SelectedValue="{Binding Geschlecht}" ItemsSource="{Binding GeschlechtTypes}"/>
|
||||
<Label Grid.Row="1" Grid.Column="0">B1020 Geschlecht nach Personenstandsurkunde</Label>
|
||||
<uc:NullItemComboBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding GeschlechtTypes}"
|
||||
SelectedValue="{Binding Geschlecht}" />
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0">B1030 Alter am Stichtag</Label>
|
||||
<dxe:TextEdit Grid.Row="2" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=AlterAmStichtag, UpdateSourceTrigger=PropertyChanged}" Mask="#########"/>
|
||||
<Label Grid.Row="2" Grid.Column="0">B1030 Alter am Stichtag</Label>
|
||||
<dxe:TextEdit
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=AlterAmStichtag, UpdateSourceTrigger=PropertyChanged}"
|
||||
Mask="#########"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0">B1040 Haushaltsgröße</Label>
|
||||
<dxe:TextEdit Grid.Row="3" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True" Mask="N0"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=Haushaltsgrosse, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label Grid.Row="3" Grid.Column="0">B1040 Haushaltsgröße</Label>
|
||||
<dxe:TextEdit
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=Haushaltsgrosse, UpdateSourceTrigger=PropertyChanged}"
|
||||
Mask="N0"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0">B1050 BerichtseinheitID</Label>
|
||||
<dxe:TextEdit Grid.Row="4" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True" Mask="00000000000"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=BerichtseinheitID, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="4" Grid.Column="0">B1050 BerichtseinheitID</Label>
|
||||
<dxe:TextEdit
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=BerichtseinheitID, UpdateSourceTrigger=PropertyChanged}"
|
||||
Mask="00000000000"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
|
||||
<Label Grid.Row="5" Grid.Column="0">B1060 Unterbringungsort</Label>
|
||||
<uc:NullItemComboBox Grid.Row="5" Grid.Column="1" SelectedValue="{Binding Unterbringungsart}" ItemsSource="{Binding UnterbringungsartTypes}"/>
|
||||
<Label Grid.Row="5" Grid.Column="0">B1060 Unterbringungsort</Label>
|
||||
<uc:NullItemComboBox
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding UnterbringungsartTypes}"
|
||||
SelectedValue="{Binding Unterbringungsart}" />
|
||||
|
||||
<Label Grid.Row="6" Grid.Column="0">B1070 Ort der Unterbringung</Label>
|
||||
<dxe:TextEdit Grid.Row="6" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True" Mask="00000000"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=OrtDerEinrichtung, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="6" Grid.Column="0">B1070 Ort der Unterbringung</Label>
|
||||
<dxe:TextEdit
|
||||
Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=OrtDerEinrichtung, UpdateSourceTrigger=PropertyChanged}"
|
||||
Mask="00000000"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
|
||||
<Label Grid.Row="7" Grid.Column="0">B1080 Angebot</Label>
|
||||
<uc:NullItemComboBox Grid.Row="7" Grid.Column="1" SelectedValue="{Binding Angebot}" ItemsSource="{Binding AngebotTypes}"/>
|
||||
<Label Grid.Row="7" Grid.Column="0">B1080 Angebot</Label>
|
||||
<uc:NullItemComboBox
|
||||
Grid.Row="7"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding AngebotTypes}"
|
||||
SelectedValue="{Binding Angebot}" />
|
||||
</Grid>
|
||||
|
||||
<!--<Label Grid.Row="0" Grid.Column="0" Content="Eigenes Aktenzeichen" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Margin="3" Height="23" Text="{Binding Path=EigenesAktenzeichen, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding Path=PermissionFalldatenEdit, Mode=OneTime, Converter={StaticResource BoolReverseConverter}}"/>
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="Auftragseingang" IsEnabled="True" />
|
||||
<dxe:DateEdit Grid.Row="1" Grid.Column="1" Margin="3" Height="23" ShowClearButton="False" EditValue="{Binding Path=Auftragseingang, UpdateSourceTrigger=PropertyChanged}"
|
||||
<dxe:DateEdit Grid.Row="1" Grid.Column="1" Margin="3" Height="23" ShowClearButton="False" EditValue="{Binding Path=Auftragseingang, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"/>
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="Auftragsherkunft" />
|
||||
<uc:NullItemComboBox x:Name="comboBox_Auftragsherkunft" Grid.Row="2" Grid.Column="1" Margin="3" Height="23" SelectedValue="{Binding Path=Auftragsherkunft, Mode=TwoWay}"
|
||||
ItemsSource="{Binding Path=Auftragsherkunfte}" MinWidth="30" HorizontalAlignment="Stretch"
|
||||
<uc:NullItemComboBox x:Name="comboBox_Auftragsherkunft" Grid.Row="2" Grid.Column="1" Margin="3" Height="23" SelectedValue="{Binding Path=Auftragsherkunft, Mode=TwoWay}"
|
||||
ItemsSource="{Binding Path=Auftragsherkunfte}" MinWidth="30" HorizontalAlignment="Stretch"
|
||||
IsEnabled="{Binding Path=PermissionFalldatenEdit, Mode=OneTime}"/>-->
|
||||
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox x:Name="groupbox_2" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="1" DataContext="{Binding BereichEinkommenUndArbeitVM}" Header="Bereich Einkommen und Arbeit">
|
||||
<GroupBox
|
||||
x:Name="groupbox_2"
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="1"
|
||||
DataContext="{Binding BereichEinkommenUndArbeitVM}"
|
||||
Header="Bereich Einkommen und Arbeit">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</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 Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Style="{StaticResource TitleLabel}">zu Beginn</Label>
|
||||
<Rectangle Grid.Row="0" Grid.Column="2" Grid.RowSpan="20" VerticalAlignment="Stretch" Fill="Black" Width="1" Margin="10,0,10,0"/>
|
||||
<Label Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2" Style="{StaticResource TitleLabel}">am Ende</Label>
|
||||
<Label
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource TitleLabel}">
|
||||
zu Beginn
|
||||
</Label>
|
||||
<Rectangle
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="20"
|
||||
Grid.Column="2"
|
||||
Width="1"
|
||||
Margin="10,0,10,0"
|
||||
VerticalAlignment="Stretch"
|
||||
Fill="Black" />
|
||||
<Label
|
||||
Grid.Row="0"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource TitleLabel}">
|
||||
am Ende
|
||||
</Label>
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0">W2010 Einkommenssituation</Label>
|
||||
<ComboBox Grid.Row="1" Grid.Column="1" SelectedValue="{Binding BeginnEinkommenssituation}" ItemsSource="{Binding EinkommenssituationTypes}"/>
|
||||
<Label Grid.Row="1" Grid.Column="3">W2030 Einkommenssituation</Label>
|
||||
<ComboBox Grid.Row="1" Grid.Column="4" SelectedValue="{Binding EndeEinkommenssituation}" ItemsSource="{Binding EinkommenssituationTypes}"/>
|
||||
<Label Grid.Row="1" Grid.Column="0">W2010 Einkommenssituation</Label>
|
||||
<ComboBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding EinkommenssituationTypes}"
|
||||
SelectedValue="{Binding BeginnEinkommenssituation}" />
|
||||
<Label Grid.Row="1" Grid.Column="3">W2030 Einkommenssituation</Label>
|
||||
<ComboBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="4"
|
||||
ItemsSource="{Binding EinkommenssituationTypes}"
|
||||
SelectedValue="{Binding EndeEinkommenssituation}" />
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0">W2020 Aufstockung des Einkommens</Label>
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" SelectedValue="{Binding BeginnAufstockungEinkommen}" ItemsSource="{Binding AufstockungEinkommenTypes}"/>
|
||||
<Label Grid.Row="2" Grid.Column="3">W2040 Aufstockung des Einkommens</Label>
|
||||
<ComboBox Grid.Row="2" Grid.Column="4" SelectedValue="{Binding EndeAufstockungEinkommen}" ItemsSource="{Binding AufstockungEinkommenTypes}"/>
|
||||
<Label Grid.Row="2" Grid.Column="0">W2020 Aufstockung des Einkommens</Label>
|
||||
<ComboBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding AufstockungEinkommenTypes}"
|
||||
SelectedValue="{Binding BeginnAufstockungEinkommen}" />
|
||||
<Label Grid.Row="2" Grid.Column="3">W2040 Aufstockung des Einkommens</Label>
|
||||
<ComboBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="4"
|
||||
ItemsSource="{Binding AufstockungEinkommenTypes}"
|
||||
SelectedValue="{Binding EndeAufstockungEinkommen}" />
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0">W2050 Eigenes Bankkonto</Label>
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" SelectedValue="{Binding BeginnEigenesBankkonto}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label Grid.Row="3" Grid.Column="3">W2060 Eigenes Bankkonto</Label>
|
||||
<ComboBox x:Name="Combobox" Grid.Row="3" Grid.Column="4" SelectedValue="{Binding EndeEigenesBankkonto}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label Grid.Row="3" Grid.Column="0">W2050 Eigenes Bankkonto</Label>
|
||||
<ComboBox
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding BeginnEigenesBankkonto}" />
|
||||
<Label Grid.Row="3" Grid.Column="3">W2060 Eigenes Bankkonto</Label>
|
||||
<ComboBox
|
||||
x:Name="Combobox"
|
||||
Grid.Row="3"
|
||||
Grid.Column="4"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding EndeEigenesBankkonto}" />
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0">W2070 Überschuldung</Label>
|
||||
<ComboBox Grid.Row="4" Grid.Column="1" SelectedValue="{Binding Uberschuldung}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label Grid.Row="4" Grid.Column="0">W2070 Überschuldung</Label>
|
||||
<ComboBox
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding Uberschuldung}" />
|
||||
|
||||
<Label Grid.Row="5" Grid.Column="0">G2080 Höchster erreichter Berufsabschluss</Label>
|
||||
<ComboBox Grid.Row="5" Grid.Column="1" SelectedValue="{Binding Berufsabschluss}" ItemsSource="{Binding BerufsschulabschlussTypes}"/>
|
||||
<Label Grid.Row="5" Grid.Column="0">G2080 Höchster erreichter Berufsabschluss</Label>
|
||||
<ComboBox
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding BerufsschulabschlussTypes}"
|
||||
SelectedValue="{Binding Berufsabschluss}" />
|
||||
|
||||
<Label Grid.Row="6" Grid.Column="0">W2090 Erwerbsfähigkeit im Sinne des SGB:</Label>
|
||||
<ComboBox Grid.Row="6" Grid.Column="1" SelectedValue="{Binding ErwerbsfahigkeitSinnSGB}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label Grid.Row="6" Grid.Column="0">W2090 Erwerbsfähigkeit im Sinne des SGB:</Label>
|
||||
<ComboBox
|
||||
Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding ErwerbsfahigkeitSinnSGB}" />
|
||||
|
||||
<Label Grid.Row="7" Grid.Column="0">W2100 Arbeits- und Beschäftigungssituation</Label>
|
||||
<ComboBox Grid.Row="7" Grid.Column="1" SelectedValue="{Binding BeginnBeschaftigungsstatus}" ItemsSource="{Binding BeschaftigungsstatusTypes}"/>
|
||||
<Label Grid.Row="7" Grid.Column="3">W2110 Arbeits- und Beschäftigungssituation</Label>
|
||||
<ComboBox Grid.Row="7" Grid.Column="4" SelectedValue="{Binding EndeBeschaftigungsstatus}" ItemsSource="{Binding BeschaftigungsstatusTypes}"/>
|
||||
<Label Grid.Row="7" Grid.Column="0">W2100 Arbeits- und Beschäftigungssituation</Label>
|
||||
<ComboBox
|
||||
Grid.Row="7"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding BeschaftigungsstatusTypes}"
|
||||
SelectedValue="{Binding BeginnBeschaftigungsstatus}" />
|
||||
<Label Grid.Row="7" Grid.Column="3">W2110 Arbeits- und Beschäftigungssituation</Label>
|
||||
<ComboBox
|
||||
Grid.Row="7"
|
||||
Grid.Column="4"
|
||||
ItemsSource="{Binding BeschaftigungsstatusTypes}"
|
||||
SelectedValue="{Binding EndeBeschaftigungsstatus}" />
|
||||
|
||||
<Label Grid.Row="8" Grid.Column="0">W2120 Dauer der Arbeitslosigkeit</Label>
|
||||
<ComboBox Grid.Row="8" Grid.Column="1" SelectedValue="{Binding DauerArbeitslosigkeit}" ItemsSource="{Binding DauerArbeitslosigkeitTypes}"/>
|
||||
<Label Grid.Row="8" Grid.Column="0">W2120 Dauer der Arbeitslosigkeit</Label>
|
||||
<ComboBox
|
||||
Grid.Row="8"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding DauerArbeitslosigkeitTypes}"
|
||||
SelectedValue="{Binding DauerArbeitslosigkeit}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox x:Name="groupbox_3" Grid.Row="1" Grid.Column="0" DataContext="{Binding BereichSozialstrukturVM}" Header="Bereich Sozialstruktur" >
|
||||
<GroupBox
|
||||
x:Name="groupbox_3"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
DataContext="{Binding BereichSozialstrukturVM}"
|
||||
Header="Bereich Sozialstruktur">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</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 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 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" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0">K0110 Bundesland</Label>
|
||||
<ComboBox Grid.Row="0" Grid.Column="1" SelectedValue="{Binding Bundesland}" ItemsSource="{Binding BundeslandTypes}"/>
|
||||
<Label Grid.Row="0" Grid.Column="0">K0110 Bundesland</Label>
|
||||
<ComboBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding BundeslandTypes}"
|
||||
SelectedValue="{Binding Bundesland}" />
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0">K0120 Art des Hilfefelds</Label>
|
||||
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
|
||||
<Label Grid.Row="1" Grid.Column="0">K0120 Art des Hilfefelds</Label>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Orientation="Horizontal">
|
||||
<RadioButton GroupName="Art" IsChecked="{Binding IsWohnungslosenhilfeSafe}">Wohnungslosenhilfe</RadioButton>
|
||||
<RadioButton GroupName="Art" IsChecked="{Binding IsStraffaligenhilfeSafe}">Straffälligenhilfe</RadioButton>
|
||||
</StackPanel>
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0">K0130 Art des Hilfeangebots</Label>
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" SelectedValue="{Binding ArtDesHilfeangebots}" ItemsSource="{Binding ArtDesHilfeangebotsTypes}"/>
|
||||
<Label Grid.Row="2" Grid.Column="0">K0130 Art des Hilfeangebots</Label>
|
||||
<ComboBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding ArtDesHilfeangebotsTypes}"
|
||||
SelectedValue="{Binding ArtDesHilfeangebots}" />
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0">K0140 Betreuungsbeginn</Label>
|
||||
<dxe:DateEdit Grid.Row="3" Grid.Column="1" EditValue="{Binding Path=Betreuungsbeginn, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="3" Grid.Column="0">K0140 Betreuungsbeginn</Label>
|
||||
<dxe:DateEdit
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
EditValue="{Binding Path=Betreuungsbeginn, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0">K0150 Betreuungsende</Label>
|
||||
<dxe:DateEdit Grid.Row="4" Grid.Column="1" ShowClearButton="True" EditValue="{Binding Path=Betreuungsende, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="4" Grid.Column="0">K0150 Betreuungsende</Label>
|
||||
<dxe:DateEdit
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
EditValue="{Binding Path=Betreuungsende, UpdateSourceTrigger=PropertyChanged}"
|
||||
ShowClearButton="True" />
|
||||
|
||||
<Label Grid.Row="5" Grid.Column="0">K0160 Betreuungsdauer in Tagen</Label>
|
||||
<dxe:TextEdit Grid.Row="5" Grid.Column="1" Margin="3" Height="23" MaskType="Numeric" MaskUseAsDisplayFormat="True" Mask="#######"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=BetreuungsdauerInTagen, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="5" Grid.Column="0">K0160 Betreuungsdauer in Tagen</Label>
|
||||
<dxe:TextEdit
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False"
|
||||
EditValue="{Binding Path=BetreuungsdauerInTagen, UpdateSourceTrigger=PropertyChanged}"
|
||||
Mask="#######"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
|
||||
<Label Grid.Row="6" Grid.Column="0">G7010 Art der Beendigung</Label>
|
||||
<ComboBox Grid.Row="6" Grid.Column="1" SelectedValue="{Binding ArtDerBeendigung}" ItemsSource="{Binding ArtDerBeendigungTypes}"/>
|
||||
<Label Grid.Row="6" Grid.Column="0">G7010 Art der Beendigung</Label>
|
||||
<ComboBox
|
||||
Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding ArtDerBeendigungTypes}"
|
||||
SelectedValue="{Binding ArtDerBeendigung}" />
|
||||
|
||||
<Label Grid.Row="7" Grid.Column="0">G1010 Geburtsdatum</Label>
|
||||
<dxe:DateEdit x:Name="Dateedit" Grid.Row="7" Grid.Column="1" EditValue="{Binding Path=Geburtsdatum, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Label Grid.Row="7" Grid.Column="0">G1010 Geburtsdatum</Label>
|
||||
<dxe:DateEdit
|
||||
x:Name="Dateedit"
|
||||
Grid.Row="7"
|
||||
Grid.Column="1"
|
||||
EditValue="{Binding Path=Geburtsdatum, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<Label Grid.Row="8" Grid.Column="0">G1020 Geschlechtsidentität</Label>
|
||||
<ComboBox Grid.Row="8" Grid.Column="1" SelectedValue="{Binding Geschlechtidentitat}" ItemsSource="{Binding GeschlechtidentitatTypes}"/>
|
||||
<Label Grid.Row="8" Grid.Column="0">G1020 Geschlechtsidentität</Label>
|
||||
<ComboBox
|
||||
Grid.Row="8"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding GeschlechtidentitatTypes}"
|
||||
SelectedValue="{Binding Geschlechtidentitat}" />
|
||||
|
||||
<Label Grid.Row="9" Grid.Column="0">G1030 Staatsangehörigkeit</Label>
|
||||
<ComboBox Grid.Row="9" Grid.Column="1" SelectedValue="{Binding Staatsangehorigkeit}" ItemsSource="{Binding StaatsangehorigkeitTypes}"/>
|
||||
<Label Grid.Row="9" Grid.Column="0">G1030 Staatsangehörigkeit</Label>
|
||||
<ComboBox
|
||||
Grid.Row="9"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding StaatsangehorigkeitTypes}"
|
||||
SelectedValue="{Binding Staatsangehorigkeit}" />
|
||||
|
||||
<Label Grid.Row="10" Grid.Column="0">G1040 Aufenthaltsstatus</Label>
|
||||
<ComboBox Grid.Row="10" Grid.Column="1" SelectedValue="{Binding Aufenthaltsstatus}" ItemsSource="{Binding AufenthaltsstatusTypes}"/>
|
||||
<Label Grid.Row="10" Grid.Column="0">G1040 Aufenthaltsstatus</Label>
|
||||
<ComboBox
|
||||
Grid.Row="10"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding AufenthaltsstatusTypes}"
|
||||
SelectedValue="{Binding Aufenthaltsstatus}" />
|
||||
|
||||
<Label Grid.Row="11" Grid.Column="0">W1060 Höchster erreichter Schulabschluss</Label>
|
||||
<ComboBox Grid.Row="11" Grid.Column="1" SelectedValue="{Binding HochsterSchulabschluss}" ItemsSource="{Binding HochsterSchulabschlussTypes}"/>
|
||||
<Label Grid.Row="11" Grid.Column="0">W1060 Höchster erreichter Schulabschluss</Label>
|
||||
<ComboBox
|
||||
Grid.Row="11"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding HochsterSchulabschlussTypes}"
|
||||
SelectedValue="{Binding HochsterSchulabschluss}" />
|
||||
|
||||
<Label Grid.Row="12" Grid.Column="0">G1070 Familienstand</Label>
|
||||
<ComboBox Grid.Row="12" Grid.Column="1" SelectedValue="{Binding Familienstand}" ItemsSource="{Binding FamilienstandTypes}"/>
|
||||
<Label Grid.Row="12" Grid.Column="0">G1070 Familienstand</Label>
|
||||
<ComboBox
|
||||
Grid.Row="12"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding FamilienstandTypes}"
|
||||
SelectedValue="{Binding Familienstand}" />
|
||||
|
||||
<Label Grid.Row="13" Grid.Column="0">G1080 Haushaltsstruktur</Label>
|
||||
<ComboBox Grid.Row="13" Grid.Column="1" SelectedValue="{Binding Haushaltsstruktur}" ItemsSource="{Binding HaushaltsstrukturTypes}"/>
|
||||
<Label Grid.Row="13" Grid.Column="0">G1080 Haushaltsstruktur</Label>
|
||||
<ComboBox
|
||||
Grid.Row="13"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding HaushaltsstrukturTypes}"
|
||||
SelectedValue="{Binding Haushaltsstruktur}" />
|
||||
|
||||
<Label Grid.Row="14" Grid.Column="0" Grid.ColumnSpan="2">G1090 Eigene minderjährige Kinder außerhalb der Haushaltsstruktur</Label>
|
||||
<ComboBox Grid.Row="15" Grid.Column="1" Margin="3, -2, 3, 3" SelectedValue="{Binding EigeneMindKinderAuserhalbHaushaltsstruktur}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label
|
||||
Grid.Row="14"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2">
|
||||
G1090 Eigene minderjährige Kinder außerhalb der Haushaltsstruktur
|
||||
</Label>
|
||||
<ComboBox
|
||||
Grid.Row="15"
|
||||
Grid.Column="1"
|
||||
Margin="3,-2,3,3"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding EigeneMindKinderAuserhalbHaushaltsstruktur}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox x:Name="groupbox_4" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="1" DataContext="{Binding BereichSozialeKontakteVM}" Header="Bereich Soziale Kontakte" >
|
||||
|
||||
<GroupBox
|
||||
x:Name="groupbox_4"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="1"
|
||||
DataContext="{Binding BereichSozialeKontakteVM}"
|
||||
Header="Bereich Soziale Kontakte">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</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 Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Style="{StaticResource TitleLabel}">zu Beginn</Label>
|
||||
<Rectangle Grid.Row="0" Grid.Column="2" Grid.RowSpan="20" VerticalAlignment="Stretch" Fill="Black" Width="1" Margin="5,0,5,0"/>
|
||||
<Label Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2" Style="{StaticResource TitleLabel}">am Ende</Label>
|
||||
<Label
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource TitleLabel}">
|
||||
zu Beginn
|
||||
</Label>
|
||||
<Rectangle
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="20"
|
||||
Grid.Column="2"
|
||||
Width="1"
|
||||
Margin="5,0,5,0"
|
||||
VerticalAlignment="Stretch"
|
||||
Fill="Black" />
|
||||
<Label
|
||||
Grid.Row="0"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource TitleLabel}">
|
||||
am Ende
|
||||
</Label>
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0">W4010 Soziale Kontakte</Label>
|
||||
<ComboBox Grid.Row="1" Grid.Column="1" SelectedValue="{Binding BeginnSozialeKontakte}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label Grid.Row="1" Grid.Column="3">W4020 Soziale Kontakte</Label>
|
||||
<ComboBox Grid.Row="1" Grid.Column="4" SelectedValue="{Binding EndeSozialeKontakte}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label Grid.Row="1" Grid.Column="0">W4010 Soziale Kontakte</Label>
|
||||
<ComboBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding BeginnSozialeKontakte}" />
|
||||
<Label Grid.Row="1" Grid.Column="3">W4020 Soziale Kontakte</Label>
|
||||
<ComboBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="4"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding EndeSozialeKontakte}" />
|
||||
|
||||
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Style="{StaticResource StackpanelDetailsStyle}" IsEnabled="{Binding CanEditBeginnKontakt}">
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktPartner}">zu Partner/Partnerin</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktMindKinder}">zu eigenen minderjährigen Kindern</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktVolljahrKinderElternVerwandten}">zu volljährigen Kindern, Eltern, Verwandten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktFreundenBekannten}">zu Freunden/Freundinnen, Bekannten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktSelbsthilfe}">zu Selbsthilfeorganisationen, Nachbarn, Vereinen, Kirchengemeinden u. ä.</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktSonstige}">sonstige</CheckBox>
|
||||
<StackPanel
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
IsEnabled="{Binding CanEditBeginnKontakt}"
|
||||
Style="{StaticResource StackpanelDetailsStyle}">
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktPartner}">zu Partner/Partnerin</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktMindKinder}">zu eigenen minderjährigen Kindern</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktVolljahrKinderElternVerwandten}">zu volljährigen Kindern, Eltern, Verwandten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktFreundenBekannten}">zu Freunden/Freundinnen, Bekannten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktSelbsthilfe}">zu Selbsthilfeorganisationen, Nachbarn, Vereinen, Kirchengemeinden u. ä.</CheckBox>
|
||||
<CheckBox IsChecked="{Binding BeginnKontaktSonstige}">sonstige</CheckBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="2" Style="{StaticResource StackpanelDetailsStyle}" IsEnabled="{Binding CanEditEndeKontakt}">
|
||||
<CheckBox IsChecked="{Binding EndeKontaktPartner}">zu Partner/Partnerin</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktMindKinder}">zu eigenen minderjährigen Kindern</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktVolljahrKinderElternVerwandten}">zu volljährigen Kindern, Eltern, Verwandten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktFreundenBekannten}">zu Freunden/Freundinnen, Bekannten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktSelbsthilfe}">zu Selbsthilfeorganisationen, Nachbarn, Vereinen, Kirchengemeinden u. ä.</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktSonstige}">sonstige</CheckBox>
|
||||
<StackPanel
|
||||
Grid.Row="2"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="2"
|
||||
IsEnabled="{Binding CanEditEndeKontakt}"
|
||||
Style="{StaticResource StackpanelDetailsStyle}">
|
||||
<CheckBox IsChecked="{Binding EndeKontaktPartner}">zu Partner/Partnerin</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktMindKinder}">zu eigenen minderjährigen Kindern</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktVolljahrKinderElternVerwandten}">zu volljährigen Kindern, Eltern, Verwandten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktFreundenBekannten}">zu Freunden/Freundinnen, Bekannten</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktSelbsthilfe}">zu Selbsthilfeorganisationen, Nachbarn, Vereinen, Kirchengemeinden u. ä.</CheckBox>
|
||||
<CheckBox IsChecked="{Binding EndeKontaktSonstige}">sonstige</CheckBox>
|
||||
</StackPanel>
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0">W4030 Krankenversicherung</Label>
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" SelectedValue="{Binding BeginnKrankenversicherung}" ItemsSource="{Binding KrankenversicherungTypes}"/>
|
||||
<Label Grid.Row="3" Grid.Column="3">W4040 Krankenversicherung</Label>
|
||||
<ComboBox Grid.Row="3" Grid.Column="4" SelectedValue="{Binding EndeKrankenversicherung}" ItemsSource="{Binding KrankenversicherungTypes}"/>
|
||||
<Label Grid.Row="3" Grid.Column="0">W4030 Krankenversicherung</Label>
|
||||
<ComboBox
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding KrankenversicherungTypes}"
|
||||
SelectedValue="{Binding BeginnKrankenversicherung}" />
|
||||
<Label Grid.Row="3" Grid.Column="3">W4040 Krankenversicherung</Label>
|
||||
<ComboBox
|
||||
Grid.Row="3"
|
||||
Grid.Column="4"
|
||||
ItemsSource="{Binding KrankenversicherungTypes}"
|
||||
SelectedValue="{Binding EndeKrankenversicherung}" />
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0">W4050 Kontakt zu e. Arzt innerhalb der letzten 6 Monate</Label>
|
||||
<ComboBox Grid.Row="4" Grid.Column="1" SelectedValue="{Binding BeginnKontaktArzt}" ItemsSource="{Binding KontaktArztTypes}"/>
|
||||
<Label Grid.Row="4" Grid.Column="3">W4060 Kontakt zu e. Arzt innerhalb der letzten 6 Monate</Label>
|
||||
<ComboBox Grid.Row="4" Grid.Column="4" SelectedValue="{Binding EndeKontaktArzt}" ItemsSource="{Binding KontaktArztTypes}"/>
|
||||
<Label Grid.Row="4" Grid.Column="0">W4050 Kontakt zu e. Arzt innerhalb der letzten 6 Monate</Label>
|
||||
<ComboBox
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding KontaktArztTypes}"
|
||||
SelectedValue="{Binding BeginnKontaktArzt}" />
|
||||
<Label Grid.Row="4" Grid.Column="3">W4060 Kontakt zu e. Arzt innerhalb der letzten 6 Monate</Label>
|
||||
<ComboBox
|
||||
Grid.Row="4"
|
||||
Grid.Column="4"
|
||||
ItemsSource="{Binding KontaktArztTypes}"
|
||||
SelectedValue="{Binding EndeKontaktArzt}" />
|
||||
|
||||
<Label Grid.Row="5" Grid.Column="0">W4070 Vorlage eines Schwerbegindertenausweises</Label>
|
||||
<ComboBox Grid.Row="5" Grid.Column="1" SelectedValue="{Binding VorlageSchwerbehindertenausweises}" ItemsSource="{Binding WohnhilfeBoolDataTypes}"/>
|
||||
<Label Grid.Row="5" Grid.Column="0">W4070 Vorlage eines Schwerbegindertenausweises</Label>
|
||||
<ComboBox
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding WohnhilfeBoolDataTypes}"
|
||||
SelectedValue="{Binding VorlageSchwerbehindertenausweises}" />
|
||||
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
<UserControl x:Class="BeWo.View.Detail.AbsenceTimesView"
|
||||
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:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:validation="clr-namespace:BeWo.Validation"
|
||||
xmlns:controls="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
mc:Ignorable="d"
|
||||
x:Name="AbsenceTimeViewUserControl"
|
||||
d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignData Type=AbsenceTimesView}">
|
||||
<UserControl.Resources>
|
||||
|
||||
</UserControl.Resources>
|
||||
<UserControl
|
||||
x:Class="BeWo.View.Detail.AbsenceTimesView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:validation="clr-namespace:BeWo.Validation"
|
||||
x:Name="AbsenceTimeViewUserControl"
|
||||
d:DataContext="{d:DesignData Type=AbsenceTimesView}"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources />
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
@@ -24,8 +25,14 @@
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<GroupBox Grid.Row="1" Grid.Column="0" x:Name="GroupBoxNewAbsenceTime" Grid.ColumnSpan="2" Header="Abwesenheit hinzufügen" Style="{StaticResource ObjectEditGroupBox}">
|
||||
|
||||
<GroupBox
|
||||
x:Name="GroupBoxNewAbsenceTime"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Header="Abwesenheit hinzufügen"
|
||||
Style="{StaticResource ObjectEditGroupBox}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@@ -45,26 +52,85 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Column="0" Grid.Row="0">Startdatum</Label>
|
||||
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="{Binding AbsenceTimes.NewVM.DateEditColumnSpan, UpdateSourceTrigger=PropertyChanged}" Height="23" Margin="3" EditValue="{Binding Path=AbsenceTimes.NewVM.Start, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" AllowNullInput="False" />
|
||||
<Label Grid.Row="0" Grid.Column="0">Startdatum</Label>
|
||||
<dxe:DateEdit
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="{Binding AbsenceTimes.NewVM.DateEditColumnSpan, UpdateSourceTrigger=PropertyChanged}"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
AllowNullInput="False"
|
||||
EditValue="{Binding Path=AbsenceTimes.NewVM.Start, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||||
MaskType="DateTimeAdvancingCaret" />
|
||||
|
||||
<dxe:TextEdit Grid.Column="2" Grid.Row="0" MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" ShowError="False" MaskShowPlaceHolders="True" x:Name="StartTimeTextEdit"
|
||||
MaskUseAsDisplayFormat="True" InvalidValueBehavior="AllowLeaveEditor"
|
||||
Height="23" Visibility="{Binding Path=AbsenceTimes.NewVM.IsAllDay, Converter={StaticResource BoolVisibilityHiddenConverter}, ConverterParameter=false, UpdateSourceTrigger=PropertyChanged}" ValidateOnEnterKeyPressed="True" ValidateOnTextInput="True"
|
||||
Margin="3" EditValue="{Binding Path=AbsenceTimes.NewVM.StartTime, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" ToolTipService.Placement="Mouse" />
|
||||
<dxe:TextEdit
|
||||
x:Name="StartTimeTextEdit"
|
||||
Grid.Row="0"
|
||||
Grid.Column="2"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
EditValue="{Binding Path=AbsenceTimes.NewVM.StartTime, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"
|
||||
InvalidValueBehavior="AllowLeaveEditor"
|
||||
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
||||
MaskShowPlaceHolders="True"
|
||||
MaskType="RegEx"
|
||||
MaskUseAsDisplayFormat="True"
|
||||
ShowError="False"
|
||||
ToolTipService.Placement="Mouse"
|
||||
ValidateOnEnterKeyPressed="True"
|
||||
ValidateOnTextInput="True"
|
||||
Visibility="{Binding Path=AbsenceTimes.NewVM.IsAllDay, Converter={StaticResource BoolVisibilityHiddenConverter}, ConverterParameter=false, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<Label Grid.Column="3" Grid.Row="0">Enddatum</Label>
|
||||
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="4" Grid.Row="0" Height="23" Margin="3" Grid.ColumnSpan="{Binding AbsenceTimes.NewVM.DateEditColumnSpan, UpdateSourceTrigger=PropertyChanged}" EditValue="{Binding Path=AbsenceTimes.NewVM.End, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" AllowNullInput="True" />
|
||||
<Label Grid.Row="0" Grid.Column="3">Enddatum</Label>
|
||||
<dxe:DateEdit
|
||||
Grid.Row="0"
|
||||
Grid.Column="4"
|
||||
Grid.ColumnSpan="{Binding AbsenceTimes.NewVM.DateEditColumnSpan, UpdateSourceTrigger=PropertyChanged}"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
AllowNullInput="True"
|
||||
EditValue="{Binding Path=AbsenceTimes.NewVM.End, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||||
MaskType="DateTimeAdvancingCaret" />
|
||||
|
||||
<dxe:TextEdit Grid.Column="5" Grid.Row="0" MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" ShowError="False" MaskShowPlaceHolders="True" x:Name="EndTimeTextEdit"
|
||||
MaskUseAsDisplayFormat="True" InvalidValueBehavior="AllowLeaveEditor"
|
||||
Height="23" Visibility="{Binding Path=AbsenceTimes.NewVM.IsAllDay, Converter={StaticResource BoolVisibilityHiddenConverter}, ConverterParameter=false, UpdateSourceTrigger=PropertyChanged}" ValidateOnEnterKeyPressed="True" ValidateOnTextInput="True"
|
||||
Margin="3" EditValue="{Binding Path=AbsenceTimes.NewVM.EndTime, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" ToolTipService.Placement="Mouse" />
|
||||
<dxe:TextEdit
|
||||
x:Name="EndTimeTextEdit"
|
||||
Grid.Row="0"
|
||||
Grid.Column="5"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
EditValue="{Binding Path=AbsenceTimes.NewVM.EndTime, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"
|
||||
InvalidValueBehavior="AllowLeaveEditor"
|
||||
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
||||
MaskShowPlaceHolders="True"
|
||||
MaskType="RegEx"
|
||||
MaskUseAsDisplayFormat="True"
|
||||
ShowError="False"
|
||||
ToolTipService.Placement="Mouse"
|
||||
ValidateOnEnterKeyPressed="True"
|
||||
ValidateOnTextInput="True"
|
||||
Visibility="{Binding Path=AbsenceTimes.NewVM.IsAllDay, Converter={StaticResource BoolVisibilityHiddenConverter}, ConverterParameter=false, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<CheckBox Grid.Row="0" Grid.Column="6" Margin="3" VerticalContentAlignment="Center" Foreground="Black" IsChecked="{Binding Path=AbsenceTimes.NewVM.IsAllDay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center">Ganztägig</CheckBox>
|
||||
<CheckBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="6"
|
||||
Margin="3"
|
||||
VerticalAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
Foreground="Black"
|
||||
IsChecked="{Binding Path=AbsenceTimes.NewVM.IsAllDay, UpdateSourceTrigger=PropertyChanged}">
|
||||
Ganztägig
|
||||
</CheckBox>
|
||||
|
||||
<Label Grid.Column="0" Grid.Row="1">Kategorie</Label>
|
||||
<controls:NullItemComboBox Name="ComboBoxReasons" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Height="23" Margin="3" ItemsSource="{Binding Path=AbsenceTimes.PossibleReasons}" SelectedItem="{validation:ValidationBinding Path=AbsenceTimes.NewVM.Reason}">
|
||||
<Label Grid.Row="1" Grid.Column="0">Kategorie</Label>
|
||||
<controls:NullItemComboBox
|
||||
Name="ComboBoxReasons"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
ItemsSource="{Binding Path=AbsenceTimes.PossibleReasons}"
|
||||
SelectedItem="{validation:ValidationBinding Path=AbsenceTimes.NewVM.Reason}">
|
||||
<ComboBox.ItemContainerStyle>
|
||||
<Style>
|
||||
<Setter Property="Control.HorizontalContentAlignment" Value="Stretch" />
|
||||
@@ -72,52 +138,126 @@
|
||||
</ComboBox.ItemContainerStyle>
|
||||
</controls:NullItemComboBox>
|
||||
|
||||
<Label Grid.Column="3" Grid.Row="1">Erläuterung</Label>
|
||||
<TextBox Grid.Column="4" Grid.ColumnSpan="3" Grid.Row="1" Height="23" Margin="3" Text="{Binding Path=AbsenceTimes.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Label Grid.Row="1" Grid.Column="3">Erläuterung</Label>
|
||||
<TextBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="4"
|
||||
Grid.ColumnSpan="3"
|
||||
Height="23"
|
||||
Margin="3"
|
||||
Text="{Binding Path=AbsenceTimes.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<Button Grid.Row="2" Grid.ColumnSpan="7" Grid.Column="0" Command="{Binding AddAbsenceTimesCommand}" HorizontalAlignment="Right" Margin="1,10,0,3" Style="{DynamicResource {x:Type Button}}" Content="Abwesenheit hinzufügen" />
|
||||
<Button
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="7"
|
||||
Margin="1,10,0,3"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding AddAbsenceTimesCommand}"
|
||||
Content="Abwesenheit hinzufügen"
|
||||
Style="{DynamicResource {x:Type Button}}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox x:Name="GroupBoxAbsenceTimes" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Header="Erfasste Abwesenheiten" Style="{StaticResource ObjectEditGroupBox}">
|
||||
<dxg:GridControl VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="1" ItemsSource="{Binding Path=AbsenceTimes.VMList}" HorizontalAlignment="Stretch" x:Name="DataGridAbsenceTimes">
|
||||
<GroupBox
|
||||
x:Name="GroupBoxAbsenceTimes"
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Header="Erfasste Abwesenheiten"
|
||||
Style="{StaticResource ObjectEditGroupBox}">
|
||||
<dxg:GridControl
|
||||
x:Name="DataGridAbsenceTimes"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
ItemsSource="{Binding Path=AbsenceTimes.VMList}">
|
||||
<dxg:GridControl.Columns>
|
||||
<dxg:GridColumn FieldName="Notice" Header="" FixedWidth="True" Width="24" ReadOnly="True">
|
||||
<dxg:GridColumn
|
||||
Width="24"
|
||||
FieldName="Notice"
|
||||
FixedWidth="True"
|
||||
Header=""
|
||||
ReadOnly="True">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Content="r" Command="{Binding RemoveAbsenceTimeCommand, ElementName=AbsenceTimeViewUserControl}" FontFamily="Webdings" Width="18" Height="18" VerticalAlignment="Center" />
|
||||
<Button
|
||||
Width="18"
|
||||
Height="18"
|
||||
VerticalAlignment="Center"
|
||||
Command="{Binding RemoveAbsenceTimeCommand, ElementName=AbsenceTimeViewUserControl}"
|
||||
Content="r"
|
||||
FontFamily="Webdings" />
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="Start" Header="Startdatum" AllowBestFit="True" SortOrder="Descending">
|
||||
<dxg:GridColumn
|
||||
AllowBestFit="True"
|
||||
FieldName="Start"
|
||||
Header="Startdatum"
|
||||
SortOrder="Descending">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:DateEditSettings DisplayFormat="d" AllowNullInput="False" />
|
||||
<dxe:DateEditSettings AllowNullInput="False" DisplayFormat="d" />
|
||||
</dxg:GridColumn.EditSettings>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="StartTime" Header="Startzeit" AllowBestFit="True" BestFitMode="Smart">
|
||||
<dxg:GridColumn
|
||||
AllowBestFit="True"
|
||||
BestFitMode="Smart"
|
||||
FieldName="StartTime"
|
||||
Header="Startzeit">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:TextEditSettings MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" MaskShowPlaceHolders="True" MaskUseAsDisplayFormat="True" ValidateOnEnterKeyPressed="True" />
|
||||
<dxe:TextEditSettings
|
||||
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
||||
MaskShowPlaceHolders="True"
|
||||
MaskType="RegEx"
|
||||
MaskUseAsDisplayFormat="True"
|
||||
ValidateOnEnterKeyPressed="True" />
|
||||
</dxg:GridColumn.EditSettings>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="End" Header="Enddatum" AllowBestFit="True">
|
||||
<dxg:GridColumn
|
||||
AllowBestFit="True"
|
||||
FieldName="End"
|
||||
Header="Enddatum">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:DateSettings AllowNullInput="True" />
|
||||
</dxg:GridColumn.EditSettings>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="EndTime" Header="Endzeit" AllowBestFit="True" BestFitMode="Smart">
|
||||
<dxg:GridColumn
|
||||
AllowBestFit="True"
|
||||
BestFitMode="Smart"
|
||||
FieldName="EndTime"
|
||||
Header="Endzeit">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:TextEditSettings MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" MaskShowPlaceHolders="True" MaskUseAsDisplayFormat="True" ValidateOnEnterKeyPressed="True" />
|
||||
<dxe:TextEditSettings
|
||||
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
||||
MaskShowPlaceHolders="True"
|
||||
MaskType="RegEx"
|
||||
MaskUseAsDisplayFormat="True"
|
||||
ValidateOnEnterKeyPressed="True" />
|
||||
</dxg:GridColumn.EditSettings>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="Reason" Header="Kategorie" AllowBestFit="True">
|
||||
<dxg:GridColumn
|
||||
AllowBestFit="True"
|
||||
FieldName="Reason"
|
||||
Header="Kategorie">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:ComboBoxEditSettings x:Name="AbsenceReasonComboBox"/>
|
||||
<dxe:ComboBoxEditSettings x:Name="AbsenceReasonComboBox" />
|
||||
</dxg:GridColumn.EditSettings>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="Notice" Header="Erläuterung" AllowBestFit="True" />
|
||||
<dxg:GridColumn
|
||||
AllowBestFit="True"
|
||||
FieldName="Notice"
|
||||
Header="Erläuterung" />
|
||||
</dxg:GridControl.Columns>
|
||||
<dxg:GridControl.View>
|
||||
<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False"
|
||||
NavigationStyle="Cell" AllowBestFit="True" BestFitMode="Smart"/>
|
||||
<dxg:TableView
|
||||
AllowBestFit="True"
|
||||
AutoWidth="true"
|
||||
BestFitMode="Smart"
|
||||
NavigationStyle="Cell"
|
||||
ShowGroupPanel="False"
|
||||
ShowGroupedColumns="false"
|
||||
ShowTotalSummary="False" />
|
||||
</dxg:GridControl.View>
|
||||
</dxg:GridControl>
|
||||
</GroupBox>
|
||||
|
||||
@@ -7,15 +7,11 @@
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Setter Property="Visibility" Value="Visible" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled}" Value="False">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="..\..\Styles\PrototypeStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Grid DataContext="{Binding CustomerGemeinnutzigeArbeitListVM}">
|
||||
@@ -52,7 +48,9 @@
|
||||
</TabControl.ItemTemplate>
|
||||
<TabControl.ContentTemplate>
|
||||
<DataTemplate>
|
||||
<controls:CustomerVermittlungArbeitControl/>
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
||||
<controls:CustomerVermittlungArbeitControl/>
|
||||
</ScrollViewer>
|
||||
</DataTemplate>
|
||||
</TabControl.ContentTemplate>
|
||||
</TabControl>
|
||||
|
||||
@@ -15,15 +15,11 @@
|
||||
d:DataContext="{d:DesignInstance Type=viewmodel:CustomerVM, IsDesignTimeCreatable=true}"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Setter Property="Visibility" Value="Visible" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled}" Value="False">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="..\..\Styles\PrototypeStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Grid DataContext="{Binding CustomerWohnhilfeListVM}">
|
||||
|
||||
@@ -1,17 +1,36 @@
|
||||
<UserControl x:Class="BeWo.View.Detail.Report.AbwesenheitsEmployeeHeader"
|
||||
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:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
mc:Ignorable="d"
|
||||
Height="Auto" Width="Auto">
|
||||
<Grid >
|
||||
<UserControl
|
||||
x:Class="BeWo.View.Detail.Report.AbwesenheitsEmployeeHeader"
|
||||
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:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Width="Auto"
|
||||
Height="Auto"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<TextBlock x:Name="_EmployeeName" Text="Max, Mustermann" FontWeight="SemiBold" HorizontalAlignment="Left" Foreground="White" />
|
||||
<TextBlock x:Name="_EmployeeUrlaub" Text="40 Urlaubstage" HorizontalAlignment="Left" Foreground="White" />
|
||||
<TextBlock x:Name="_EmployeeUrlaubDieserMonat" Text="Urlaub/Monat: 0 Tage" HorizontalAlignment="Left" Foreground="White" />
|
||||
<TextBlock x:Name="_EmployeeKrankheitDieserMonat" Text="Krankheit/Monat: 0 Tage" HorizontalAlignment="Left" Foreground="White" />
|
||||
<TextBlock
|
||||
x:Name="_EmployeeName"
|
||||
HorizontalAlignment="Left"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="White"
|
||||
Text="Max, Mustermann" />
|
||||
<TextBlock
|
||||
x:Name="_EmployeeUrlaub"
|
||||
HorizontalAlignment="Left"
|
||||
Foreground="White"
|
||||
Text="40 Urlaubstage" />
|
||||
<TextBlock
|
||||
x:Name="_EmployeeUrlaubDieserMonat"
|
||||
HorizontalAlignment="Left"
|
||||
Foreground="White"
|
||||
Text="Urlaub/Monat: 0 Tage" />
|
||||
<TextBlock
|
||||
x:Name="_EmployeeKrankheitDieserMonat"
|
||||
HorizontalAlignment="Left"
|
||||
Foreground="White"
|
||||
Text="Krankheit/Monat: 0 Tage" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@@ -1,51 +1,116 @@
|
||||
<UserControl x:Class="BeWo.View.VarFieldEditControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:shared="clr-namespace:BS.Shared;assembly=BS.Shared"
|
||||
xmlns:localcore="clr-namespace:BeWo.Core" HorizontalAlignment="Stretch" VerticalAlignment="Top">
|
||||
<UserControl
|
||||
x:Class="BeWo.View.VarFieldEditControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
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:localcore="clr-namespace:BeWo.Core"
|
||||
xmlns:shared="clr-namespace:BS.Shared;assembly=BS.Shared"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Top">
|
||||
|
||||
<UserControl.Resources>
|
||||
<UserControl.Resources>
|
||||
|
||||
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" VerticalAlignment="Top" Margin="3" x:Key="{x:Static shared:ControlType.DatePicker}" EditValue="{Binding VarFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="1" AllowNullInput="True" />
|
||||
<CheckBox Foreground="Black" Margin="3,6,3,3" x:Key="{x:Static shared:ControlType.CheckBox}" IsThreeState="False" IsChecked="{Binding VarFieldValueBoolean}" Grid.Column="1" />
|
||||
<TextBox Foreground="Black" Margin="3" x:Key="{x:Static shared:ControlType.TextBox}" Text="{Binding VarFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="1" Height="{Binding Height, Mode=OneWay}" VerticalContentAlignment="Center"/>
|
||||
<TextBox Foreground="Black" Margin="3" x:Key="{x:Static shared:ControlType.MemoBox}" Text="{Binding VarFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Height="{Binding Height, Mode=OneWay}" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap" AcceptsReturn="True" AutoWordSelection="True" Grid.Column="1" />
|
||||
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True" x:Name="tb_numeric" Margin="3" x:Key="{x:Static shared:ControlType.NumericTextBox}" EditValue="{Binding VarFieldValue}" Height="{Binding Height, Mode=OneWay}" Grid.Column="1" />
|
||||
<ComboBox Foreground="Black" Margin="3" x:Key="{x:Static shared:ControlType.ComboBox}" ItemsSource="{Binding PossibleItems}" SelectedItem="{Binding VarFieldValue}" Grid.Column="1" />
|
||||
<dxe:DateEdit
|
||||
x:Key="{x:Static shared:ControlType.DatePicker}"
|
||||
Grid.Column="1"
|
||||
Margin="3"
|
||||
VerticalAlignment="Top"
|
||||
AllowNullInput="True"
|
||||
EditValue="{Binding VarFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||||
MaskType="DateTimeAdvancingCaret" />
|
||||
<CheckBox
|
||||
x:Key="{x:Static shared:ControlType.CheckBox}"
|
||||
Grid.Column="1"
|
||||
Margin="3,6,3,3"
|
||||
Foreground="Black"
|
||||
IsChecked="{Binding VarFieldValueBoolean}"
|
||||
IsThreeState="False" />
|
||||
<TextBox
|
||||
x:Key="{x:Static shared:ControlType.TextBox}"
|
||||
Grid.Column="1"
|
||||
Height="{Binding Height, Mode=OneWay}"
|
||||
Margin="3"
|
||||
VerticalContentAlignment="Center"
|
||||
Foreground="Black"
|
||||
Text="{Binding VarFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
|
||||
<TextBox
|
||||
x:Key="{x:Static shared:ControlType.MemoBox}"
|
||||
Grid.Column="1"
|
||||
Height="{Binding Height, Mode=OneWay}"
|
||||
Margin="3"
|
||||
AcceptsReturn="True"
|
||||
AutoWordSelection="True"
|
||||
Foreground="Black"
|
||||
HorizontalScrollBarVisibility="Hidden"
|
||||
Text="{Binding VarFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||||
TextWrapping="Wrap"
|
||||
VerticalScrollBarVisibility="Auto" />
|
||||
<dxe:TextEdit
|
||||
x:Key="{x:Static shared:ControlType.NumericTextBox}"
|
||||
x:Name="tb_numeric"
|
||||
Grid.Column="1"
|
||||
Height="{Binding Height, Mode=OneWay}"
|
||||
Margin="3"
|
||||
EditValue="{Binding VarFieldValue}"
|
||||
Mask="########0.00"
|
||||
MaskType="Numeric"
|
||||
MaskUseAsDisplayFormat="True" />
|
||||
<ComboBox
|
||||
x:Key="{x:Static shared:ControlType.ComboBox}"
|
||||
Grid.Column="1"
|
||||
Margin="3"
|
||||
Foreground="Black"
|
||||
ItemsSource="{Binding PossibleItems}"
|
||||
SelectedItem="{Binding VarFieldValue}" />
|
||||
|
||||
<ListBox Foreground="Black" Margin="3" x:Key="{x:Static shared:ControlType.CheckBoxList}" ItemsSource="{Binding PossibleItems}" SelectionMode="Multiple" Grid.Column="1" Height="{Binding Height, Mode=OneWay}" localcore:BeWoWpfUtils.SelectedItemsList="{Binding VarFieldValue}">
|
||||
<ListBox.Resources>
|
||||
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
|
||||
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent" />
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Style>
|
||||
</ListBox.Resources>
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Orientation="Vertical" MaxHeight="{Binding ElementName=ItemsControlScroller, Path=ActualHeight}" />
|
||||
</ItemsPanelTemplate>
|
||||
</ListBox.ItemsPanel>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<DockPanel Margin="4,0,4,0">
|
||||
<CheckBox IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}, Path=IsSelected, Mode=TwoWay}" VerticalAlignment="Center" />
|
||||
<Label Content="{Binding}" />
|
||||
</DockPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</UserControl.Resources>
|
||||
<ListBox
|
||||
x:Key="{x:Static shared:ControlType.CheckBoxList}"
|
||||
Grid.Column="1"
|
||||
Height="{Binding Height, Mode=OneWay}"
|
||||
Margin="3"
|
||||
localcore:BeWoWpfUtils.SelectedItemsList="{Binding VarFieldValue}"
|
||||
Foreground="Black"
|
||||
ItemsSource="{Binding PossibleItems}"
|
||||
SelectionMode="Multiple">
|
||||
<ListBox.Resources>
|
||||
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
|
||||
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent" />
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Style>
|
||||
</ListBox.Resources>
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel MaxHeight="{Binding ElementName=ItemsControlScroller, Path=ActualHeight}" Orientation="Vertical" />
|
||||
</ItemsPanelTemplate>
|
||||
</ListBox.ItemsPanel>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<DockPanel Margin="4,0,4,0">
|
||||
<CheckBox VerticalAlignment="Center" IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}, Path=IsSelected, Mode=TwoWay}" />
|
||||
<Label Content="{Binding}" />
|
||||
</DockPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid Grid.Column="{Binding XCoordinate}" HorizontalAlignment="Stretch" VerticalAlignment="Top" x:Name="grid_root" Grid.Row="{Binding YCoordinate}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition SharedSizeGroup="{Binding XCoordinate,StringFormat=lblCol{0}}" Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Foreground="Black" Text="{Binding Label}" Margin="3 6 3 3" />
|
||||
</Grid>
|
||||
<Grid
|
||||
x:Name="grid_root"
|
||||
Grid.Row="{Binding YCoordinate}"
|
||||
Grid.Column="{Binding XCoordinate}"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Top">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="{Binding XCoordinate, StringFormat=lblCol{0}}" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock
|
||||
Margin="3,6,3,3"
|
||||
Foreground="Black"
|
||||
Text="{Binding Label}" />
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
@@ -1,44 +1,60 @@
|
||||
<UserControl x:Class="BeWo.View.VarFieldView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:localView="clr-namespace:BeWo.View"
|
||||
Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch" Focusable="True" xmlns:localcore="clr-namespace:BeWo.Core" >
|
||||
<UserControl
|
||||
x:Class="BeWo.View.VarFieldView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:localView="clr-namespace:BeWo.View"
|
||||
xmlns:localcore="clr-namespace:BeWo.Core"
|
||||
Width="Auto"
|
||||
Height="Auto"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
Focusable="True">
|
||||
<Grid>
|
||||
<ItemsControl Name="lv_root" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Orientation="Horizontal" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<GroupBox Margin="3" x:Name="GROUPBOX" Header="{Binding Key.GroupName}" VerticalAlignment="Top" Style="{StaticResource ObjectEditGroupBox}">
|
||||
<Grid>
|
||||
<ItemsControl ItemsSource="{Binding Value}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<Grid Grid.IsSharedSizeScope="True" localcore:BeWoWpfUtils.AutoHeightRowCount="{Binding Key.RowCount}" localcore:BeWoWpfUtils.AutoWidthColumnCount="{Binding Key.ColumnCount}" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<localView:VarFieldEditControl VarFieldVM="{Binding}" />
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
<ItemsControl.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type ContentPresenter}">
|
||||
<Setter Property="Grid.Row" Value="{Binding YCoordinate}" />
|
||||
<Setter Property="Grid.Column" Value="{Binding XCoordinate}" />
|
||||
<Setter Property="Grid.RowSpan" Value="{Binding RowSpan}" />
|
||||
<Setter Property="Grid.ColumnSpan" Value="{Binding ColumnSpan}" />
|
||||
</Style>
|
||||
</ItemsControl.ItemContainerStyle>
|
||||
</ItemsControl>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Grid>
|
||||
<ItemsControl
|
||||
Name="lv_root"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Orientation="Horizontal" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<GroupBox
|
||||
x:Name="GROUPBOX"
|
||||
Margin="3"
|
||||
VerticalAlignment="Top"
|
||||
Header="{Binding Key.GroupName}"
|
||||
Style="{StaticResource ObjectEditGroupBox}">
|
||||
<Grid>
|
||||
<ItemsControl ItemsSource="{Binding Value}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<Grid
|
||||
localcore:BeWoWpfUtils.AutoHeightRowCount="{Binding Key.RowCount}"
|
||||
localcore:BeWoWpfUtils.AutoWidthColumnCount="{Binding Key.ColumnCount}"
|
||||
Grid.IsSharedSizeScope="True" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<localView:VarFieldEditControl VarFieldVM="{Binding}" />
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
<ItemsControl.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type ContentPresenter}">
|
||||
<Setter Property="Grid.Row" Value="{Binding YCoordinate}" />
|
||||
<Setter Property="Grid.Column" Value="{Binding XCoordinate}" />
|
||||
<Setter Property="Grid.RowSpan" Value="{Binding RowSpan}" />
|
||||
<Setter Property="Grid.ColumnSpan" Value="{Binding ColumnSpan}" />
|
||||
</Style>
|
||||
</ItemsControl.ItemContainerStyle>
|
||||
</ItemsControl>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -57,6 +57,7 @@ namespace BeWo.ViewModel
|
||||
|
||||
}
|
||||
|
||||
public string Displayname => $"AZ: {EigenesAktenzeichen}";
|
||||
public string EigenesAktenzeichen
|
||||
{
|
||||
get { return _EigenesAktenzeichen; }
|
||||
@@ -68,6 +69,7 @@ namespace BeWo.ViewModel
|
||||
_EigenesAktenzeichen = value;
|
||||
StoreDirtyInformation(AreDifferent(DataContract.EigenesAktenzeichen, value), nameof(EigenesAktenzeichen));
|
||||
FirePropertyChanged(nameof(EigenesAktenzeichen));
|
||||
FirePropertyChanged(nameof(Displayname));
|
||||
}
|
||||
}
|
||||
public DateTime? Auftragseingang
|
||||
|
||||
@@ -1,263 +1,365 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:BeWo.Controls" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid">
|
||||
<ResourceDictionary
|
||||
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.Aero"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
xmlns:local="clr-namespace:BeWo.Controls">
|
||||
|
||||
<SolidColorBrush x:Key="TextBoxBorderBrush" Color="#FF86878F" />
|
||||
<SolidColorBrush x:Key="TextBoxBorderBrush" Color="#FF86878F" />
|
||||
|
||||
<Style TargetType="{x:Type local:PopUpEdit}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:PopUpEdit}">
|
||||
<Microsoft_Windows_Themes:ListBoxChrome SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" RenderMouseOver="{TemplateBinding IsMouseOver}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ScrollViewer SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" x:Name="PART_ContentHost" />
|
||||
<Button Grid.Column="1" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}" VerticalAlignment="Stretch" x:Name="PART_PopUpButton" Padding="0,5,0,0" Margin="1,0,1,0" Height="20">
|
||||
<Polyline Stroke="Red" SnapsToDevicePixels="True" StrokeThickness="2" StrokeDashArray="1 1" Points="0,0 10,0" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
||||
</Button>
|
||||
<Style TargetType="{x:Type local:PopUpEdit}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:PopUpEdit}">
|
||||
<Microsoft_Windows_Themes:ListBoxChrome
|
||||
x:Name="Bd"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
|
||||
RenderMouseOver="{TemplateBinding IsMouseOver}"
|
||||
SnapsToDevicePixels="true">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
<Button
|
||||
x:Name="PART_PopUpButton"
|
||||
Grid.Column="1"
|
||||
Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}"
|
||||
Height="20"
|
||||
Margin="1,0,1,0"
|
||||
Padding="0,5,0,0"
|
||||
VerticalAlignment="Stretch">
|
||||
<Polyline
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Points="0,0 10,0"
|
||||
SnapsToDevicePixels="True"
|
||||
Stroke="Red"
|
||||
StrokeDashArray="1 1"
|
||||
StrokeThickness="2" />
|
||||
</Button>
|
||||
|
||||
<Button Grid.Column="2" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}" VerticalAlignment="Stretch" x:Name="PART_NewButton" Content="" FontFamily="Webdings" Margin="1,0,1,0"></Button>
|
||||
<Button
|
||||
x:Name="PART_NewButton"
|
||||
Grid.Column="2"
|
||||
Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}"
|
||||
Margin="1,0,1,0"
|
||||
VerticalAlignment="Stretch"
|
||||
Content=""
|
||||
FontFamily="Webdings" />
|
||||
|
||||
<Button Padding="0" Grid.Column="3" Visibility="{TemplateBinding DeleteButtonVisibility}" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}" VerticalAlignment="Stretch" x:Name="PART_DeleteButton" Margin="1,0,1,0" Height="20">
|
||||
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Path Stroke="White" StrokeThickness="1.5" Data="M -3,-3 L 3, 3" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
|
||||
<Path Stroke="White" StrokeThickness="1.5" Data="M 3,-3 L -3, 3" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
|
||||
</Canvas>
|
||||
</Button>
|
||||
</Grid>
|
||||
</Microsoft_Windows_Themes:ListBoxChrome>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Button
|
||||
x:Name="PART_DeleteButton"
|
||||
Grid.Column="3"
|
||||
Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}"
|
||||
Height="20"
|
||||
Margin="1,0,1,0"
|
||||
Padding="0"
|
||||
VerticalAlignment="Stretch"
|
||||
Visibility="{TemplateBinding DeleteButtonVisibility}">
|
||||
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Path
|
||||
Data="M -3,-3 L 3, 3"
|
||||
Stroke="White"
|
||||
StrokeEndLineCap="Round"
|
||||
StrokeStartLineCap="Round"
|
||||
StrokeThickness="1.5" />
|
||||
<Path
|
||||
Data="M 3,-3 L -3, 3"
|
||||
Stroke="White"
|
||||
StrokeEndLineCap="Round"
|
||||
StrokeStartLineCap="Round"
|
||||
StrokeThickness="1.5" />
|
||||
</Canvas>
|
||||
</Button>
|
||||
</Grid>
|
||||
</Microsoft_Windows_Themes:ListBoxChrome>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type local:MaskedTextBox}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<Microsoft_Windows_Themes:ListBoxChrome SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" RenderMouseOver="{TemplateBinding IsMouseOver}">
|
||||
<ScrollViewer SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" x:Name="PART_ContentHost" />
|
||||
</Microsoft_Windows_Themes:ListBoxChrome>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type local:MaskedTextBox}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Padding" Value="1" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<Microsoft_Windows_Themes:ListBoxChrome
|
||||
x:Name="Bd"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
|
||||
RenderMouseOver="{TemplateBinding IsMouseOver}"
|
||||
SnapsToDevicePixels="true">
|
||||
<ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Microsoft_Windows_Themes:ListBoxChrome>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<LinearGradientBrush x:Key="b" EndPoint="0,20" StartPoint="0,0" MappingMode="Absolute">
|
||||
<GradientStop Color="#ABADB3" Offset="0.05" />
|
||||
<GradientStop Color="#E2E3EA" Offset="0.07" />
|
||||
<GradientStop Color="#E3E9EF" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="b" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
|
||||
<GradientStop Offset="0.05" Color="#ABADB3" />
|
||||
<GradientStop Offset="0.07" Color="#E2E3EA" />
|
||||
<GradientStop Offset="1" Color="#E3E9EF" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<Style TargetType="{x:Type local:TimePicker}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:TimePicker}">
|
||||
<!--Border that wraps the control-->
|
||||
<Border BorderBrush="{StaticResource b}" BorderThickness="1">
|
||||
<Grid Background="White" DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:TimePicker}}}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Style TargetType="{x:Type local:TimePicker}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:TimePicker}">
|
||||
<!-- Border that wraps the control -->
|
||||
<Border BorderBrush="{StaticResource b}" BorderThickness="1">
|
||||
<Grid Background="White" DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:TimePicker}}}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Height="Auto">
|
||||
<Grid Height="Auto">
|
||||
|
||||
<Grid.Resources>
|
||||
<!--Control template to remove the default style of the textblock-->
|
||||
<Style TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="Foreground" Value="{Binding Path=Foreground}" />
|
||||
<Setter Property="FontWeight" Value="{Binding Path=FontWeight}" />
|
||||
<Setter Property="FontStyle" Value="{Binding Path=FontStyle}" />
|
||||
<Setter Property="FontStretch" Value="{Binding Path=FontStretch}" />
|
||||
<Setter Property="FontSize" Value="{Binding Path=FontSize}" />
|
||||
<Setter Property="FontFamily" Value="{Binding Path=FontFamily}" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<!--Control template to remove the default style of the textboxes-->
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<!--Bind properties to use in the textboxes-->
|
||||
<Setter Property="Foreground" Value="{Binding Path=Foreground}" />
|
||||
<Setter Property="FontWeight" Value="{Binding Path=FontWeight}" />
|
||||
<Setter Property="FontStyle" Value="{Binding Path=FontStyle}" />
|
||||
<Setter Property="FontStretch" Value="{Binding Path=FontStretch}" />
|
||||
<Setter Property="FontSize" Value="{Binding Path=FontSize}" />
|
||||
<Setter Property="FontFamily" Value="{Binding Path=FontFamily}" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||
</Style>
|
||||
</Grid.Resources>
|
||||
<Grid.Resources>
|
||||
<!-- Control template to remove the default style of the textblock -->
|
||||
<Style TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="Foreground" Value="{Binding Path=Foreground}" />
|
||||
<Setter Property="FontWeight" Value="{Binding Path=FontWeight}" />
|
||||
<Setter Property="FontStyle" Value="{Binding Path=FontStyle}" />
|
||||
<Setter Property="FontStretch" Value="{Binding Path=FontStretch}" />
|
||||
<Setter Property="FontSize" Value="{Binding Path=FontSize}" />
|
||||
<Setter Property="FontFamily" Value="{Binding Path=FontFamily}" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<!-- Control template to remove the default style of the textboxes -->
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<!-- Bind properties to use in the textboxes -->
|
||||
<Setter Property="Foreground" Value="{Binding Path=Foreground}" />
|
||||
<Setter Property="FontWeight" Value="{Binding Path=FontWeight}" />
|
||||
<Setter Property="FontStyle" Value="{Binding Path=FontStyle}" />
|
||||
<Setter Property="FontStretch" Value="{Binding Path=FontStretch}" />
|
||||
<Setter Property="FontSize" Value="{Binding Path=FontSize}" />
|
||||
<Setter Property="FontFamily" Value="{Binding Path=FontFamily}" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||
</Style>
|
||||
</Grid.Resources>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="23" />
|
||||
<ColumnDefinition Width="5" />
|
||||
<ColumnDefinition Width="23" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="23" />
|
||||
<ColumnDefinition Width="5" />
|
||||
<ColumnDefinition Width="23" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!--Hour text-->
|
||||
<TextBox Grid.Column="0" x:Name="PART_Hours" Text="{Binding Path=SelectedHour}">
|
||||
<TextBox.Template>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer x:Name="PART_ContentHost" />
|
||||
</ControlTemplate>
|
||||
</TextBox.Template>
|
||||
</TextBox>
|
||||
<TextBlock Text=":" Grid.Column="1" />
|
||||
<!--minute text-->
|
||||
<TextBox Grid.Column="2" x:Name="PART_Minutes" Text="{Binding Path=SelectedMinute}">
|
||||
<TextBox.Template>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer x:Name="PART_ContentHost" />
|
||||
</ControlTemplate>
|
||||
</TextBox.Template>
|
||||
</TextBox>
|
||||
<TextBlock Text=":" Grid.Column="3" Visibility="Collapsed" />
|
||||
<!--seconds text-->
|
||||
<TextBox Grid.Column="4" x:Name="PART_Seconds" Text="{Binding Path=SelectedSecond}" Visibility="Collapsed">
|
||||
<TextBox.Template>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer x:Name="PART_ContentHost" />
|
||||
</ControlTemplate>
|
||||
</TextBox.Template>
|
||||
</TextBox>
|
||||
</Grid>
|
||||
<!-- Hour text -->
|
||||
<TextBox
|
||||
x:Name="PART_Hours"
|
||||
Grid.Column="0"
|
||||
Text="{Binding Path=SelectedHour}">
|
||||
<TextBox.Template>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer x:Name="PART_ContentHost" />
|
||||
</ControlTemplate>
|
||||
</TextBox.Template>
|
||||
</TextBox>
|
||||
<TextBlock Grid.Column="1" Text=":" />
|
||||
<!-- minute text -->
|
||||
<TextBox
|
||||
x:Name="PART_Minutes"
|
||||
Grid.Column="2"
|
||||
Text="{Binding Path=SelectedMinute}">
|
||||
<TextBox.Template>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer x:Name="PART_ContentHost" />
|
||||
</ControlTemplate>
|
||||
</TextBox.Template>
|
||||
</TextBox>
|
||||
<TextBlock
|
||||
Grid.Column="3"
|
||||
Text=":"
|
||||
Visibility="Collapsed" />
|
||||
<!-- seconds text -->
|
||||
<TextBox
|
||||
x:Name="PART_Seconds"
|
||||
Grid.Column="4"
|
||||
Text="{Binding Path=SelectedSecond}"
|
||||
Visibility="Collapsed">
|
||||
<TextBox.Template>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer x:Name="PART_ContentHost" />
|
||||
</ControlTemplate>
|
||||
</TextBox.Template>
|
||||
</TextBox>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Button x:Name="PART_IncreaseTime" Padding="0">
|
||||
<Button.Template>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<TextBlock FontFamily="Webdings" Text="5" />
|
||||
</ControlTemplate>
|
||||
</Button.Template>
|
||||
</Button>
|
||||
<Button x:Name="PART_DecrementTime" Grid.Row="1">
|
||||
<Button.Template>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<TextBlock FontFamily="Webdings" Text="6" />
|
||||
</ControlTemplate>
|
||||
</Button.Template>
|
||||
</Button>
|
||||
</Grid>
|
||||
<Button x:Name="PART_IncreaseTime" Padding="0">
|
||||
<Button.Template>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<TextBlock FontFamily="Webdings" Text="5" />
|
||||
</ControlTemplate>
|
||||
</Button.Template>
|
||||
</Button>
|
||||
<Button x:Name="PART_DecrementTime" Grid.Row="1">
|
||||
<Button.Template>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<TextBlock FontFamily="Webdings" Text="6" />
|
||||
</ControlTemplate>
|
||||
</Button.Template>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Grid>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style x:Key="ComboBoxFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Margin="4,4,21,4" SnapsToDevicePixels="true" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
|
||||
<GradientStop Color="#F3F3F3" Offset="0" />
|
||||
<GradientStop Color="#EBEBEB" Offset="0.5" />
|
||||
<GradientStop Color="#DDDDDD" Offset="0.5" />
|
||||
<GradientStop Color="#CDCDCD" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070" />
|
||||
<Geometry x:Key="DownArrowGeometry">
|
||||
M 0 0 L 3.5 4 L 7 0 Z
|
||||
</Geometry>
|
||||
<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="IsTabStop" Value="false" />
|
||||
<Setter Property="Focusable" Value="false" />
|
||||
<Setter Property="ClickMode" Value="Press" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Microsoft_Windows_Themes:ButtonChrome x:Name="Chrome" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}">
|
||||
<Grid HorizontalAlignment="Right" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
|
||||
<Path HorizontalAlignment="Center" Margin="3,1,0,0" x:Name="Arrow" VerticalAlignment="Center" Fill="Black" Data="{StaticResource DownArrowGeometry}" />
|
||||
</Grid>
|
||||
</Microsoft_Windows_Themes:ButtonChrome>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter Property="RenderPressed" TargetName="Chrome" Value="true" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Fill" TargetName="Arrow" Value="#AFAFAF" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ComboBoxFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle
|
||||
Margin="4,4,21,4"
|
||||
SnapsToDevicePixels="true"
|
||||
Stroke="Black"
|
||||
StrokeDashArray="1 2"
|
||||
StrokeThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<LinearGradientBrush x:Key="ButtonNormalBackground" StartPoint="0,0" EndPoint="0,1">
|
||||
<GradientStop Offset="0" Color="#F3F3F3" />
|
||||
<GradientStop Offset="0.5" Color="#EBEBEB" />
|
||||
<GradientStop Offset="0.5" Color="#DDDDDD" />
|
||||
<GradientStop Offset="1" Color="#CDCDCD" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070" />
|
||||
<Geometry x:Key="DownArrowGeometry">
|
||||
M 0 0 L 3.5 4 L 7 0 Z
|
||||
</Geometry>
|
||||
<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="IsTabStop" Value="false" />
|
||||
<Setter Property="Focusable" Value="false" />
|
||||
<Setter Property="ClickMode" Value="Press" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Microsoft_Windows_Themes:ButtonChrome
|
||||
x:Name="Chrome"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
RenderMouseOver="{TemplateBinding IsMouseOver}"
|
||||
RenderPressed="{TemplateBinding IsPressed}"
|
||||
SnapsToDevicePixels="true">
|
||||
<Grid Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" HorizontalAlignment="Right">
|
||||
<Path
|
||||
x:Name="Arrow"
|
||||
Margin="3,1,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Data="{StaticResource DownArrowGeometry}"
|
||||
Fill="Black" />
|
||||
</Grid>
|
||||
</Microsoft_Windows_Themes:ButtonChrome>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter TargetName="Chrome" Property="RenderPressed" Value="true" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter TargetName="Arrow" Property="Fill" Value="#AFAFAF" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="MinWidth" Value="0" />
|
||||
<Setter Property="MinHeight" Value="0" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer Background="Transparent" x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
|
||||
<Setter Property="OverridesDefaultStyle" Value="true" />
|
||||
<Setter Property="AllowDrop" Value="true" />
|
||||
<Setter Property="MinWidth" Value="0" />
|
||||
<Setter Property="MinHeight" Value="0" />
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<ScrollViewer
|
||||
x:Name="PART_ContentHost"
|
||||
Background="Transparent"
|
||||
Focusable="false"
|
||||
HorizontalScrollBarVisibility="Hidden"
|
||||
VerticalScrollBarVisibility="Hidden" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style TargetType="{x:Type local:BSGridControl}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:BSGridControl}">
|
||||
<Style TargetType="{x:Type local:BSGridControl}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:BSGridControl}">
|
||||
|
||||
<DockPanel FlowDirection="RightToLeft" LastChildFill="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SnapsToDevicePixels="True">
|
||||
<DockPanel
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
FlowDirection="RightToLeft"
|
||||
LastChildFill="True"
|
||||
SnapsToDevicePixels="True">
|
||||
|
||||
<ContentControl FlowDirection="LeftToRight" Content="{TemplateBinding Property=Content}" DataContext="{TemplateBinding Property=GridControl}" />
|
||||
</DockPanel>
|
||||
<ControlTemplate.Triggers>
|
||||
<!--<Trigger Property="OptionsContent" Value="{x:Null}">
|
||||
<ContentControl
|
||||
Content="{TemplateBinding Property=Content}"
|
||||
DataContext="{TemplateBinding Property=GridControl}"
|
||||
FlowDirection="LeftToRight" />
|
||||
</DockPanel>
|
||||
<ControlTemplate.Triggers>
|
||||
<!--<Trigger Property="OptionsContent" Value="{x:Null}">
|
||||
<Setter Property="Visibility" Value="Collapsed" TargetName="optionsReveal"/>
|
||||
</Trigger>-->
|
||||
<!--<Trigger Property="OptionsExpanded" Value="True">
|
||||
<!--<Trigger Property="OptionsExpanded" Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource optionsRevealStoryboard1}"/>
|
||||
</Trigger.EnterActions>
|
||||
@@ -265,42 +367,49 @@
|
||||
<BeginStoryboard Storyboard="{StaticResource optionsRevealStoryboard2}"/>
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>-->
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
|
||||
</Style>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type local:PopUpWindow}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:PopUpWindow}">
|
||||
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"></Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type local:PopUpWindow}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:PopUpWindow}">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style TargetType="{x:Type local:ExpanderPanel}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:ExpanderPanel}">
|
||||
<Border x:Name="PART_Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid x:Name="PART_Header" />
|
||||
<Grid Grid.Row="1" x:Name="PART_Content" />
|
||||
</Grid>
|
||||
<Style TargetType="{x:Type local:ExpanderPanel}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:ExpanderPanel}">
|
||||
<Border
|
||||
x:Name="PART_Border"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid x:Name="PART_Header" />
|
||||
<Grid x:Name="PART_Content" Grid.Row="1" />
|
||||
</Grid>
|
||||
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user