173 lines
8.5 KiB
XML
173 lines
8.5 KiB
XML
<dx:DXWindow
|
|
x:Class="BeWo.Scheduling.View.AppointmentRecurrenceEditView"
|
|
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:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduling"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Title="AppointmentRecurrenceEditView"
|
|
Width="507"
|
|
Height="Auto"
|
|
Background="{StaticResource ObjectEditBackgroundBrush}"
|
|
Closing="AppointmentRecurrenceEditView_OnClosing"
|
|
Loaded="AppointmentRecurrenceEditView_OnLoaded"
|
|
ResizeMode="NoResize"
|
|
SizeToContent="Height"
|
|
mc:Ignorable="d">
|
|
<Window.Resources>
|
|
<Style x:Key="RecurrenceInfoControlStyle" TargetType="dxsch:RecurrenceInfoControlBase">
|
|
<Setter Property="RecurrenceInfo" Value="{Binding RecurrenceInfo}" />
|
|
<Style.Triggers>
|
|
<Trigger Property="Visibility" Value="Collapsed">
|
|
<Setter Property="RecurrenceInfo" Value="{x:Null}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style x:Key="GroupBoxStyle" TargetType="{x:Type GroupBox}">
|
|
<Setter Property="BorderBrush" Value="#D5DFE5" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
<Grid SnapsToDevicePixels="true">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="6" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="6" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="6" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="3"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="4"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="4" />
|
|
<Border
|
|
x:Name="Header"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Padding="3,1,3,0"
|
|
SnapsToDevicePixels="True">
|
|
<ContentPresenter
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<ContentPresenter
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="{TemplateBinding Padding}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="3"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="4"
|
|
BorderBrush="Gray"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="4"
|
|
SnapsToDevicePixels="True">
|
|
<Border.OpacityMask>
|
|
<MultiBinding Converter="{StaticResource BorderGapMaskConverter}" ConverterParameter="7">
|
|
<Binding ElementName="Header" Path="ActualWidth" />
|
|
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
|
|
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
|
|
</MultiBinding>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Margin="5"
|
|
Header="Serienmuster"
|
|
Style="{StaticResource GroupBoxStyle}">
|
|
<DockPanel>
|
|
<dxsch:RecurrenceTypeControl
|
|
DockPanel.Dock="Left"
|
|
RecurrenceType="{Binding RecurrenceInfo.Type, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
RecurrenceTypes="{Binding AvailableRecurrenceTypes}" />
|
|
<StackPanel Orientation="Horizontal">
|
|
<Separator />
|
|
</StackPanel>
|
|
<StackPanel MinHeight="90">
|
|
<dxsch:DailyRecurrenceControl Style="{StaticResource RecurrenceInfoControlStyle}" Visibility="{Binding RecurrenceInfo.Type, Converter={dxsch:RecurrenceTypeToVisibilityConverter VisibleValue=Daily}}" />
|
|
<dxsch:WeeklyRecurrenceControl
|
|
FirstDayOfWeek="{Binding FirstDayOfWeek}"
|
|
Style="{StaticResource RecurrenceInfoControlStyle}"
|
|
Visibility="{Binding RecurrenceInfo.Type, Converter={dxsch:RecurrenceTypeToVisibilityConverter VisibleValue=Weekly}}" />
|
|
<dxsch:MonthlyRecurrenceControl Style="{StaticResource RecurrenceInfoControlStyle}" Visibility="{Binding RecurrenceInfo.Type, Converter={dxsch:RecurrenceTypeToVisibilityConverter VisibleValue=Monthly}}" />
|
|
<dxsch:YearlyRecurrenceControl
|
|
x:Name="YearlyRecurrence"
|
|
Style="{StaticResource RecurrenceInfoControlStyle}"
|
|
Visibility="{Binding RecurrenceInfo.Type, Converter={dxsch:RecurrenceTypeToVisibilityConverter VisibleValue=Yearly}}" />
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Margin="5"
|
|
Header="Serienende"
|
|
Style="{StaticResource GroupBoxStyle}">
|
|
<dxsch:RecurrenceRangeControl RecurrenceInfo="{Binding RecurrenceInfo}" />
|
|
</GroupBox>
|
|
<Grid
|
|
Grid.Row="2"
|
|
Margin="0"
|
|
VerticalAlignment="Bottom">
|
|
<Border
|
|
Height="40"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Background="#FF000000">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#33FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
<StackPanel
|
|
Height="40"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Width="80"
|
|
Height="25"
|
|
Margin="3"
|
|
Click="OkButton_Click"
|
|
Content="OK" />
|
|
<Button
|
|
Width="80"
|
|
Height="25"
|
|
Margin="3"
|
|
Click="CloseButton_OnClick"
|
|
Content="Abbrechen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</dx:DXWindow>
|