1997 lines
127 KiB
XML
1997 lines
127 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.Scheduler.View.NewSchedulerView"
|
|
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:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler"
|
|
xmlns:dxschint="http://schemas.devexpress.com/winfx/2008/xaml/scheduler/internal"
|
|
xmlns:dxscht="http://schemas.devexpress.com/winfx/2008/xaml/scheduler/themekeys"
|
|
xmlns:localSchConv="clr-namespace:BeWo.Scheduler.Converter"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:t="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:view="clr-namespace:BeWo.Scheduler.View"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True"
|
|
Loaded="NewSchedulerView_OnLoaded">
|
|
<localView:BeWoView.Resources>
|
|
<ResourceDictionary>
|
|
<dxschint:ToolTipVisibilityToVisibilityConverter x:Key="ToolTipVisibilityConverter" />
|
|
<dx:BooleanToVisibilityConverter x:Key="boolToVisibilityConverter" />
|
|
<localSchConv:CheckBoxConverter x:Key="CheckBoxConverter" />
|
|
<localSchConv:NewCalendarBackgroundConverter x:Key="NewCalendarBackgroundConverter" />
|
|
<view:TextFromIDataContractConverter x:Key="TextFromIDataContractConverter" />
|
|
<view:AppointmentToolTipConverter x:Key="AppointmentToolTipConverter" />
|
|
<view:WidthAdditionMultiConverter x:Key="WidthAdditionMultiConverter" />
|
|
<view:FilterBackgroundConverter x:Key="DickbuttConverter" />
|
|
<view:EmployeeBrushConverter x:Key="EmployeeBrushConverter" />
|
|
<view:AppointmentBorderZusageConverter x:Key="AppointmentBorderZusageConverter" />
|
|
<view:NichtNochEinConverter x:Key="NichtNochEinConverter" />
|
|
<view:InformationButtonVisibilityConverter x:Key="InformationButtonVisibilityConverter" />
|
|
<localSchConv:AptToServRecsIconVisibilityConverter x:Key="AptToServRecsIconVisibilityConverter" />
|
|
<localSchConv:ToolTipTimeConverter x:Key="ToolTipTimeConverter" />
|
|
<!-- Region Appointment Templates -->
|
|
|
|
<!-- Region VerticalAppointmentTemplate -->
|
|
<!-- Wird für alle nicht-ganztäglichen Termine benutzt außer in der Monatsansicht -->
|
|
<ControlTemplate x:Key="{dxscht:SchedulerViewThemeKey ResourceKey=VerticalAppointmentTemplate, IsThemeIndependent=true}" TargetType="{x:Type dxschint:VisualVerticalAppointmentControl}">
|
|
<dxschint:AppointmentColorConvertControl
|
|
x:Name="clrConvCtrl"
|
|
ControlColor="{Binding Path=ViewInfo.CustomViewInfo[CustomFieldStorage].BackgroundColor.GradientStops[0].Color, RelativeSource={RelativeSource TemplatedParent}}"
|
|
SnapsToDevicePixels="True">
|
|
<dxschint:AppointmentColorConvertControl.BaseColors>
|
|
<dxschint:ColorCollection>
|
|
<dxschint:ColorDefinition Name="ColorDefinition_MiddleBorderGradient" Value="#FFE4E4E4" />
|
|
</dxschint:ColorCollection>
|
|
</dxschint:AppointmentColorConvertControl.BaseColors>
|
|
<dxschint:AppointmentColorConvertControl.BaseBrushColors>
|
|
<dxschint:ColorCollection>
|
|
<dxschint:ColorDefinition Name="ColorDefinition_BackBorder" Value="#FFBABABA" />
|
|
<dxschint:ColorDefinition Name="ColorDefinition_AppointmentSelection" Value="#FF7A7A7A" />
|
|
</dxschint:ColorCollection>
|
|
</dxschint:AppointmentColorConvertControl.BaseBrushColors>
|
|
<Grid
|
|
x:Name="PART_ToolTipContainer"
|
|
dxsch:SchedulerControl.HitTestType="AppointmentContent"
|
|
dxsch:SchedulerControl.SelectableIntervalViewInfo="{TemplateBinding ViewInfo}"
|
|
Tag="{TemplateBinding ViewInfo}">
|
|
<!-- Region AppointmentToolTip -->
|
|
<ToolTipService.ToolTip>
|
|
<ToolTip
|
|
Content="{TemplateBinding ViewInfo}"
|
|
ContentTemplate="{Binding ViewInfo.View.AppointmentToolTipContentTemplate, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}"
|
|
Visibility="{Binding ViewInfo.View.AppointmentToolTipVisibility, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource ToolTipVisibilityConverter}}" />
|
|
</ToolTipService.ToolTip>
|
|
<!-- Endregion -->
|
|
<dxschint:AppointmentBorder
|
|
x:Name="back"
|
|
Background="{Binding Path=ViewInfo.CustomViewInfo, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource AppointmentBorderZusageConverter}}"
|
|
DefaultCornerRadius="4"
|
|
Opacity="1"
|
|
ViewInfo="{TemplateBinding ViewInfo}">
|
|
<dxschint:AppointmentBorder
|
|
Background="{Binding Path=ViewInfo.CustomViewInfo[CustomFieldStorage].BackgroundColor, RelativeSource={RelativeSource TemplatedParent}}"
|
|
BorderThickness="1"
|
|
DefaultBorderThickness="1"
|
|
DefaultCornerRadius="3"
|
|
DefaultMargin="2"
|
|
ViewInfo="{TemplateBinding ViewInfo}">
|
|
<dxschint:AppointmentBorder
|
|
x:Name="AppointmentBorder"
|
|
Background="Transparent"
|
|
DefaultCornerRadius="2"
|
|
DefaultMargin="0"
|
|
ViewInfo="{TemplateBinding ViewInfo}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Width="10"
|
|
HorizontalAlignment="Left"
|
|
CornerRadius="4,0,0,4"
|
|
SnapsToDevicePixels="True">
|
|
<Border.Background>
|
|
<MultiBinding Converter="{StaticResource EmployeeBrushConverter}">
|
|
<Binding
|
|
Path="AllItems"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
<Binding
|
|
Path="ViewInfo.CustomViewInfo"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type dxschint:AppointmentBorder}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
<Binding
|
|
Mode="TwoWay"
|
|
Path="IsEmployeeBrushVisible"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
</MultiBinding>
|
|
</Border.Background>
|
|
</Border>
|
|
<Border
|
|
Grid.Column="1"
|
|
Background="Transparent"
|
|
SnapsToDevicePixels="True" />
|
|
<Border
|
|
Grid.Column="2"
|
|
Width="10"
|
|
HorizontalAlignment="Right"
|
|
CornerRadius="0,4,4,0"
|
|
SnapsToDevicePixels="True">
|
|
<Border.Background>
|
|
<MultiBinding Converter="{StaticResource DickbuttConverter}">
|
|
<Binding
|
|
Path="AllItems"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
<Binding Path="ViewInfo.CustomViewInfo" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type dxschint:AppointmentBorder}}" />
|
|
</MultiBinding>
|
|
</Border.Background>
|
|
</Border>
|
|
</Grid>
|
|
</dxschint:AppointmentBorder>
|
|
</dxschint:AppointmentBorder>
|
|
</dxschint:AppointmentBorder>
|
|
<Grid x:Name="ContentContainer" Margin="3,3,3,3">
|
|
<ContentPresenter
|
|
x:Name="PART_Content"
|
|
Grid.Column="0"
|
|
Margin="5,4,5,0"
|
|
Content="{TemplateBinding ViewInfo}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
|
</Grid>
|
|
<dxschint:AppointmentBorder
|
|
x:Name="Selection"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
BorderBrush="Black"
|
|
DefaultBorderThickness="2"
|
|
DefaultCornerRadius="4"
|
|
ViewInfo="{TemplateBinding ViewInfo}"
|
|
Visibility="{Binding ViewInfo.Selected, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource boolToVisibilityConverter}}" />
|
|
<!-- ResizingHitTest Obere und untere Kanten -->
|
|
<Rectangle
|
|
Height="5"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Top"
|
|
dxsch:SchedulerControl.HitTestType="AppointmentResizingTopEdge"
|
|
dxsch:SchedulerControl.SelectableIntervalViewInfo="{TemplateBinding ViewInfo}"
|
|
Cursor="SizeNS"
|
|
Fill="Transparent"
|
|
IsHitTestVisible="True"
|
|
Visibility="{Binding Path=ViewInfo.CanResizeStart, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource boolToVisibilityConverter}}" />
|
|
<Rectangle
|
|
Height="5"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
dxsch:SchedulerControl.HitTestType="AppointmentResizingBottomEdge"
|
|
dxsch:SchedulerControl.SelectableIntervalViewInfo="{TemplateBinding ViewInfo}"
|
|
Cursor="SizeNS"
|
|
Fill="Transparent"
|
|
IsHitTestVisible="True"
|
|
Visibility="{Binding Path=ViewInfo.CanResizeEnd, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource boolToVisibilityConverter}}" />
|
|
</Grid>
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="DraggedStates">
|
|
<VisualState x:Name="NotDragged">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="back"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="1"
|
|
Duration="0:0:0.15" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="ContentContainer"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="1"
|
|
Duration="0:0:0.15" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="Selection"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="1"
|
|
Duration="0:0:0.15" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="Dragged">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="back"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="0.2"
|
|
Duration="0:0:0.15" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="ContentContainer"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="0.2"
|
|
Duration="0:0:0.15" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="Selection"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="0.2"
|
|
Duration="0:0:0.15" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</dxschint:AppointmentColorConvertControl>
|
|
</ControlTemplate>
|
|
<!-- Endregion -->
|
|
|
|
<!-- Region VerticalAppointmentContentTemplate 1, 5 und x Tageansicht -->
|
|
<DataTemplate x:Key="{dxscht:SchedulerViewThemeKey ResourceKey=VerticalAppointmentContentTemplate, IsThemeIndependent=true}">
|
|
<Grid
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="Transparent"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" MinWidth="0" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0" Margin="0,0,0,5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Margin="6,0,0,3"
|
|
Foreground="{Binding Path=CustomViewInfo[CustomFieldStorage].ForegroundColor}"
|
|
Text="{Binding Subject}"
|
|
TextWrapping="NoWrap" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Margin="6,0,0,3"
|
|
Foreground="{Binding Path=CustomViewInfo[CustomFieldStorage].ForegroundColor}"
|
|
Text="{Binding Location}"
|
|
TextWrapping="Wrap" />
|
|
</Grid>
|
|
<dxschint:AppointmentImagesControl
|
|
Grid.Column="1"
|
|
Margin="0,0,4,0"
|
|
Orientation="Vertical"
|
|
SnapsToDevicePixels="True"
|
|
ViewInfo="{Binding}" />
|
|
<Image
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Width="20"
|
|
Height="20"
|
|
Margin="-4,-2,6,0"
|
|
VerticalAlignment="Top"
|
|
SnapsToDevicePixels="True"
|
|
Source="/BeWoPlaner;component/Ressources/Icons/HistoryDisabled.png"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage], Converter={StaticResource AptToServRecsIconVisibilityConverter}}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
<!-- Endregion -->
|
|
|
|
<!-- Region Horizontal (Monatsanzeige, etc.) -->
|
|
<!-- HorizontalAppointmentTemplate -->
|
|
<ControlTemplate x:Key="{dxscht:SchedulerViewThemeKey ResourceKey=HorizontalAppointmentTemplate, IsThemeIndependent=true}" TargetType="{x:Type dxschint:VisualHorizontalAppointmentControl}">
|
|
<dxschint:AppointmentColorConvertControl
|
|
x:Name="clrConvCtrl"
|
|
ControlColor="{Binding Path=ViewInfo.CustomViewInfo[CustomFieldStorage].BackgroundColor.GradientStops[0].Color, RelativeSource={RelativeSource TemplatedParent}}"
|
|
SnapsToDevicePixels="True">
|
|
<dxschint:AppointmentColorConvertControl.BaseColors>
|
|
<dxschint:ColorCollection>
|
|
<dxschint:ColorDefinition Name="ColorDefinition_MiddleBorderGradient" Value="#FFE4E4E4" />
|
|
</dxschint:ColorCollection>
|
|
</dxschint:AppointmentColorConvertControl.BaseColors>
|
|
<dxschint:AppointmentColorConvertControl.BaseBrushColors>
|
|
<dxschint:ColorCollection>
|
|
<dxschint:ColorDefinition Name="ColorDefinition_BackBorder" Value="#FFBABABA" />
|
|
<dxschint:ColorDefinition Name="ColorDefinition_AppointmentSelection" Value="#FF7A7A7A" />
|
|
</dxschint:ColorCollection>
|
|
</dxschint:AppointmentColorConvertControl.BaseBrushColors>
|
|
<Grid
|
|
x:Name="PART_ToolTipContainer"
|
|
dxsch:SchedulerControl.HitTestType="AppointmentContent"
|
|
dxsch:SchedulerControl.SelectableIntervalViewInfo="{TemplateBinding ViewInfo}">
|
|
<ToolTipService.ToolTip>
|
|
<ToolTip
|
|
Content="{TemplateBinding ViewInfo}"
|
|
ContentTemplate="{Binding ViewInfo.View.AppointmentToolTipContentTemplate, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}"
|
|
Visibility="{Binding ViewInfo.View.AppointmentToolTipVisibility, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource ToolTipVisibilityConverter}}" />
|
|
</ToolTipService.ToolTip>
|
|
<dxschint:AppointmentBorder
|
|
x:Name="back"
|
|
Background="{Binding Path=ViewInfo.CustomViewInfo, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource AppointmentBorderZusageConverter}}"
|
|
DefaultCornerRadius="4"
|
|
Opacity="1"
|
|
ViewInfo="{TemplateBinding ViewInfo}">
|
|
<dxschint:AppointmentBorder
|
|
Background="{Binding Path=ViewInfo.CustomViewInfo[CustomFieldStorage].BackgroundColor, RelativeSource={RelativeSource TemplatedParent}}"
|
|
DefaultBorderThickness="1"
|
|
DefaultCornerRadius="3"
|
|
DefaultMargin="1"
|
|
ViewInfo="{TemplateBinding ViewInfo}">
|
|
<dxschint:AppointmentBorder
|
|
x:Name="AppointmentBorder"
|
|
Background="Transparent"
|
|
DefaultCornerRadius="2"
|
|
DefaultMargin="0"
|
|
ViewInfo="{TemplateBinding ViewInfo}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Width="10"
|
|
HorizontalAlignment="Left"
|
|
CornerRadius="4,0,0,4"
|
|
SnapsToDevicePixels="True">
|
|
<Border.Background>
|
|
<MultiBinding Converter="{StaticResource EmployeeBrushConverter}">
|
|
<Binding
|
|
Path="AllItems"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
<Binding Path="ViewInfo.CustomViewInfo" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type dxschint:AppointmentBorder}}" />
|
|
<Binding
|
|
Mode="TwoWay"
|
|
Path="IsEmployeeBrushVisible"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
</MultiBinding>
|
|
</Border.Background>
|
|
</Border>
|
|
<Border
|
|
Grid.Column="1"
|
|
Background="Transparent"
|
|
SnapsToDevicePixels="True" />
|
|
<!-- TODO: Mehrere Farben für Ressourcen anzeigen -->
|
|
<Border
|
|
Grid.Column="2"
|
|
Width="10"
|
|
HorizontalAlignment="Right"
|
|
CornerRadius="0,4,4,0"
|
|
SnapsToDevicePixels="True">
|
|
<Border.Background>
|
|
<MultiBinding Converter="{StaticResource DickbuttConverter}">
|
|
<Binding
|
|
Path="AllItems"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
<Binding Path="ViewInfo.CustomViewInfo" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type dxschint:AppointmentBorder}}" />
|
|
</MultiBinding>
|
|
</Border.Background>
|
|
</Border>
|
|
</Grid>
|
|
</dxschint:AppointmentBorder>
|
|
</dxschint:AppointmentBorder>
|
|
</dxschint:AppointmentBorder>
|
|
<Grid x:Name="ContentContainer" Margin="0,0,0,3">
|
|
<ContentPresenter
|
|
x:Name="PART_Content"
|
|
Grid.Row="0"
|
|
Margin="3,0,3,0"
|
|
Content="{TemplateBinding ViewInfo}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
|
</Grid>
|
|
<!-- Rahmen bei ausgewähltem Termin -->
|
|
<dxschint:AppointmentBorder
|
|
x:Name="Selection"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
BorderBrush="Black"
|
|
DefaultBorderThickness="2"
|
|
DefaultCornerRadius="4"
|
|
ViewInfo="{TemplateBinding ViewInfo}"
|
|
Visibility="{Binding ViewInfo.Selected, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource boolToVisibilityConverter}}" />
|
|
<Rectangle
|
|
Width="5"
|
|
HorizontalAlignment="Left"
|
|
dxsch:SchedulerControl.HitTestType="AppointmentResizingLeftEdge"
|
|
dxsch:SchedulerControl.SelectableIntervalViewInfo="{TemplateBinding ViewInfo}"
|
|
Cursor="SizeWE"
|
|
Fill="Transparent"
|
|
IsHitTestVisible="True"
|
|
Visibility="{Binding ViewInfo.CanResizeStart, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource boolToVisibilityConverter}}" />
|
|
<Rectangle
|
|
Width="5"
|
|
HorizontalAlignment="Right"
|
|
dxsch:SchedulerControl.HitTestType="AppointmentResizingRightEdge"
|
|
dxsch:SchedulerControl.SelectableIntervalViewInfo="{TemplateBinding ViewInfo}"
|
|
Cursor="SizeWE"
|
|
Fill="Transparent"
|
|
IsHitTestVisible="True"
|
|
Visibility="{Binding Path=ViewInfo.CanResizeEnd, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource boolToVisibilityConverter}}" />
|
|
</Grid>
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="DraggedStates">
|
|
<VisualState x:Name="NotDragged">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="back"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="1"
|
|
Duration="0:0:0.25" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="ContentContainer"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="1"
|
|
Duration="0:0:0.25" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="Selection"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="1"
|
|
Duration="0:0:0.25" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="Dragged">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="back"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="0.2"
|
|
Duration="0:0:0.25" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="ContentContainer"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="0.2"
|
|
Duration="0:0:0.25" />
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="Selection"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
To="0.2"
|
|
Duration="0:0:0.25" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</dxschint:AppointmentColorConvertControl>
|
|
</ControlTemplate>
|
|
|
|
<!-- HorizontalAppointmentContentTemplate SameDay, WeekView und TimelineView -->
|
|
<DataTemplate x:Key="{dxscht:SchedulerViewThemeKey ResourceKey=HorizontalAppointmentSameDayContentTemplate, IsThemeIndependent=true}">
|
|
<dxschint:HorizontalAppointmentContentPanel
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
ClipToBounds="True">
|
|
<Grid Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type dxschint:HorizontalAppointmentContentPanel}, Mode=FindAncestor}}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<dxschint:HorizontalAppointmentStartClockControl
|
|
Grid.Column="0"
|
|
Margin="11,6,0,0"
|
|
VerticalAlignment="Top"
|
|
Foreground="Black"
|
|
ViewInfo="{Binding}" />
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Margin="0,6,0,0"
|
|
Foreground="Black"
|
|
Text="-" />
|
|
<dxschint:HorizontalAppointmentEndClockControl
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Margin="0,6,0,0"
|
|
VerticalAlignment="Top"
|
|
Foreground="Black"
|
|
ViewInfo="{Binding}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="4"
|
|
Margin="11,6,0,0"
|
|
VerticalAlignment="Center"
|
|
dxschint:VerticalAppointmentContentPanel.AlwaysOnNewRow="True"
|
|
Foreground="{Binding Path=CustomViewInfo[CustomFieldStorage].ForegroundColor}"
|
|
Text="{Binding Subject}"
|
|
TextWrapping="Wrap" />
|
|
|
|
<dxschint:AppointmentImagesControl
|
|
Grid.Row="0"
|
|
Grid.Column="4"
|
|
Margin="0,4,10,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Orientation="Horizontal"
|
|
ViewInfo="{Binding}" />
|
|
<Image
|
|
Grid.Row="0"
|
|
Grid.Column="5"
|
|
Width="20"
|
|
Height="20"
|
|
Margin="0,4,10,0"
|
|
VerticalAlignment="Top"
|
|
SnapsToDevicePixels="True"
|
|
Source="/BeWoPlaner;component/Ressources/Icons/HistoryDisabled.png"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage], Converter={StaticResource AptToServRecsIconVisibilityConverter}}" />
|
|
</Grid>
|
|
</dxschint:HorizontalAppointmentContentPanel>
|
|
</DataTemplate>
|
|
|
|
<!-- HorizontalAppointmentContentTemplate wird auf ganztägige Termine und Abwesenheiten angewandt -->
|
|
<DataTemplate x:Key="{dxscht:SchedulerViewThemeKey ResourceKey=HorizontalAppointmentLongerThanADayContentTemplate, IsThemeIndependent=true}">
|
|
<Grid
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<dxschint:AppointmentContinueStartDateControl
|
|
Margin="12,4,0,2"
|
|
VerticalAlignment="Center"
|
|
Foreground="{Binding Path=CustomViewInfo[CustomFieldStorage].ForegroundColor}"
|
|
ViewInfo="{Binding}" />
|
|
<dxschint:HorizontalAppointmentStartClockControl
|
|
Margin="12,4,0,2"
|
|
VerticalAlignment="Center"
|
|
ViewInfo="{Binding}" />
|
|
</StackPanel>
|
|
<dxschint:HorizontalAppointmentContentPanel
|
|
Grid.Column="1"
|
|
Margin="2,0,2,0"
|
|
VerticalAlignment="Center"
|
|
ClipToBounds="True">
|
|
<dxschint:AppointmentImagesControl
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal"
|
|
ViewInfo="{Binding}" />
|
|
<TextBlock
|
|
Margin="8,2,0,0"
|
|
VerticalAlignment="Center"
|
|
Foreground="{Binding Path=CustomViewInfo[CustomFieldStorage].ForegroundColor}"
|
|
Text="{Binding Subject}"
|
|
TextWrapping="Wrap" />
|
|
</dxschint:HorizontalAppointmentContentPanel>
|
|
<StackPanel
|
|
Grid.Column="2"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<dxschint:HorizontalAppointmentEndClockControl
|
|
Margin="0,4,12,2"
|
|
VerticalAlignment="Center"
|
|
ViewInfo="{Binding}" />
|
|
<dxschint:AppointmentContinueEndDateControl
|
|
Margin="0,4,12,2"
|
|
VerticalAlignment="Center"
|
|
Foreground="{Binding Path=CustomViewInfo[CustomFieldStorage].ForegroundColor}"
|
|
ViewInfo="{Binding}" />
|
|
</StackPanel>
|
|
<Image
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
Width="17"
|
|
Height="17"
|
|
Margin="0,0,4,0"
|
|
VerticalAlignment="Center"
|
|
SnapsToDevicePixels="True"
|
|
Source="/BeWoPlaner;component/Ressources/Icons/HistoryDisabled.png"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage], Converter={StaticResource AptToServRecsIconVisibilityConverter}}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
<!-- Endregion -->
|
|
|
|
<!-- AppointmentToolTipContentTemplate -->
|
|
<DataTemplate x:Key="{dxscht:SchedulerViewThemeKey ResourceKey=AppointmentToolTipContentTemplate}">
|
|
<Grid>
|
|
<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" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,3,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
Grid.Column="0"
|
|
Orientation="Horizontal"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipTimeVisibility}">
|
|
<TextBlock Margin="0,0,4,0">
|
|
<TextBlock.Text>
|
|
<MultiBinding Converter="{StaticResource ToolTipTimeConverter}">
|
|
<Binding />
|
|
<Binding Path="CustomViewInfo[CustomFieldStorage]" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
MaxWidth="{Binding Path=ActualWidth, Source={x:Reference Scheduler}}"
|
|
Text="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTip}"
|
|
TextWrapping="Wrap" />
|
|
</Grid>
|
|
<Separator
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Height="1"
|
|
Background="DimGray"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipTrennstrichVisibility}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="0,0,3,0"
|
|
Text="Ressourcen:"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipResourcesVisibility}" />
|
|
<TextBlock
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Text="{Binding Path=CustomViewInfo, Converter={StaticResource AppointmentToolTipConverter}, ConverterParameter=Ressourcen}"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipResourcesVisibility}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="0,0,3,0"
|
|
Text="{t:Translate MitarbeiterPlural:}"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipEmployeesVisibility}" />
|
|
|
|
<ListView
|
|
Name="ToolTipEmployeeList"
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Margin="-6,-3,0,0"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
ItemsSource="{Binding Path=CustomViewInfo[CustomFieldStorage].EmployeeList}"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipEmployeesVisibility}">
|
|
<ListView.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel
|
|
Width="{Binding (FrameworkElement.ActualWidth), RelativeSource={RelativeSource AncestorType=ScrollContentPresenter}}"
|
|
MinWidth="{Binding ItemWidth, RelativeSource={RelativeSource Self}}"
|
|
ItemHeight="{Binding (ListView.View).ItemHeight, RelativeSource={RelativeSource AncestorType=ListView}}"
|
|
ItemWidth="{Binding (ListView.View).ItemWidth, RelativeSource={RelativeSource AncestorType=ListView}}" />
|
|
</ItemsPanelTemplate>
|
|
</ListView.ItemsPanel>
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Grid.Column="0"
|
|
Width="5"
|
|
Margin="0,0,3,0"
|
|
Background="{Binding Converter={StaticResource NichtNochEinConverter}}"
|
|
BorderBrush="DimGray"
|
|
BorderThickness="1"
|
|
Visibility="{Binding Path=DataContext.CustomViewInfo[CustomFieldStorage].ToolTipZusageVisibility, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListView}}}" />
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
Foreground="DimGray"
|
|
Text="{Binding Converter={StaticResource NichtNochEinConverter}, ConverterParameter=GibName}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
|
|
<TextBlock
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Margin="0,0,3,0"
|
|
Text="{markup:Translate Klienten:}"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipCustomersVisibility}" />
|
|
<TextBlock
|
|
Grid.Row="5"
|
|
Grid.Column="1"
|
|
Text="{Binding Path=CustomViewInfo, Converter={StaticResource AppointmentToolTipConverter}, ConverterParameter=Klienten}"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipCustomersVisibility}" />
|
|
<!-- Separator und "Angelegt von: " mit dem Namen des Originators -->
|
|
<Separator
|
|
Grid.Row="6"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Height="1"
|
|
Background="DimGray"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].CanBeEdited, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
<TextBlock
|
|
Grid.Row="7"
|
|
Grid.Column="0"
|
|
Margin="0,0,3,0"
|
|
Text="Angelegt von:"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].CanBeEdited, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
<TextBlock
|
|
Grid.Row="7"
|
|
Grid.Column="1"
|
|
Margin="0,0,3,0"
|
|
Text="{Binding Path=CustomViewInfo[CustomFieldStorage].Originator}"
|
|
Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].CanBeEdited, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
|
|
<!-- DragDropHoverTimeCellsStyle -->
|
|
<Style x:Key="{dxscht:SchedulerViewThemeKey ResourceKey=DragDropHoverTimeCellsStyle, IsThemeIndependent=true}" TargetType="{x:Type dxschint:VisualDraggedAppointmentControl}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Border
|
|
Margin="1,0,1,0"
|
|
Background="Black"
|
|
CornerRadius="5"
|
|
Opacity="0.25">
|
|
<Border
|
|
Margin="2"
|
|
Background="Black"
|
|
CornerRadius="4" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<!-- Endregion -->
|
|
|
|
<Style x:Key="MultiElementSelectionControlStyle" TargetType="{x:Type ListBoxItem}">
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
|
|
<Setter Property="Margin" Value="0,2,0,0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid>
|
|
<Border
|
|
MinHeight="25"
|
|
Background="{Binding Converter={StaticResource NewCalendarBackgroundConverter}}"
|
|
CornerRadius="5" />
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
MinHeight="25"
|
|
Background="#FF000000"
|
|
CornerRadius="5">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#26000000" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
|
|
<Border
|
|
x:Name="ItemContent"
|
|
MinHeight="25"
|
|
CornerRadius="5">
|
|
<Grid
|
|
Margin="5,3,5,3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
OpacityMask="{x:Null}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock
|
|
Grid.Column="0"
|
|
Margin="3,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Converter={StaticResource TextFromIDataContractConverter}}" />
|
|
<Border
|
|
Grid.Column="1"
|
|
Width="15"
|
|
Height="15"
|
|
Background="{Binding Path=FilterableBrush}"
|
|
CornerRadius="3" />
|
|
<Button
|
|
x:Name="btnRemoveElement"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="2"
|
|
Width="20"
|
|
Height="20"
|
|
Margin="3,0,0,0"
|
|
Click="BtnRemoveElement_Click"
|
|
Style="{DynamicResource CloseButtonStyle}"
|
|
Tag="{Binding}"
|
|
ToolTip="Element aus der Liste entfernen" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#33000000" />
|
|
<GradientStop Offset="1" Color="#66000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="ListBoxItem.IsSelected" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#99000000" />
|
|
<GradientStop Offset="1" Color="#CC000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="ListBoxItem.IsSelected" Value="True" />
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#99000000" />
|
|
<GradientStop Offset="1" Color="#B2000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</MultiTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="MitarbeiterTabItemStyle" TargetType="{x:Type TabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid>
|
|
<Border Name="Border" Margin="0">
|
|
<ContentPresenter
|
|
x:Name="ContentSite"
|
|
Margin="12,2,12,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True" />
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource EmployeeContentBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource EmployeeContentBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="KlientenTabItemStyle" TargetType="{x:Type TabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid>
|
|
<Border Name="Border" Margin="0">
|
|
<ContentPresenter
|
|
x:Name="ContentSite"
|
|
Margin="12,2,12,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True" />
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource CustomerContentBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource CustomerContentBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="RessourcenTabItemStyle" TargetType="{x:Type TabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid>
|
|
<Border Name="Border" Margin="0">
|
|
<ContentPresenter
|
|
x:Name="ContentSite"
|
|
Margin="12,2,12,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True" />
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource ResourceContentBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource ResourceContentBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</localView:BeWoView.Resources>
|
|
<Grid x:Name="GridRoot" Grid.IsSharedSizeScope="True">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid
|
|
x:Name="TopBarGrid"
|
|
Grid.Row="0"
|
|
Grid.Column="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
MinWidth="239"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<StackPanel.Width>
|
|
<MultiBinding Converter="{StaticResource WidthAdditionMultiConverter}">
|
|
<Binding ElementName="AuswahlGrid" Path="ActualWidth" />
|
|
<Binding ElementName="LeftExpanderButton" Path="ActualWidth" />
|
|
</MultiBinding>
|
|
</StackPanel.Width>
|
|
<Button
|
|
Width="24"
|
|
Height="24"
|
|
Margin="0,1,1,1"
|
|
Click="ButtonDayView_Click"
|
|
ToolTip="Tagesansicht">
|
|
<Image Source="/BeWoPlaner;component/Ressources/Icons/Calendar1Day24.png" />
|
|
</Button>
|
|
<Button
|
|
Width="24"
|
|
Height="24"
|
|
Margin="1"
|
|
Click="ButtonWorkWeekView_Click"
|
|
ToolTip="Arbeitswoche anzeigen">
|
|
<Image Source="/BeWoPlaner;component/Ressources/Icons/Calendar5Day24.png" />
|
|
</Button>
|
|
<Button
|
|
Width="24"
|
|
Height="24"
|
|
Margin="1"
|
|
Click="ButtonWeekView_Click"
|
|
ToolTip="Volle Woche anzeigen">
|
|
<Image Source="/BeWoPlaner;component/Ressources/Icons/Calendar7Day24.png" />
|
|
</Button>
|
|
<Button
|
|
Width="24"
|
|
Height="24"
|
|
Margin="1"
|
|
Click="ButtonMonthView_Click"
|
|
ToolTip="Monat anzeigen">
|
|
<Image Source="/BeWoPlaner;component/Ressources/Icons/Calendar31Day24.png" />
|
|
</Button>
|
|
<Button
|
|
Width="24"
|
|
Height="24"
|
|
Margin="1"
|
|
Click="ButtonTimelineView_Click"
|
|
ToolTip="Zeitleiste anzeigen">
|
|
<Image Source="/BeWoPlaner;component/Ressources/Icons/History24.png" />
|
|
</Button>
|
|
<Button
|
|
x:Name="ButtonDeleteAppointments"
|
|
Width="24"
|
|
Height="24"
|
|
Margin="1"
|
|
Click="ButtonDeleteAppointmentsInInterval_Click"
|
|
ToolTip="Termine löschen">
|
|
<Image Source="/BeWoPlaner;component/Ressources/Icons/Delete24.png" />
|
|
</Button>
|
|
<StackPanel
|
|
x:Name="DayViewOptions"
|
|
Orientation="Horizontal"
|
|
Visibility="Visible">
|
|
<Label VerticalAlignment="Center" Content="anz Tage:" />
|
|
<dxe:SpinEdit
|
|
x:Name="SpinEditDayViewDayCount"
|
|
Width="50"
|
|
Height="23"
|
|
VerticalAlignment="Center"
|
|
AllowNullInput="False"
|
|
EditValueChanged="SpinEditDayViewDayCount_EditValueChanged"
|
|
IsFloatValue="False"
|
|
LostFocus="SpinEditDayViewDayCount_OnLostFocus"
|
|
MaxValue="100" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
x:Name="TimelineViewOptions"
|
|
Orientation="Horizontal"
|
|
Visibility="Collapsed">
|
|
<Label VerticalAlignment="Center" Content="anz Tage:" />
|
|
<dxe:SpinEdit
|
|
x:Name="SpinEditTimelineViewDayCount"
|
|
Width="50"
|
|
Height="23"
|
|
VerticalAlignment="Center"
|
|
AllowNullInput="False"
|
|
EditValueChanged="SpinEditTimelineViewDayCount_EditValueChanged"
|
|
IsFloatValue="False"
|
|
LostFocus="SpinEditTimelineViewDayCount_OnLostFocus"
|
|
MaxValue="100" />
|
|
</StackPanel>
|
|
<Button
|
|
Width="24"
|
|
Height="24"
|
|
Margin="5,1,1,1"
|
|
Click="ReloadButton_OnClick"
|
|
ToolTip="Kalender aktualisieren">
|
|
<Button.Template>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Grid>
|
|
<Image x:Name="imgDisabled" Source="..\..\Ressources\Icons\SymbolRefresh32Disabled.png" />
|
|
<Image
|
|
x:Name="imgEnabled"
|
|
Opacity="0"
|
|
Source="..\..\Ressources\Icons\SymbolRefresh32.png" />
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter TargetName="imgEnabled" Property="Opacity" Value="1" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
</Button>
|
|
<Button
|
|
Width="24"
|
|
Height="24"
|
|
Margin="5,1,1,1"
|
|
Click="ExportButton_OnClick"
|
|
ToolTip="Exportieren"
|
|
Visibility="Collapsed" />
|
|
</StackPanel>
|
|
<Grid
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Margin="6,0,0,0"
|
|
VerticalAlignment="Center">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<CheckBox
|
|
x:Name="MitarbeiterfarbenEinAusCheckBox"
|
|
Grid.Column="0"
|
|
Checked="MitarbeiterfarbenEinAusCheckBox_OnChecked"
|
|
Content="{markup:Translate Mitarbeiterfarben}"
|
|
IsChecked="{Binding Path=IsEmployeeBrushVisible, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type view:NewSchedulerView}}, Mode=TwoWay}"
|
|
Unchecked="MitarbeiterfarbenEinAusCheckBox_OnChecked" />
|
|
<CheckBox
|
|
x:Name="AbwesenheitenEinAusCheckBox"
|
|
Grid.Column="1"
|
|
Margin="10,0,0,0"
|
|
Checked="AbwesenheitenEinAusCheckBox_OnChecked"
|
|
Content="Abwesenheiten"
|
|
IsChecked="{Binding Path=IsAbsenceTimeVisible, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type view:NewSchedulerView}}, Mode=TwoWay}"
|
|
Unchecked="AbwesenheitenEinAusCheckBox_OnChecked" />
|
|
<CheckBox
|
|
x:Name="ShowTasksCheckBox"
|
|
Grid.Column="2"
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Click="ShowTasksCheckBox_OnClick"
|
|
Content="Aufgaben" />
|
|
<TextBlock
|
|
Grid.Column="3"
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
IsEnabled="{Binding Enabled, UpdateSourceTrigger=PropertyChanged}">
|
|
<Hyperlink
|
|
IsEnabled="{Binding Enabled, UpdateSourceTrigger=PropertyChanged}"
|
|
NavigateUri="#"
|
|
RequestNavigate="ShowAppointmentRequests">
|
|
<TextBlock Text="{Binding Requests, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<CheckBox
|
|
x:Name="ShowPrivateAppointmentsCheckBox"
|
|
Grid.Column="4"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Click="ShowPrivateAppointmentsCheckBox_OnClick"
|
|
Content="Nur private Termine anzeigen" />
|
|
</Grid>
|
|
<Border
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
Width="{Binding ElementName=RightExpanderButton, Path=ActualWidth}" />
|
|
<Border
|
|
Grid.Row="0"
|
|
Grid.Column="4"
|
|
Width="{Binding ElementName=DateNavigator, Path=ActualWidth}">
|
|
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Hyperlink NavigateUri="#" RequestNavigate="PrintCalendar">
|
|
<TextBlock>Drucken</TextBlock>
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</Border>
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="A" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="A" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid x:Name="ObjectSelectionGrid" Grid.Column="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="ZeigeNurMeineTermineCheckBox"
|
|
Grid.Row="0"
|
|
Margin="3,3,3,3"
|
|
Checked="NurMeineTermineEinAusCheckBox_OnChecked"
|
|
Content="Nur meine Termine anzeigen"
|
|
IsChecked="{Binding Path=ZeigeNurMeineTermine, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
|
Unchecked="NurMeineTermineEinAusCheckBox_OnChecked" />
|
|
<UniformGrid
|
|
x:Name="AuswahlGrid"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="270"
|
|
Columns="1"
|
|
Rows="2">
|
|
<TabControl x:Name="TabControl" SelectionChanged="Selector_OnSelectionChanged">
|
|
<TabItem
|
|
x:Name="MitarbeiterTabItem"
|
|
Header="{t:Translate MitarbeiterPlural}"
|
|
Style="{StaticResource MitarbeiterTabItemStyle}">
|
|
<Grid x:Name="MitarbeiterTabGrid">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="AlleMitarbeiterCB"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
Click="AlleMitarbeiterCB_OnClick"
|
|
Content="Alle auswählen" />
|
|
<CheckBox
|
|
x:Name="TeamMembersCheckBox"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Click="MyTeamsCheckBox_OnClick"
|
|
Content="Meine Teams" />
|
|
<ToggleButton
|
|
x:Name="MeinTB"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Width="36"
|
|
Height="17"
|
|
Margin="3"
|
|
Checked="MeinTB_OnChecked"
|
|
Style="{StaticResource LupenToggleButtonStyle}"
|
|
Unchecked="MeinTB_OnChecked" />
|
|
<Grid
|
|
x:Name="MitarbeiterSuchGrid"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Margin="0,1,0,3"
|
|
Background="Black"
|
|
Visibility="Collapsed">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label
|
|
Grid.Column="0"
|
|
Content="Suche:"
|
|
Foreground="White" />
|
|
<TextBox
|
|
x:Name="MitarbeiterSuchTextBox"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
VerticalContentAlignment="Center"
|
|
TextChanged="TextBoxEmployees_OnTextChanged" />
|
|
</Grid>
|
|
<ListView
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Margin="0"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
ItemsSource="{Binding Path=GefilterteMitarbeiter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
|
PreviewMouseRightButtonDown="ListView_PreviewMouseRightButtonDown">
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ListViewItem}">
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
|
|
<Setter Property="Margin" Value="0,2,2,0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid>
|
|
<Border
|
|
MinHeight="25"
|
|
Background="Transparent"
|
|
CornerRadius="5" />
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
MinHeight="25"
|
|
Background="#FF000000"
|
|
CornerRadius="5">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#26000000" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
<Border
|
|
x:Name="ItemContent"
|
|
MinHeight="25"
|
|
CornerRadius="5">
|
|
<Grid
|
|
Margin="5,3,5,3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
OpacityMask="{x:Null}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<CheckBox
|
|
VerticalAlignment="Center"
|
|
Checked="ListItemCheckedEvent"
|
|
Content="{Binding Path=DetailDescription}"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="11"
|
|
Foreground="#FFD2D2D2"
|
|
PreviewMouseLeftButtonDown="MitarbeiterListe_OnClick"
|
|
Unchecked="ListItemCheckedEvent">
|
|
<CheckBox.IsChecked>
|
|
<MultiBinding Converter="{StaticResource CheckBoxConverter}" ConverterParameter="Mitarbeiter">
|
|
<Binding Mode="OneWay" Path="EmployeeOid" />
|
|
<Binding
|
|
Mode="TwoWay"
|
|
Path="SelectedEmployees"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
</MultiBinding>
|
|
</CheckBox.IsChecked>
|
|
|
|
</CheckBox>
|
|
<Border
|
|
Grid.Column="1"
|
|
Width="15"
|
|
Height="15"
|
|
Background="{Binding Path=FilterableBrush}"
|
|
CornerRadius="3" />
|
|
<Button
|
|
x:Name="btn_showEmployeeInformation"
|
|
Grid.Column="2"
|
|
Width="15"
|
|
Height="15"
|
|
Margin="5,0,5,0"
|
|
Click="btn_showEmployeeInformation_Click"
|
|
Content="i"
|
|
FontFamily="Microsoft Sans Serif"
|
|
Visibility="{Binding Converter={StaticResource InformationButtonVisibilityConverter}}" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#33000000" />
|
|
<GradientStop Offset="1" Color="#66000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="ListBoxItem.IsSelected" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#70000000" />
|
|
<GradientStop Offset="1" Color="#BB000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="ListBoxItem.IsSelected" Value="True" />
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#70000000" />
|
|
<GradientStop Offset="1" Color="#B2000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</MultiTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
</ListView>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem
|
|
x:Name="KlientenTabItem"
|
|
Header="{markup:Translate Klienten}"
|
|
Style="{StaticResource KlientenTabItemStyle}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="AlleKlientenCB"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
HorizontalContentAlignment="Center"
|
|
Click="AlleKlientennCB_OnClick"
|
|
Content="Alle auswählen" />
|
|
<CheckBox
|
|
x:Name="NurMeineKlientenCB"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
HorizontalContentAlignment="Center"
|
|
Click="NurEigeneKlientenAnzeigen"
|
|
Content="{markup:Translate Nur meine Klienten}"
|
|
IsThreeState="False" />
|
|
<ToggleButton
|
|
x:Name="MeinTB2"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Width="36"
|
|
Height="17"
|
|
Margin="3"
|
|
Checked="MeinTB2_OnChecked"
|
|
Style="{StaticResource LupenToggleButtonStyle}"
|
|
Unchecked="MeinTB2_OnChecked" />
|
|
<Grid
|
|
x:Name="KlientenSuchGrid"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Margin="0,1,0,3"
|
|
Background="Black"
|
|
Visibility="Collapsed">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label
|
|
Grid.Column="0"
|
|
Content="Suche:"
|
|
Foreground="White" />
|
|
<TextBox
|
|
x:Name="KlientenSuchTextBox"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
VerticalContentAlignment="Center"
|
|
TextChanged="TextBoxCustomers_OnTextChanged" />
|
|
</Grid>
|
|
</Grid>
|
|
<ListView
|
|
Grid.Row="1"
|
|
Margin="0"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
ItemsSource="{Binding Path=GefilterteKlienten}">
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ListViewItem}">
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
|
|
<Setter Property="Margin" Value="0,2,2,0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid>
|
|
<Border
|
|
MinHeight="25"
|
|
Background="Transparent"
|
|
CornerRadius="5" />
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
MinHeight="25"
|
|
Background="#FF000000"
|
|
CornerRadius="5">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#26000000" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
<Border
|
|
x:Name="ItemContent"
|
|
MinHeight="25"
|
|
CornerRadius="5">
|
|
<Grid
|
|
Margin="5,3,5,3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
OpacityMask="{x:Null}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<CheckBox
|
|
VerticalAlignment="Center"
|
|
Checked="ListItemCheckedEvent"
|
|
Content="{Binding Path=DetailDescription}"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="#FFD2D2D2"
|
|
PreviewMouseDown="KlientenListe_OnClick"
|
|
Unchecked="ListItemCheckedEvent">
|
|
<CheckBox.IsChecked>
|
|
<MultiBinding Converter="{StaticResource CheckBoxConverter}" ConverterParameter="Klienten">
|
|
<Binding Mode="OneWay" Path="CustomerOid" />
|
|
<Binding
|
|
Mode="TwoWay"
|
|
Path="SelectedCustomers"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
</MultiBinding>
|
|
</CheckBox.IsChecked>
|
|
</CheckBox>
|
|
|
|
<Button
|
|
x:Name="btn_showCustomerInformation"
|
|
Grid.Column="1"
|
|
Width="15"
|
|
Height="15"
|
|
Margin="5,0,5,0"
|
|
Click="btn_showCustomerInformation_Click"
|
|
Content="i"
|
|
FontFamily="Microsoft Sans Serif"
|
|
Visibility="{Binding Converter={StaticResource InformationButtonVisibilityConverter}}" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#33000000" />
|
|
<GradientStop Offset="1" Color="#66000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="ListBoxItem.IsSelected" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#99000000" />
|
|
<GradientStop Offset="1" Color="#CC000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="ListBoxItem.IsSelected" Value="True" />
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="ItemBorder" Property="OpacityMask">
|
|
<Setter.Value>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#99000000" />
|
|
<GradientStop Offset="1" Color="#B2000000" />
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</MultiTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
</ListView>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem
|
|
x:Name="RessourcenTabItem"
|
|
Header="Ressourcen"
|
|
Style="{StaticResource RessourcenTabItemStyle}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="AlleRessourcenCB"
|
|
Grid.Row="0"
|
|
Margin="3"
|
|
Click="AlleRessourcenCB_OnClick"
|
|
Content="Alle auswählen" />
|
|
<TreeView
|
|
Grid.Row="1"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
ItemContainerStyle="{StaticResource SupportConceptTreeViewStyle}"
|
|
ItemsSource="{Binding Path=Category2ResourcesDictionary, Mode=OneWay}">
|
|
<TreeView.ItemTemplate>
|
|
<HierarchicalDataTemplate ItemsSource="{Binding Path=Value}">
|
|
<Border Height="23" BorderBrush="{x:Null}">
|
|
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
|
|
<CheckBox
|
|
Margin="2,0,3,0"
|
|
Click="RessourcenKategorieCB_OnClick"
|
|
Tag="{Binding Path=Value}" />
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontWeight="Bold"
|
|
Text="{Binding Path=Key}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<HierarchicalDataTemplate.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border
|
|
Height="23"
|
|
Margin="1"
|
|
BorderBrush="{Binding Color}"
|
|
BorderThickness="0,0,0,0">
|
|
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
|
|
<CheckBox
|
|
Checked="ListItemCheckedEvent"
|
|
PreviewMouseDown="RessourcenTV_OnClick"
|
|
Unchecked="ListItemCheckedEvent">
|
|
<CheckBox.IsChecked>
|
|
<MultiBinding
|
|
Converter="{StaticResource CheckBoxConverter}"
|
|
ConverterParameter="Ressourcen"
|
|
NotifyOnSourceUpdated="True"
|
|
UpdateSourceTrigger="PropertyChanged">
|
|
<Binding Mode="OneWay" Path="ResourceOid" />
|
|
<Binding
|
|
Mode="TwoWay"
|
|
Path="SelectedResources"
|
|
RelativeSource="{RelativeSource FindAncestor,
|
|
AncestorType={x:Type view:NewSchedulerView}}"
|
|
UpdateSourceTrigger="PropertyChanged" />
|
|
</MultiBinding>
|
|
</CheckBox.IsChecked>
|
|
</CheckBox>
|
|
<Rectangle
|
|
Width="10"
|
|
Height="10"
|
|
Margin="1,0,1,0"
|
|
VerticalAlignment="Center"
|
|
Fill="{Binding Color, Converter={StaticResource StringBrushConverter}}"
|
|
Stroke="Black"
|
|
StrokeThickness="1" />
|
|
<TextBlock VerticalAlignment="Center" Text="{Binding Path=Name}" />
|
|
</StackPanel>
|
|
</Border>
|
|
</DataTemplate>
|
|
</HierarchicalDataTemplate.ItemTemplate>
|
|
</HierarchicalDataTemplate>
|
|
</TreeView.ItemTemplate>
|
|
</TreeView>
|
|
</Grid>
|
|
</TabItem>
|
|
</TabControl>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Margin="0,3,0,0"
|
|
Header="Ausgewählte Elemente"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<ListBox
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch"
|
|
Background="Transparent"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemContainerStyle="{DynamicResource MultiElementSelectionControlStyle}"
|
|
ItemsSource="{Binding Path=SelectedItems}">
|
|
<ListBox.Template>
|
|
<ControlTemplate TargetType="{x:Type ListBox}">
|
|
<Border
|
|
x:Name="Bd"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
SnapsToDevicePixels="True">
|
|
<ScrollViewer
|
|
Padding="{TemplateBinding Padding}"
|
|
Focusable="False"
|
|
HorizontalScrollBarVisibility="Disabled">
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</ScrollViewer>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</ListBox.Template>
|
|
</ListBox>
|
|
</GroupBox>
|
|
<Button
|
|
Grid.Row="1"
|
|
Height="23"
|
|
Margin="30,0,5,0"
|
|
HorizontalAlignment="Stretch"
|
|
Click="AuswahlAufhebenClick"
|
|
Content="Auswahl aufheben" />
|
|
</Grid>
|
|
</UniformGrid>
|
|
</Grid>
|
|
<StackPanel
|
|
x:Name="FilterCheckBoxenStackPanel"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Vertical">
|
|
<CheckBox
|
|
x:Name="MitarbeiterEbenenCheckBox"
|
|
Margin="0,3,0,3"
|
|
Checked="ListItemCheckedEvent"
|
|
Content="{markup:Translate Nur Mitarbeiter}"
|
|
IsThreeState="False"
|
|
SnapsToDevicePixels="True"
|
|
Unchecked="ListItemCheckedEvent">
|
|
<CheckBox.LayoutTransform>
|
|
<RotateTransform Angle="270" CenterX="0.5" CenterY="0.5" />
|
|
</CheckBox.LayoutTransform>
|
|
</CheckBox>
|
|
<CheckBox
|
|
x:Name="KlientenEbenenCheckBox"
|
|
Margin="0,0,0,3"
|
|
Checked="ListItemCheckedEvent"
|
|
Content="{markup:Translate Nur Klienten}"
|
|
IsThreeState="False"
|
|
SnapsToDevicePixels="True"
|
|
Unchecked="ListItemCheckedEvent">
|
|
<CheckBox.LayoutTransform>
|
|
<RotateTransform Angle="270" CenterX="0.5" CenterY="0.5" />
|
|
</CheckBox.LayoutTransform>
|
|
</CheckBox>
|
|
<CheckBox
|
|
x:Name="RessourcenEbenenCheckBox"
|
|
Margin="0,0,0,3"
|
|
Checked="ListItemCheckedEvent"
|
|
Content="Nur Ressourcen"
|
|
IsThreeState="False"
|
|
SnapsToDevicePixels="True"
|
|
Unchecked="ListItemCheckedEvent">
|
|
<CheckBox.LayoutTransform>
|
|
<RotateTransform Angle="270" CenterX="0.5" CenterY="0.5" />
|
|
</CheckBox.LayoutTransform>
|
|
</CheckBox>
|
|
</StackPanel>
|
|
<ToggleButton
|
|
x:Name="LeftExpanderButton"
|
|
Grid.Column="1"
|
|
Width="23"
|
|
Height="23"
|
|
Margin="3"
|
|
Click="LeftExpanderClick"
|
|
Style="{StaticResource VerticalExpanderLookAlikeToggleBotton}" />
|
|
|
|
<!-- SchedulerControl -->
|
|
<dxsch:SchedulerControl
|
|
x:Name="Scheduler"
|
|
Grid.Column="2"
|
|
VerticalAlignment="Stretch"
|
|
dx:ThemeManager.ThemeName="Office2010Black"
|
|
ActiveViewType="WorkWeek"
|
|
AllowAppointmentCreate="AllowAppointmentCreateEvent"
|
|
AllowAppointmentDelete="AllowAppointmentAenderung"
|
|
AllowAppointmentDrag="AllowAppointmentAenderung"
|
|
AllowAppointmentDragBetweenResources="AllowAppointmentAenderung"
|
|
AllowAppointmentEdit="AllowAppointmentAenderung"
|
|
AllowAppointmentResize="AllowAppointmentAenderung"
|
|
AppointmentDrag="Scheduler_OnAppointmentDrag"
|
|
AppointmentDrop="Scheduler_OnAppointmentDrop"
|
|
AppointmentViewInfoCustomizing="Scheduler_AppointmentViewInfoCustomizing"
|
|
EditAppointmentFormShowing="Scheduler_EditAppointmentFormShowing"
|
|
EditRecurrentAppointmentFormShowing="SchedulerControl_EditRecurrentAppointmentFormShowing"
|
|
FormCustomizationUsingMVVMLocal="False"
|
|
GroupType="None"
|
|
InitNewAppointment="Scheduler_InitNewAppointment"
|
|
InplaceEditorShowing="Scheduler_OnInplaceEditorShowing"
|
|
PopupMenuShowing="Scheduler_PopupMenuShowing">
|
|
<dxsch:SchedulerControl.DayView>
|
|
<dxsch:DayView AppointmentToolTipContentTemplate="{StaticResource {dxscht:SchedulerViewThemeKey ResourceKey=AppointmentToolTipContentTemplate}}" />
|
|
</dxsch:SchedulerControl.DayView>
|
|
<dxsch:SchedulerControl.WorkWeekView>
|
|
<dxsch:WorkWeekView AppointmentToolTipContentTemplate="{StaticResource {dxscht:SchedulerViewThemeKey ResourceKey=AppointmentToolTipContentTemplate}}" ShowFullWeek="True" />
|
|
</dxsch:SchedulerControl.WorkWeekView>
|
|
<dxsch:SchedulerControl.WeekView>
|
|
<dxsch:WeekView AppointmentToolTipContentTemplate="{StaticResource {dxscht:SchedulerViewThemeKey ResourceKey=AppointmentToolTipContentTemplate}}" />
|
|
</dxsch:SchedulerControl.WeekView>
|
|
<dxsch:SchedulerControl.MonthView>
|
|
<dxsch:MonthView AppointmentToolTipContentTemplate="{StaticResource {dxscht:SchedulerViewThemeKey ResourceKey=AppointmentToolTipContentTemplate}}" />
|
|
</dxsch:SchedulerControl.MonthView>
|
|
<dxsch:SchedulerControl.TimelineView>
|
|
<dxsch:TimelineView AppointmentToolTipContentTemplate="{StaticResource {dxscht:SchedulerViewThemeKey ResourceKey=AppointmentToolTipContentTemplate}}" />
|
|
</dxsch:SchedulerControl.TimelineView>
|
|
<dxsch:SchedulerControl.Storage>
|
|
<dxsch:SchedulerStorage
|
|
AppointmentDeleting="NewSchedulerStorage_AppointmentDeleting"
|
|
AppointmentsChanged="NewSchedulerStorage_AppointmentsChanged"
|
|
AppointmentsInserted="NewSchedulerStorage_AppointmentsInserted"
|
|
FetchAppointments="SchedulerStorage_OnFetchAppointments">
|
|
<dxsch:SchedulerStorage.AppointmentStorage>
|
|
<dxsch:AppointmentStorage>
|
|
<dxsch:AppointmentStorage.Mappings>
|
|
<dxsch:AppointmentMapping
|
|
AllDay="AllDay"
|
|
Description="Description"
|
|
End="End"
|
|
Label="LabelKey"
|
|
Location="Location"
|
|
RecurrenceInfo="RecurrenceInfo"
|
|
ReminderInfo="ReminderInfo"
|
|
ResourceId="ResourceId"
|
|
Start="Start"
|
|
Status="Status"
|
|
Subject="Subject"
|
|
Type="EventType" />
|
|
</dxsch:AppointmentStorage.Mappings>
|
|
</dxsch:AppointmentStorage>
|
|
</dxsch:SchedulerStorage.AppointmentStorage>
|
|
<dxsch:SchedulerStorage.ResourceStorage>
|
|
<dxsch:ResourceStorage>
|
|
<dxsch:ResourceStorage.Mappings>
|
|
<dxsch:ResourceMapping Caption="Caption" Id="Id" />
|
|
</dxsch:ResourceStorage.Mappings>
|
|
</dxsch:ResourceStorage>
|
|
</dxsch:SchedulerStorage.ResourceStorage>
|
|
</dxsch:SchedulerStorage>
|
|
</dxsch:SchedulerControl.Storage>
|
|
<dxsch:SchedulerControl.DefaultMenuCustomizations>
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxsch:SchedulerMenuItemName.NewAllDayEvent}" />
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxsch:SchedulerMenuItemName.NewRecurringAppointment}" />
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxsch:SchedulerMenuItemName.NewRecurringEvent}" />
|
|
|
|
<!--<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem Name="AufgabeAnlegenButtonItem" Content="{markup:Translate Neue Aufgabe}" ItemClick="AufgabeAnlegen_OnItemClick" />
|
|
</dxb:AddBarItemAction>-->
|
|
|
|
<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem
|
|
Name="MitarbeiterVerfuegbarkeitPruefenButtonItem"
|
|
Content="{markup:Translate Verfügbare Mitarbeiter anzeigen}"
|
|
ItemClick="MitarbeiterVerfuegbarkeitPruefenButtonItem_OnItemClick" />
|
|
</dxb:AddBarItemAction>
|
|
|
|
<dxb:BarButtonItemLink BarItemName="MitarbeiterVerfuegbarkeitPruefenButtonItem" />
|
|
</dxsch:SchedulerControl.DefaultMenuCustomizations>
|
|
<dxsch:SchedulerControl.AppointmentMenuCustomizations>
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxsch:SchedulerMenuItemName.RestoreOccurrence}" />
|
|
<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem
|
|
Name="RestoreAppointmentButtonItem"
|
|
Content="Serientermin wiederherstellen"
|
|
ItemClick="RestoreAppointmentButtonItem_OnItemClick" />
|
|
</dxb:AddBarItemAction>
|
|
<dxb:BarItemSeparator Name="ZusagenStackSeperatorTop" />
|
|
<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem
|
|
Name="ZusagenButtonItem"
|
|
Content="Zusagen"
|
|
ItemClick="ZusagenButtonItem_OnItemClick" />
|
|
</dxb:AddBarItemAction>
|
|
<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem
|
|
Name="MitVorbehaltButtonItem"
|
|
Content="Mit Vorbehalt zusagen"
|
|
ItemClick="MitVorbehaltButtonItem_OnItemClick" />
|
|
</dxb:AddBarItemAction>
|
|
<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem
|
|
Name="AbsagenButtonItem"
|
|
Content="Absagen"
|
|
ItemClick="AbsagenButtonItem_OnItemClick" />
|
|
</dxb:AddBarItemAction>
|
|
<dxb:BarItemSeparator Name="ZusagenStackSeperatorBottom" />
|
|
<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem
|
|
Name="ZeiterfassungButtonItem"
|
|
Content="{markup:Translate In Zeiterfassung übertragen}"
|
|
ItemClick="ZeiterfassungButtonItem_OnItemClick" />
|
|
</dxb:AddBarItemAction>
|
|
|
|
<dxb:AddBarItemAction>
|
|
<dxb:BarButtonItem
|
|
Name="MitarbeiterVerfuegbarkeitPruefenButtonItem2"
|
|
Content="{markup:Translate Verfügbare Mitarbeiter anzeigen}"
|
|
ItemClick="MitarbeiterVerfuegbarkeitPruefenButtonItem_OnItemClick" />
|
|
</dxb:AddBarItemAction>
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxsch:SchedulerMenuItemName.StatusSubMenu}" />
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxsch:SchedulerMenuItemName.LabelSubMenu}" />
|
|
<dxb:BarButtonItemLink BarItemName="ZeiterfassungButtonItem" />
|
|
<dxb:BarButtonItemLink BarItemName="MitarbeiterVerfuegbarkeitPruefenButtonItem2" />
|
|
</dxsch:SchedulerControl.AppointmentMenuCustomizations>
|
|
</dxsch:SchedulerControl>
|
|
|
|
|
|
<dxsch:DXSchedulerControlPrintAdapter
|
|
x:Name="PrintAdapter"
|
|
Grid.Column="0"
|
|
SchedulerControl="{Binding ElementName=Scheduler}" />
|
|
<ToggleButton
|
|
x:Name="RightExpanderButton"
|
|
Grid.Column="3"
|
|
Width="23"
|
|
Height="23"
|
|
Margin="3"
|
|
Click="RightExpanderClick"
|
|
Style="{StaticResource VerticalRightExpanderLookAlikeToggleBotton}" />
|
|
<dxe:DateNavigator
|
|
Name="DateNavigator"
|
|
Grid.Column="4"
|
|
VerticalAlignment="Stretch"
|
|
dx:ThemeManager.ThemeName="Office2010Black"
|
|
HighlightSpecialDates="True"
|
|
SelectedDatesChanged="DateNavigator_OnSelectedDatesChanged">
|
|
<dxe:DateNavigator.StyleSettings>
|
|
<dxsch:SchedulerDateNavigatorStyleSettings SchedulerControl="{Binding ElementName=Scheduler}" />
|
|
</dxe:DateNavigator.StyleSettings>
|
|
</dxe:DateNavigator>
|
|
</Grid>
|
|
|
|
<Border
|
|
x:Name="PopupContent"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Margin="0,-10,0,10" />
|
|
<Popup
|
|
x:Name="DeleteAppointmentsPopup"
|
|
Grid.Row="0"
|
|
Width="290"
|
|
Height="80"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="True">
|
|
<Grid Margin="2,2,2,2" Background="{StaticResource ControlBackground}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Height="24"
|
|
Margin="0,0,0,0"
|
|
Content="Termine löschen bis: " />
|
|
<dxe:DateEdit
|
|
x:Name="DeleteForGoodIntervalEndDateEdit"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Width="150"
|
|
Height="24"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Center"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,10,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button Click="DeleteAppointmentsForGood_Click" Content="OK" />
|
|
<Button
|
|
Margin="3,0,0,0"
|
|
Click="AbortDeletingAppointments_Click"
|
|
Content="Abbrechen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Popup>
|
|
</Grid>
|
|
</localView:BeWoView>
|