844 lines
50 KiB
XML
844 lines
50 KiB
XML
<Window
|
|
x:Class="BeWo.View.Detail.MailMergeWindow"
|
|
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:conv="clr-namespace:BeWo.Converter"
|
|
xmlns:detail="clr-namespace:BeWo.View.Detail"
|
|
x:Name="SerienbriefFenster"
|
|
Title="MailMergeWindow"
|
|
Width="750"
|
|
Height="530"
|
|
AllowsTransparency="True"
|
|
Background="Transparent"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterOwner"
|
|
WindowStyle="None">
|
|
<Window.Resources>
|
|
<!-- Region HilfeplanTemplate -->
|
|
<Style x:Key="SupportConceptMailMergeDetailStyle" 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 x:Name="PART_DeinGridIstNichtMeinGridIstMeinUngrid">
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
MinHeight="30"
|
|
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="30"
|
|
CornerRadius="5">
|
|
<Grid
|
|
Margin="5,3,5,3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
OpacityMask="{x:Null}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" MinWidth="250" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="cb1"
|
|
Grid.RowSpan="2"
|
|
Width="21"
|
|
Height="21"
|
|
Margin="3"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Checked="CheckBoxChecked"
|
|
Tag="{Binding}"
|
|
Unchecked="CheckBoxUnChecked">
|
|
<CheckBox.IsChecked>
|
|
<MultiBinding Converter="{StaticResource CollectionContainsTag2BoolConverter}">
|
|
<Binding ElementName="cb1" Path="Tag" />
|
|
<Binding Path="DataContext.SelectedForPrinting" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Window}}" />
|
|
</MultiBinding>
|
|
</CheckBox.IsChecked>
|
|
</CheckBox>
|
|
<TextBlock
|
|
x:Name="txtDetail1"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=DetailDescription}" />
|
|
<TextBlock
|
|
x:Name="txtDetail2"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="#FFA0A0A0"
|
|
Text="{Binding Path=AddressString}" />
|
|
<ListBox
|
|
x:Name="listBoxDetail3"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="2"
|
|
Margin="6,0,0,0"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="{Binding ForegroundBrush}"
|
|
IsHitTestVisible="False"
|
|
ItemsSource="{Binding Path=CostBearerDetailStrings}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBox}, Mode=FindAncestor}}" Text="{Binding}" />
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Path=IsArchived}" Value="True">
|
|
<Setter TargetName="txtDetail1" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail2" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="listBoxDetail3" Property="Foreground" Value="#FF808080" />
|
|
</DataTrigger>
|
|
<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>
|
|
<!-- EndRegion HilfeplanTemplate -->
|
|
|
|
|
|
<!-- Region KlientenTemplate -->
|
|
<Style x:Key="CustomerDetailStyle" 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
|
|
x:Name="ItemBorder"
|
|
MinHeight="30"
|
|
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="30"
|
|
CornerRadius="5">
|
|
<Grid
|
|
Margin="5,3,5,3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
OpacityMask="{x:Null}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="CustomerDetailColumn" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="cb2"
|
|
Grid.RowSpan="2"
|
|
Width="21"
|
|
Height="21"
|
|
Margin="3"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Checked="CheckBoxChecked"
|
|
Tag="{Binding}"
|
|
Unchecked="CheckBoxUnChecked">
|
|
<CheckBox.IsChecked>
|
|
<MultiBinding Converter="{StaticResource CollectionContainsTag2BoolConverter}">
|
|
<Binding ElementName="cb2" Path="Tag" />
|
|
<Binding Path="DataContext.SelectedForPrinting" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Window}}" />
|
|
</MultiBinding>
|
|
</CheckBox.IsChecked>
|
|
</CheckBox>
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
x:Name="txtDetail1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=SimpleDescription}" />
|
|
<TextBlock
|
|
x:Name="txtDetail2"
|
|
Margin="6,0,0,0"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=DateOfBirthString}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
x:Name="txtDetail3"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="#FFA0A0A0"
|
|
Text="{Binding Path=AddressString}" />
|
|
</StackPanel>
|
|
<TextBlock
|
|
x:Name="txtDetail4"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Margin="16,0,0,0"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=CurrentEmployeeRole}" />
|
|
<TextBlock
|
|
x:Name="txtDetail5"
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Margin="16,0,0,0"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFA0A0A0"
|
|
Text="{Binding Path=MainAttendant}" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Path=IsArchived}" Value="True">
|
|
<Setter TargetName="txtDetail1" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail2" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail3" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail4" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail5" Property="Foreground" Value="#FF808080" />
|
|
</DataTrigger>
|
|
<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>
|
|
<!-- EndRegion KlientenTemplate -->
|
|
|
|
|
|
<!-- Region PersonenTemplate -->
|
|
<Style x:Key="PersonDetailStyle" 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
|
|
x:Name="ItemBorder"
|
|
MinHeight="30"
|
|
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="30"
|
|
CornerRadius="5">
|
|
<Grid
|
|
Margin="5,3,5,3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
OpacityMask="{x:Null}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="personDetailColumn1" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="personDetailColumn2" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="personDetailColumn3" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="cb3"
|
|
Grid.RowSpan="2"
|
|
Width="21"
|
|
Height="21"
|
|
Margin="3"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Checked="CheckBoxChecked"
|
|
Tag="{Binding}"
|
|
Unchecked="CheckBoxUnChecked">
|
|
<CheckBox.IsChecked>
|
|
<MultiBinding Converter="{StaticResource CollectionContainsTag2BoolConverter}">
|
|
<Binding ElementName="cb3" Path="Tag" />
|
|
<Binding Path="DataContext.SelectedForPrinting" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Window}}" />
|
|
</MultiBinding>
|
|
</CheckBox.IsChecked>
|
|
</CheckBox>
|
|
<TextBlock
|
|
x:Name="txtDetail1"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=DetailDescription}" />
|
|
<TextBlock
|
|
x:Name="txtDetail2"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="#FFA0A0A0"
|
|
Text="{Binding Path=AddressString}" />
|
|
<TextBlock
|
|
x:Name="txtDetail3"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Margin="10,0,10,0"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=Function}" />
|
|
<TextBlock
|
|
x:Name="txtDetail4"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="3"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=ContactSummaryInfo}"
|
|
Visibility="Collapsed" />
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="3"
|
|
Orientation="Vertical">
|
|
<TextBlock
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2">
|
|
<TextBlock.Visibility>
|
|
<Binding Path="Communication1">
|
|
<Binding.Converter>
|
|
<conv:ObjectVisibilityConverter />
|
|
</Binding.Converter>
|
|
</Binding>
|
|
</TextBlock.Visibility>
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}Tel.: {0}">
|
|
<Binding Path="Communication1" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
<TextBlock
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2">
|
|
<TextBlock.Visibility>
|
|
<Binding Path="Communication2">
|
|
<Binding.Converter>
|
|
<conv:ObjectVisibilityConverter />
|
|
</Binding.Converter>
|
|
</Binding>
|
|
</TextBlock.Visibility>
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}Mobil: {0}">
|
|
<Binding Path="Communication2" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
<TextBlock
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="EMail: ">
|
|
<TextBlock.Visibility>
|
|
<Binding Path="Communication3">
|
|
<Binding.Converter>
|
|
<conv:ObjectVisibilityConverter />
|
|
</Binding.Converter>
|
|
</Binding>
|
|
</TextBlock.Visibility>
|
|
<TextBlock
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2">
|
|
<TextBlock.Text>
|
|
<Binding Path="Communication3" />
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
</TextBlock>
|
|
<TextBlock
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2">
|
|
<TextBlock.Visibility>
|
|
<Binding Path="Communication4">
|
|
<Binding.Converter>
|
|
<conv:ObjectVisibilityConverter />
|
|
</Binding.Converter>
|
|
</Binding>
|
|
</TextBlock.Visibility>
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}Fax: {0}">
|
|
<Binding Path="Communication4" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Path=IsArchived}" Value="True">
|
|
<Setter TargetName="txtDetail1" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail2" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail3" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail4" Property="Foreground" Value="#FF808080" />
|
|
</DataTrigger>
|
|
<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>
|
|
<!-- EndRegion PersonenTemplate -->
|
|
|
|
|
|
<!-- Region OrganisationenTemplate -->
|
|
<Style x:Key="OrganisationDetailStyle" 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
|
|
x:Name="ItemBorder"
|
|
MinHeight="30"
|
|
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="30"
|
|
CornerRadius="5">
|
|
<Grid
|
|
Margin="5,3,5,3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
OpacityMask="{x:Null}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox
|
|
x:Name="cb4"
|
|
Grid.RowSpan="2"
|
|
Width="21"
|
|
Height="21"
|
|
Margin="3"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Checked="CheckBoxChecked"
|
|
Tag="{Binding}"
|
|
Unchecked="CheckBoxUnChecked">
|
|
<CheckBox.IsChecked>
|
|
<MultiBinding Converter="{StaticResource CollectionContainsTag2BoolConverter}">
|
|
<Binding ElementName="cb4" Path="Tag" />
|
|
<Binding Path="DataContext.SelectedForPrinting" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Window}}" />
|
|
</MultiBinding>
|
|
</CheckBox.IsChecked>
|
|
</CheckBox>
|
|
<TextBlock
|
|
x:Name="txtDetail1"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFFFFFFF"
|
|
Text="{Binding Path=DetailDescription}" />
|
|
<TextBlock
|
|
x:Name="txtDetail2"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=AddressString}" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Path=IsArchived}" Value="True">
|
|
<Setter TargetName="txtDetail1" Property="Foreground" Value="#FF808080" />
|
|
<Setter TargetName="txtDetail2" Property="Foreground" Value="#FF808080" />
|
|
</DataTrigger>
|
|
<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>
|
|
<!-- EndRegion OrganisationenTemplate -->
|
|
|
|
|
|
<detail:ListBoxItemStyleSelector
|
|
x:Key="StyleSelector"
|
|
CustomerStyle="{StaticResource CustomerDetailStyle}"
|
|
OrganisationStyle="{StaticResource OrganisationDetailStyle}"
|
|
PersonStyle="{StaticResource PersonDetailStyle}"
|
|
SupportConceptStyle="{StaticResource SupportConceptMailMergeDetailStyle}" />
|
|
</Window.Resources>
|
|
<GroupBox Header="Serienbrief drucken..." Style="{DynamicResource MainContentGroupBoxWithoutMaximizeBtnStyle}">
|
|
<Grid Margin="0,3,0,0" Background="{DynamicResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
Content="Vorlage" />
|
|
<controls:NullItemComboBox
|
|
x:Name="VorlagenComboBox"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
DisplayMemberPath="FileName"
|
|
ItemsSource="{Binding Path=WordTemplates, UpdateSourceTrigger=PropertyChanged}"
|
|
SelectedIndex="0" />
|
|
</Grid>
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Margin="0,-5,0,0"
|
|
Content="Suche"
|
|
FontSize="14" />
|
|
<TextBox
|
|
x:Name="TextboxSearch"
|
|
Width="300"
|
|
Height="20"
|
|
MinWidth="90"
|
|
Margin="3,-5,0,0"
|
|
BorderThickness="0,0,0,0"
|
|
Foreground="Black"
|
|
TabIndex="0"
|
|
Template="{DynamicResource SearchTextBoxTemplate}" />
|
|
<TextBlock
|
|
Margin="3,0,0,0"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="Black"
|
|
Text="{Binding Path=Items.Count, Converter={StaticResource StringFormatConverter}, ConverterParameter=Suchergebnisse: \{0\}, ElementName=ObjectListBox}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
x:Name="SortPanel"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="6,2,0,0"
|
|
HorizontalAlignment="Left"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="Black"
|
|
Text="Sortiert nach" />
|
|
<controls:NullItemComboBox
|
|
x:Name="SortCombo"
|
|
MinWidth="100"
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
DisplayMemberPath="DisplayName"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
SelectionChanged="SortCombo_SelectionChanged"
|
|
Style="{DynamicResource SortComboBox}" />
|
|
<ToggleButton
|
|
x:Name="SortDirectionToggleButton"
|
|
Click="SortDirectionToggleButton_Click"
|
|
Style="{DynamicResource SortDirectionToggleButtonStyle}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<CheckBox
|
|
x:Name="ChkShowArchived"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Unchecked="ChkShowArchived_OnUnchecked" />
|
|
<CheckBox
|
|
x:Name="ChkShowOnlyMyObjects"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Click="ChkShowOnlyMyObjects_OnClick"
|
|
Unchecked="ChkShowArchived_OnUnchecked" />
|
|
</StackPanel>
|
|
<ListBox
|
|
x:Name="ObjectListBox"
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
ItemContainerStyleSelector="{StaticResource StyleSelector}">
|
|
<ListBox.ItemsSource>
|
|
<MultiBinding Converter="{StaticResource FilterDCConverter}">
|
|
<Binding />
|
|
<Binding ElementName="TextboxSearch" Path="Text" />
|
|
<Binding ElementName="ChkShowArchived" Path="IsChecked" />
|
|
<Binding Path="CustomFilter">
|
|
<Binding.RelativeSource>
|
|
<RelativeSource AncestorType="{x:Type detail:MailMergeWindow}" Mode="FindAncestor" />
|
|
</Binding.RelativeSource>
|
|
</Binding>
|
|
</MultiBinding>
|
|
</ListBox.ItemsSource>
|
|
</ListBox>
|
|
<CheckBox
|
|
x:Name="AlleWaehlenCheckBox"
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
Checked="AlleWaehlenCheckBox_OnChecked"
|
|
Content="Alle auswählen"
|
|
Unchecked="AlleWehlenCheckBox_OnUnchecked" />
|
|
<StackPanel
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Margin="3"
|
|
Click="PreviewBtnClick"
|
|
Content="Vorschau"
|
|
IsEnabled="{Binding SelectedForPrinting.Count, Converter={StaticResource CollectionCountToBoolConverter}}" />
|
|
<Button
|
|
Margin="3"
|
|
Click="PrintBtnClick"
|
|
Content="Drucken"
|
|
IsEnabled="{Binding SelectedForPrinting.Count, Converter={StaticResource CollectionCountToBoolConverter}}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="5"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Margin="3"
|
|
Command="Close"
|
|
Content="Abbrechen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Window>
|