1516 lines
96 KiB
XML
1516 lines
96 KiB
XML
<Application
|
|
x:Class="BeWo.BeWoApp"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:bewo="clr-namespace:BeWo"
|
|
xmlns:conv="clr-namespace:BeWo.Converter"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:microsoftWindowsThemes1="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
|
|
xmlns:shared="clr-namespace:BS.Shared.DataContracts;assembly=BS.Shared"
|
|
xmlns:sharedCompact="clr-namespace:BS.Shared.DataContracts.Compact;assembly=BS.Shared"
|
|
ShutdownMode="OnExplicitShutdown"
|
|
StartupUri="MainWindow.xaml"
|
|
mc:Ignorable="d">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" />
|
|
<ResourceDictionary Source="Styles\OrangeBlack.xaml" />
|
|
<ResourceDictionary Source="Styles\AnalysisExpanderStyle.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<!--<conv:AssessmentSheetCategory2VisibilityConverter x:Key="AssessmentSheetCategory2VisibilityConverter" />-->
|
|
<conv:EnumToDescriptionConverter x:Key="enumToDescriptionConverter" />
|
|
<DataTemplate x:Key="whithAttributeItemTemplate">
|
|
<TextBlock Text="{Binding Converter={StaticResource enumToDescriptionConverter}}" />
|
|
</DataTemplate>
|
|
<conv:BoolNullCheckConverter x:Key="BoolNullCheckConverter" />
|
|
<conv:BoolScaleTransformConverter x:Key="BoolScaleTransformConverter" />
|
|
<conv:BoolVisibilityConverter x:Key="BoolVisibilityConverter" />
|
|
<conv:BoolVisibilityMultiConverter x:Key="BoolVisibilityMultiConverter" />
|
|
<conv:BoolVisibilityHiddenConverter x:Key="BoolVisibilityHiddenConverter" />
|
|
<conv:BooleanAndVisibilityMultiConverter x:Key="BooleanAndVisibilityMultiConverter" />
|
|
<conv:BooleanOrVisibilityMultiConverter x:Key="BooleanOrVisibilityMultiConverter" />
|
|
<conv:CellColorConverter x:Key="CellColorConverter" />
|
|
<conv:ClientType2VisibilityConverter x:Key="ClientType2VisibilityConverter" />
|
|
<conv:CollectionContainsTag2BoolConverter x:Key="CollectionContainsTag2BoolConverter" />
|
|
<conv:CollectionCountToBoolConverter x:Key="CollectionCountToBoolConverter" />
|
|
<conv:CostRatePeriodValueConverter x:Key="CostRatePeriodValueConverter" />
|
|
<conv:DataContract2StringConverter x:Key="DataContract2StringConverter" />
|
|
<conv:Date2CalendarWeekStringConverter x:Key="Date2CalendarWeekStringConverter" />
|
|
<conv:DateConverter x:Key="DateConverter" />
|
|
<conv:DateNullValueToEmptyStringConverter x:Key="DateNullValueToEmptyStringConverter" />
|
|
<conv:DecimalConverter x:Key="DecimalConverter" />
|
|
<conv:DownloadURLConverter x:Key="DownloadURLConverter" />
|
|
<conv:FileAttachmentTypeConverter x:Key="FileAttachmentTypeConverter" />
|
|
<conv:FilterDCConverter x:Key="FilterDCConverter" />
|
|
<conv:IListT2DataTableConverter x:Key="IListT2DataTableConverter" />
|
|
<conv:IndexBoolConverter x:Key="IndexBoolConverter" />
|
|
<conv:IsLastItemToBoolMultiConverter x:Key="IsLastItemToBoolMultiConverter" />
|
|
<conv:Int2DecimalConverter x:Key="Int2DecimalConverter" />
|
|
<conv:NodeType2IconPathConverter x:Key="NodeType2IconPathConverter" />
|
|
<conv:NumberSmaller0Converter x:Key="NumberSmaller0Converter" />
|
|
<conv:ObjectBoolConverter x:Key="ObjectBoolConverter" />
|
|
<conv:TestDebugConverter x:Key="TestDebugConverter" />
|
|
<conv:ObjectVisibilityConverter x:Key="ObjectVisibilityConverter" />
|
|
<conv:ObjectVisibilityMultiConverter x:Key="ObjectVisibilityMultiConverter" />
|
|
<conv:OneWayToSourceSwitch x:Key="OneWayToSourceSwitch" />
|
|
<conv:PersonBackgroundBrushConverter x:Key="PersonBackgroundBrushConverter" />
|
|
<conv:ReverseValueEqualsParamVisibilityConverter x:Key="ReverseValueEqualsParamVisibilityConverter" />
|
|
<conv:SettlementDCPrintURLConverter x:Key="SettlementDCPrintURLConverter" />
|
|
<conv:StringBrushConverter x:Key="StringBrushConverter" />
|
|
<conv:StringFormatConverter x:Key="StringFormatConverter" />
|
|
<conv:StringFormatMulitConverter x:Key="StringFormatMulitConverter" />
|
|
<conv:SupportConceptOverviewDCConverter x:Key="SupportConceptOverviewDCConverter" />
|
|
<conv:UserRightTypeConverter x:Key="UserRightTypeConverter" />
|
|
<conv:ValueEqualsParamVisibilityConverter x:Key="ValueEqualsParamVisibilityConverter" />
|
|
<conv:ReactivationRight2VisibilityConverter x:Key="ReactivationRight2VisibilityConverter" />
|
|
<conv:ArchiveRight2VisibilityConverter x:Key="ArchiveRight2VisibilityConverter" />
|
|
<conv:BoolReverseConverter x:Key="BoolReverseConverter" />
|
|
<conv:BoolEnabledToTabitemBackgroundConverter x:Key="BoolEnabledToTabitemBackgroundConverter" />
|
|
<conv:ValueConverterGroup x:Key="IsNewToTabitemBackground">
|
|
<conv:BoolReverseConverter />
|
|
<conv:BoolEnabledToTabitemBackgroundConverter />
|
|
</conv:ValueConverterGroup>
|
|
<conv:BoolToParameterReturnConverter x:Key="IsNewToTooltip" />
|
|
<conv:IndividualGoalMassnahmeUncheckPreventConverter x:Key="IndividualGoalMassnahmeUncheckPreventConverter" />
|
|
<conv:Rights2DefaultBooleanConverter x:Key="Rights2DefaultBooleanConverter" />
|
|
<conv:CollectionCountToVisibilityConverter x:Key="CollectionCountToVisibilityConverter" />
|
|
<conv:DeleteForGoodRight2VisibilityConverter x:Key="DeleteForGoodRight2VisibilityConverter" />
|
|
<conv:AnonymizationRight2VisibilityConverter x:Key="AnonymizationRight2VisibilityConverter" />
|
|
<conv:GkvState2StringConverter x:Key="GkvState2StringConverter" />
|
|
<conv:RadioBoolToIntConverter x:Key="RadioBoolToIntConverter" />
|
|
<conv:EnumTranslationConverter x:Key="EnumTranslationConverter" />
|
|
<conv:TooltipTextConverter x:Key="TooltipTextConverter" />
|
|
<conv:NewlineConverter x:Key="NewlineConverter" />
|
|
<conv:AddressToStringConverter x:Key="AddressToStringConverter" />
|
|
<conv:ComparisonConverter x:Key="ComparisonConverter" />
|
|
<conv:IconToImageSourceConverter x:Key="IconToImageSourceConverter" />
|
|
<conv:StringEmptyBoolConverter x:Key="StringEmptyBoolConverter" />
|
|
|
|
<conv:ValidationConverter x:Key="ValidationConverter" />
|
|
<conv:ValueConverterGroup x:Key="Validation2BrushConverter">
|
|
<conv:ValidationConverter />
|
|
<conv:ValidationToBrushConverter />
|
|
</conv:ValueConverterGroup>
|
|
<conv:ValueConverterGroup x:Key="Validation2TooltipConverter">
|
|
<conv:ValidationConverter />
|
|
<conv:ValidationToTooltipConverter />
|
|
</conv:ValueConverterGroup>
|
|
|
|
<conv:UserPermission2BoolConverter x:Key="UserPermission2BoolConverter" />
|
|
<conv:ValueConverterGroup x:Key="UserPermission2ReverseBoolConverter">
|
|
<conv:UserPermission2BoolConverter />
|
|
<conv:BoolReverseConverter />
|
|
</conv:ValueConverterGroup>
|
|
<conv:ValueConverterGroup x:Key="UserPermission2VisibleConverter">
|
|
<conv:UserPermission2BoolConverter />
|
|
<conv:BoolVisibilityCollapsedConverter />
|
|
</conv:ValueConverterGroup>
|
|
|
|
<Style x:Key="SupportConceptDetailStyle" 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" MinWidth="400" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Image
|
|
Grid.RowSpan="2"
|
|
Width="Auto"
|
|
Height="30"
|
|
Margin="0,0,5,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="{Binding Path=IconPath}" />
|
|
<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>
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="3"
|
|
Margin="0,0,3,0"
|
|
VerticalAlignment="Center"
|
|
Visibility="{Binding Path=IsArchived, Converter={StaticResource ArchiveRight2VisibilityConverter}, ConverterParameter=SupportConcept}">
|
|
<Hyperlink
|
|
Click="Hyperlink_Hilfeplan_AusArchivHolen_Click"
|
|
Foreground="#FFFFFFFF"
|
|
Tag="{Binding}"
|
|
TargetName="_NewWindow">
|
|
Aus Archiv holen
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="4"
|
|
Margin="0,0,3,0"
|
|
VerticalAlignment="Center"
|
|
Visibility="{Binding Path=IsDeleted, Converter={StaticResource ReactivationRight2VisibilityConverter}, ConverterParameter=SupportConcept}">
|
|
<Hyperlink
|
|
Click="Hyperlink_Hilfeplan_Reaktivieren_Click"
|
|
Foreground="#FFFFFFFF"
|
|
Tag="{Binding}"
|
|
TargetName="_NewWindow">
|
|
Reaktivieren
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<Button
|
|
x:Name="btnOpenServiceRecordView"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="5"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="0,0,2,0"
|
|
Click="BtnOpenServiceRecordView_Click"
|
|
Style="{DynamicResource TransparentButtonStyle}"
|
|
Tag="{Binding}"
|
|
ToolTip="{markup:Translate In Zeiterfassung öffnen}">
|
|
<Image Source="Ressources\Icons\HistoryDisabled.png" />
|
|
</Button>
|
|
</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>
|
|
<DataTrigger Binding="{Binding Path=IsDeleted}" Value="True">
|
|
<Setter TargetName="txtDetail1" Property="Foreground" Value="#FFF97E7B" />
|
|
<Setter TargetName="txtDetail2" Property="Foreground" Value="#FFF97E7B" />
|
|
<Setter TargetName="listBoxDetail3" Property="Foreground" Value="#FFF97E7B" />
|
|
</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>
|
|
|
|
<Style x:Key="SupportConceptSearchStyle" 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="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Image
|
|
Grid.RowSpan="2"
|
|
Width="Auto"
|
|
Height="30"
|
|
Margin="0,0,5,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="{Binding Path=IconPath}" />
|
|
<TextBlock
|
|
x:Name="txtDetail1"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Text="{Binding Path=DetailDescription}" />
|
|
<ListBox
|
|
x:Name="listBoxDetail3"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="-2,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="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>
|
|
<Style x:Key="MainContentGroupBoxStyle" TargetType="{x:Type GroupBox}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
<Grid SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="15" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="15" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
Grid.RowSpan="3"
|
|
Background="#FF202020"
|
|
CornerRadius="3,1,0,3" />
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Background="#FF202020"
|
|
CornerRadius="0,1,0,3" />
|
|
<Path
|
|
Grid.Column="1"
|
|
Data="M 0,0 L 20,20 H 0 Z"
|
|
Fill="#FF202020"
|
|
StrokeThickness="0" />
|
|
<Border
|
|
x:Name="Header"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,0,0"
|
|
Padding="10,0,3,0"
|
|
VerticalAlignment="Center"
|
|
Background="{x:Null}">
|
|
<ContentPresenter
|
|
Margin="5,-3,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Content="{TemplateBinding Header}"
|
|
ContentSource="Header"
|
|
ContentStringFormat="{TemplateBinding HeaderStringFormat}"
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
RecognizesAccessKey="True"
|
|
RenderTransformOrigin="0,0.5"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
TextElement.FontSize="22">
|
|
<ContentPresenter.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</ContentPresenter.RenderTransform>
|
|
</ContentPresenter>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.RowSpan="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Padding="5,5,5,5">
|
|
<ContentPresenter
|
|
Margin="0,0,0,0"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<Path
|
|
x:Name="isDirtyShape"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="18.21"
|
|
Height="17.336"
|
|
Margin="0,0,41.007,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Data="M8.0969173,7.7938912 L7.3260856,1.6313261E-55 10.960733,0.056791361 9.8816968,7.8372078 17.130865,4.505709 18.209901,7.969982 10.336028,9.4841573 16.015164,15.065028 13.005222,17.336183 9.0298264,10.44961 4.7503484,17.141891 1.9107803,14.614571 7.6195467,9.5947088 4.3790577E-47,7.8281079 1.0589099,4.5910004 z"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
StrokeThickness="0">
|
|
<Path.Fill>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFFB6F0E" />
|
|
<GradientStop Offset="1" Color="#FF8C400A" />
|
|
</LinearGradientBrush>
|
|
</Path.Fill>
|
|
<Path.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="0" ScaleY="0" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Path.RenderTransform>
|
|
</Path>
|
|
<ToggleButton
|
|
x:Name="togglebutton_maximise"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="1"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3,6,3,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Checked="Togglebutton_maximise_Checked"
|
|
IsChecked="{Binding Source={x:Static bewo:BeWoApp.MainControl}, Path=IsMaximized}"
|
|
Style="{DynamicResource MaximizeButtonStyle}"
|
|
Unchecked="Togglebutton_maximise_Unchecked" />
|
|
<!-- ToggleButton Checked="togglebutton_maximise_Checked" Unchecked="togglebutton_maximise_Unchecked" Margin="3,6,3,0" x:Name="togglebutton_maximise" Grid.Column="0" Grid.Row="0" Width="25" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right" Style="{DynamicResource MaximizeButtonStyle}" Grid.ColumnSpan="1" Grid.RowSpan="2"/ -->
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Foreground" Value="{DynamicResource MainGroupBoxForegroundBrush}" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
|
|
<Setter Property="FontSize" Value="11" />
|
|
</Style>
|
|
|
|
<Style x:Key="MainContentGroupBoxWithoutMaximizeBtnStyle" TargetType="{x:Type GroupBox}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
<Grid
|
|
x:Name="frameGrid"
|
|
Background="Transparent"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="15" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="15" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
Grid.RowSpan="3"
|
|
Background="#FF202020"
|
|
CornerRadius="3,1,0,3"
|
|
MouseLeftButtonDown="FrameLeftMouseDown" />
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Background="#FF202020"
|
|
CornerRadius="0,1,0,3"
|
|
MouseLeftButtonDown="FrameLeftMouseDown" />
|
|
<Path
|
|
Grid.Column="1"
|
|
Data="M 0,0 L 20,20 H 0 Z"
|
|
Fill="#FF202020"
|
|
StrokeThickness="0" />
|
|
<Border
|
|
x:Name="Header"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,0,0"
|
|
Padding="10,0,3,0"
|
|
VerticalAlignment="Center"
|
|
Background="{x:Null}">
|
|
<ContentPresenter
|
|
Margin="5,-3,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Content="{TemplateBinding Header}"
|
|
ContentSource="Header"
|
|
ContentStringFormat="{TemplateBinding HeaderStringFormat}"
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
RecognizesAccessKey="True"
|
|
RenderTransformOrigin="0,0.5"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
TextElement.FontSize="22">
|
|
<ContentPresenter.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</ContentPresenter.RenderTransform>
|
|
</ContentPresenter>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.RowSpan="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Padding="5,5,5,5"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<ContentPresenter
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<Path
|
|
x:Name="isDirtyShape"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="18.21"
|
|
Height="17.336"
|
|
Margin="0,0,41.007,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Data="M8.0969173,7.7938912 L7.3260856,1.6313261E-55 10.960733,0.056791361 9.8816968,7.8372078 17.130865,4.505709 18.209901,7.969982 10.336028,9.4841573 16.015164,15.065028 13.005222,17.336183 9.0298264,10.44961 4.7503484,17.141891 1.9107803,14.614571 7.6195467,9.5947088 4.3790577E-47,7.8281079 1.0589099,4.5910004 z"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
StrokeThickness="0">
|
|
<Path.Fill>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFFB6F0E" />
|
|
<GradientStop Offset="1" Color="#FF8C400A" />
|
|
</LinearGradientBrush>
|
|
</Path.Fill>
|
|
<Path.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="0" ScaleY="0" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Path.RenderTransform>
|
|
</Path>
|
|
<Button
|
|
x:Name="button_close"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3,3,3,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Command="ApplicationCommands.Close"
|
|
Style="{DynamicResource CloseButtonStyle}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Foreground" Value="{DynamicResource MainGroupBoxForegroundBrush}" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
|
|
<Setter Property="FontSize" Value="11" />
|
|
</Style>
|
|
|
|
|
|
<Style x:Key="MainContentGroupBoxWithMinimizeBtnStyle" TargetType="{x:Type GroupBox}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
<Grid
|
|
x:Name="frameGrid"
|
|
Background="Transparent"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="15" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="15" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
Grid.RowSpan="3"
|
|
Background="#FF202020"
|
|
CornerRadius="3,1,0,3"
|
|
MouseLeftButtonDown="FrameLeftMouseDown" />
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Background="#FF202020"
|
|
CornerRadius="0,1,0,3"
|
|
MouseLeftButtonDown="FrameLeftMouseDown" />
|
|
<Path
|
|
Grid.Column="1"
|
|
Data="M 0,0 L 20,20 H 0 Z"
|
|
Fill="#FF202020"
|
|
StrokeThickness="0" />
|
|
<Border
|
|
x:Name="Header"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,0,0"
|
|
Padding="10,0,3,0"
|
|
VerticalAlignment="Center"
|
|
Background="{x:Null}">
|
|
<ContentPresenter
|
|
Margin="5,-3,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Content="{TemplateBinding Header}"
|
|
ContentSource="Header"
|
|
ContentStringFormat="{TemplateBinding HeaderStringFormat}"
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
RecognizesAccessKey="True"
|
|
RenderTransformOrigin="0,0.5"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
TextElement.FontSize="22">
|
|
<ContentPresenter.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</ContentPresenter.RenderTransform>
|
|
</ContentPresenter>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.RowSpan="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Padding="5,5,5,5">
|
|
<ContentPresenter
|
|
Margin="0,0,0,0"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<Path
|
|
x:Name="isDirtyShape"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="18.21"
|
|
Height="17.336"
|
|
Margin="0,0,41.007,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Data="M8.0969173,7.7938912 L7.3260856,1.6313261E-55 10.960733,0.056791361 9.8816968,7.8372078 17.130865,4.505709 18.209901,7.969982 10.336028,9.4841573 16.015164,15.065028 13.005222,17.336183 9.0298264,10.44961 4.7503484,17.141891 1.9107803,14.614571 7.6195467,9.5947088 4.3790577E-47,7.8281079 1.0589099,4.5910004 z"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
StrokeThickness="0">
|
|
<Path.Fill>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFFB6F0E" />
|
|
<GradientStop Offset="1" Color="#FF8C400A" />
|
|
</LinearGradientBrush>
|
|
</Path.Fill>
|
|
<Path.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="0" ScaleY="0" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Path.RenderTransform>
|
|
</Path>
|
|
<Button
|
|
x:Name="button_close"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3,3,3,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Command="ApplicationCommands.Close"
|
|
Style="{DynamicResource MinimizeButtonStyle}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Foreground" Value="{DynamicResource MainGroupBoxForegroundBrush}" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
|
|
<Setter Property="FontSize" Value="11" />
|
|
</Style>
|
|
|
|
<Style x:Key="MainContentGroupBoxWithMinMaxCloseBtnStyle" TargetType="{x:Type GroupBox}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
<Grid
|
|
x:Name="frameGrid"
|
|
Background="Transparent"
|
|
SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="15" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="15" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
Grid.RowSpan="3"
|
|
Background="#FF202020"
|
|
CornerRadius="3,1,0,3"
|
|
MouseLeftButtonDown="FrameLeftMouseDown" />
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Background="#FF202020"
|
|
CornerRadius="0,1,0,3"
|
|
MouseLeftButtonDown="FrameLeftMouseDown" />
|
|
<Path
|
|
Grid.Column="1"
|
|
Data="M 0,0 L 20,20 H 0 Z"
|
|
Fill="#FF202020"
|
|
StrokeThickness="0" />
|
|
<Border
|
|
x:Name="Header"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,0,0"
|
|
Padding="10,0,3,0"
|
|
VerticalAlignment="Center"
|
|
Background="{x:Null}">
|
|
<ContentPresenter
|
|
Margin="5,-3,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Content="{TemplateBinding Header}"
|
|
ContentSource="Header"
|
|
ContentStringFormat="{TemplateBinding HeaderStringFormat}"
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
RecognizesAccessKey="True"
|
|
RenderTransformOrigin="0,0.5"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
TextElement.FontSize="22">
|
|
<ContentPresenter.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</ContentPresenter.RenderTransform>
|
|
</ContentPresenter>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.RowSpan="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Padding="5,5,5,5">
|
|
<ContentPresenter
|
|
Margin="0,0,0,0"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<Path
|
|
x:Name="isDirtyShape"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="18.21"
|
|
Height="17.336"
|
|
Margin="0,0,41.007,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Data="M8.0969173,7.7938912 L7.3260856,1.6313261E-55 10.960733,0.056791361 9.8816968,7.8372078 17.130865,4.505709 18.209901,7.969982 10.336028,9.4841573 16.015164,15.065028 13.005222,17.336183 9.0298264,10.44961 4.7503484,17.141891 1.9107803,14.614571 7.6195467,9.5947088 4.3790577E-47,7.8281079 1.0589099,4.5910004 z"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
StrokeThickness="0">
|
|
<Path.Fill>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFFB6F0E" />
|
|
<GradientStop Offset="1" Color="#FF8C400A" />
|
|
</LinearGradientBrush>
|
|
</Path.Fill>
|
|
<Path.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="0" ScaleY="0" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Path.RenderTransform>
|
|
</Path>
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Margin="3,3,3,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
|
|
<Button
|
|
x:Name="button_Minimize"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3,3,3,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Click="TogglebuttonChat_Minimize_Checked"
|
|
Style="{DynamicResource MinimizeFullyButtonStyle}" />
|
|
|
|
<ToggleButton
|
|
x:Name="button_Maximize"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3,3,3,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Checked="TogglebuttonChat_maximise_Checked"
|
|
Style="{DynamicResource MaximizeButtonStyle}"
|
|
Unchecked="TogglebuttonChat_maximise_Unchecked" />
|
|
|
|
<Button
|
|
x:Name="button_close"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3,3,3,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Command="ApplicationCommands.Close"
|
|
Style="{DynamicResource CloseButtonStyle}" />
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Foreground" Value="{DynamicResource MainGroupBoxForegroundBrush}" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
|
|
<Setter Property="FontSize" Value="11" />
|
|
</Style>
|
|
|
|
<Style x:Key="PopUpWindowStyle" TargetType="{x:Type GroupBox}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
<Grid SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="10" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
Grid.RowSpan="2"
|
|
Background="#FF202020"
|
|
CornerRadius="3,1,0,3" />
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Background="#FF202020"
|
|
CornerRadius="0,1,0,3" />
|
|
<Path
|
|
Grid.Column="1"
|
|
Data="M 0,0 L 10,10 H 0 Z"
|
|
Fill="#FF202020"
|
|
StrokeThickness="0" />
|
|
<Border
|
|
x:Name="Header"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,0,0"
|
|
Padding="10,0,3,0"
|
|
VerticalAlignment="Bottom"
|
|
Background="{x:Null}">
|
|
<ContentPresenter
|
|
Margin="5,0,0,3"
|
|
VerticalAlignment="Stretch"
|
|
Content="{TemplateBinding Header}"
|
|
ContentSource="Header"
|
|
ContentStringFormat="{TemplateBinding HeaderStringFormat}"
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
RecognizesAccessKey="True"
|
|
RenderTransformOrigin="0,0.5"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
TextElement.FontSize="16">
|
|
<ContentPresenter.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</ContentPresenter.RenderTransform>
|
|
</ContentPresenter>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.RowSpan="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Padding="5,5,5,5">
|
|
<ContentPresenter
|
|
Margin="0,0,0,0"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<Path
|
|
x:Name="isDirtyShape"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Width="18.21"
|
|
Height="17.336"
|
|
Margin="0,0,41.007,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Data="M8.0969173,7.7938912 L7.3260856,1.6313261E-55 10.960733,0.056791361 9.8816968,7.8372078 17.130865,4.505709 18.209901,7.969982 10.336028,9.4841573 16.015164,15.065028 13.005222,17.336183 9.0298264,10.44961 4.7503484,17.141891 1.9107803,14.614571 7.6195467,9.5947088 4.3790577E-47,7.8281079 1.0589099,4.5910004 z"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
StrokeThickness="0">
|
|
<Path.Fill>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFFB6F0E" />
|
|
<GradientStop Offset="1" Color="#FF8C400A" />
|
|
</LinearGradientBrush>
|
|
</Path.Fill>
|
|
<Path.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="0" ScaleY="0" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Path.RenderTransform>
|
|
</Path>
|
|
<Button
|
|
x:Name="button_close"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="1"
|
|
Width="20"
|
|
Height="20"
|
|
Margin="3,3,3,3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Command="ApplicationCommands.Close"
|
|
Style="{DynamicResource CloseButtonStyle}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Foreground" Value="{DynamicResource MainGroupBoxForegroundBrush}" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
|
|
<Setter Property="FontSize" Value="11" />
|
|
</Style>
|
|
<HierarchicalDataTemplate DataType="{x:Type shared:SupportConceptTreeNodeDC}" ItemsSource="{Binding Path=ChildNodes}">
|
|
<Grid Margin="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Image
|
|
Width="16"
|
|
Height="16"
|
|
Margin="0,0,3,0"
|
|
Source="{Binding Path=NodeType, Converter={StaticResource NodeType2IconPathConverter}}" />
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
Foreground="Black"
|
|
Text="{Binding Path=DetailDescription}" />
|
|
</Grid>
|
|
</HierarchicalDataTemplate>
|
|
<Style x:Key="ObjectComboBoxStyle" TargetType="{x:Type ComboBox}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="1" />
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ComboBox}">
|
|
<Border
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
SnapsToDevicePixels="True">
|
|
<Grid>
|
|
<Border x:Name="BorderBackground" />
|
|
<Border
|
|
x:Name="Border"
|
|
Background="{TemplateBinding Background}"
|
|
BorderThickness="2,2,2,2">
|
|
<Popup
|
|
x:Name="PART_Popup"
|
|
AllowsTransparency="True"
|
|
Focusable="False"
|
|
IsOpen="{TemplateBinding IsDropDownOpen}"
|
|
Placement="Bottom"
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
|
|
<microsoftWindowsThemes1:SystemDropShadowChrome
|
|
x:Name="Shdw"
|
|
MinWidth="{Binding Path=ActualWidth, ElementName=Border}"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
Color="#00FFFFFF">
|
|
<Border
|
|
x:Name="DropDownBorder"
|
|
Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
|
|
BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
|
|
BorderThickness="1,1,1,1">
|
|
<ScrollViewer>
|
|
<ItemsPresenter KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</ScrollViewer>
|
|
</Border>
|
|
</microsoftWindowsThemes1:SystemDropShadowChrome>
|
|
</Popup>
|
|
</Border>
|
|
<DockPanel>
|
|
<FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
|
|
<Border x:Name="SelectedItemBorder" Margin="{TemplateBinding Padding}">
|
|
<ContentPresenter
|
|
Margin="1,0,1,1"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
</DockPanel>
|
|
<ToggleButton
|
|
Width="Auto"
|
|
MinWidth="0"
|
|
MinHeight="0"
|
|
Margin="1,2,1,2"
|
|
ClickMode="Press"
|
|
Focusable="False"
|
|
IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Style="{DynamicResource ComboBoxTransparentButtonStyle}" />
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsSelectionBoxHighlighted" Value="True" />
|
|
<Condition Property="IsDropDownOpen" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
|
|
</MultiTrigger>
|
|
<Trigger Property="IsSelectionBoxHighlighted" Value="True">
|
|
<Setter TargetName="BorderBackground" Property="Background" Value="#80000000" />
|
|
</Trigger>
|
|
<Trigger Property="HasItems" Value="False">
|
|
<Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
|
</Trigger>
|
|
<Trigger Property="IsGrouping" Value="True">
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
|
|
</Trigger>
|
|
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="True">
|
|
<Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
|
|
<Setter TargetName="Shdw" Property="Color" Value="#71000000" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="ItemContainerStyle" Value="{DynamicResource ObjectComboBoxItemStyle}" />
|
|
</Style>
|
|
<Style x:Key="ObjectComboBoxItemStyle" TargetType="{x:Type ComboBoxItem}">
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
|
|
<Setter Property="Padding" Value="3,0,3,0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ComboBoxItem}">
|
|
<Border
|
|
x:Name="Bd"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
SnapsToDevicePixels="True">
|
|
<ContentPresenter
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ButtonFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle
|
|
Margin="2"
|
|
SnapsToDevicePixels="true"
|
|
Stroke="Black"
|
|
StrokeDashArray="1 2"
|
|
StrokeThickness="1" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="WarningButton" TargetType="{x:Type Button}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
|
<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Padding" Value="1" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Image
|
|
Width="16"
|
|
Height="16"
|
|
Source="Ressources\Icons\warning-16x16.png" />
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsKeyboardFocused" Value="true" />
|
|
<Trigger Property="ToggleButton.IsChecked" Value="true" />
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="#ADADAD" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<DataTemplate x:Key="CustomerComboBoxItemTemplate" DataType="{x:Type shared:SupportConceptTreeNodeDC}">
|
|
<Grid Margin="0,1,0,1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
Grid.RowSpan="3"
|
|
Grid.ColumnSpan="2"
|
|
MinHeight="30"
|
|
Margin="0,0,0,0"
|
|
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>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image
|
|
Width="Auto"
|
|
Height="20"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Source="Ressources\Icons\UserHomeMaleDisabled.png"
|
|
Visibility="{Binding Path=SupportConceptName, Converter={StaticResource ObjectVisibilityConverter}}" />
|
|
<TextBlock
|
|
x:Name="customerText"
|
|
Margin="3,2"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Tag="{Binding}"
|
|
Text="{Binding Path=CustomerName}"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
<TextBlock
|
|
x:Name="supportConceptText"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3,2"
|
|
VerticalAlignment="Center"
|
|
FontSize="12"
|
|
Foreground="{Binding Path=NodeForegroundBrush}"
|
|
Text="{Binding Path=SupportConceptName}" />
|
|
<TextBlock
|
|
x:Name="costBearerText"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3,2"
|
|
VerticalAlignment="Center"
|
|
FontSize="12"
|
|
Foreground="#FFA0A0A0"
|
|
Text="{Binding Path=CostBearerName}" />
|
|
<Button
|
|
Grid.Column="1"
|
|
Width="15"
|
|
Height="15"
|
|
Content="I"
|
|
Style="{DynamicResource WarningButton}"
|
|
Visibility="{Binding Path=IsCustomerWarningActive, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<Button.ToolTip>
|
|
<TextBlock Text="{Binding Path=CustomerWarning}" />
|
|
</Button.ToolTip>
|
|
</Button>
|
|
</Grid>
|
|
<DataTemplate.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>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
<ItemsPanelTemplate x:Key="CustomerComboBoxItemsPanelTemplate">
|
|
<StackPanel Background="{DynamicResource SupportConceptListBrush}" IsItemsHost="True" />
|
|
</ItemsPanelTemplate>
|
|
<DataTemplate x:Key="SupportConceptComboBoxItemTemplate" DataType="{x:Type sharedCompact:CompactSupportConceptDC}">
|
|
<Grid Margin="0,1,0,1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
Grid.RowSpan="3"
|
|
Grid.ColumnSpan="2"
|
|
MinHeight="30"
|
|
Margin="0,0,0,0"
|
|
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>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image
|
|
Width="Auto"
|
|
Height="20"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Source="Ressources\Icons\UserHomeMaleDisabled.png"
|
|
Visibility="{Binding Path=SupportConceptName, Converter={StaticResource ObjectVisibilityConverter}}" />
|
|
<TextBlock
|
|
x:Name="customerText"
|
|
Margin="3,2"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Tag="{Binding}"
|
|
Text="{Binding Path=CustomerName}"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
<TextBlock
|
|
x:Name="supportConceptText"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3,2"
|
|
VerticalAlignment="Center"
|
|
FontSize="12"
|
|
Foreground="{Binding Path=NodeForegroundBrush}"
|
|
Text="{Binding Path=SimpleDescription}" />
|
|
<TextBlock
|
|
x:Name="costBearerText"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3,2"
|
|
VerticalAlignment="Center"
|
|
FontSize="12"
|
|
Foreground="#FFA0A0A0"
|
|
Text="{Binding Path=AllCostBearerNames}" />
|
|
</Grid>
|
|
<DataTemplate.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>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
<ItemsPanelTemplate x:Key="OrganisationComboBoxItemsPanelTemplate">
|
|
<StackPanel Background="{DynamicResource OrganisationContentBrush}" IsItemsHost="True" />
|
|
</ItemsPanelTemplate>
|
|
<DataTemplate x:Key="OrganisationComboBoxItemTemplate" DataType="{x:Type sharedCompact:CompactOrganisationDC}">
|
|
<Grid>
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
MinHeight="30"
|
|
Margin="2"
|
|
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>
|
|
<Image
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Width="Auto"
|
|
Height="30"
|
|
Margin="0,0,5,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="{Binding Path=IconPath}" />
|
|
<TextBlock
|
|
x:Name="txtDetail1"
|
|
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>
|
|
</DataTemplate>
|
|
<ControlTemplate x:Key="dx_textedit_border" TargetType="{x:Type ContentControl}">
|
|
<Border
|
|
Background="White"
|
|
BorderBrush="#6f7074"
|
|
BorderThickness="1">
|
|
<ContentPresenter />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application> |