<Application x:Class="BeWo.BeWoApp" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:conv="clr-namespace:BeWo.Converter"
             xmlns:bewo="clr-namespace:BeWo" 
             xmlns:shared="clr-namespace:BS.Shared.DataContracts;assembly=BS.Shared" 
             xmlns:sharedCompact="clr-namespace:BS.Shared.DataContracts.Compact;assembly=BS.Shared" 
             xmlns:microsoftWindowsThemes1="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" 
             StartupUri="MainWindow.xaml" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" ShutdownMode="OnExplicitShutdown">
	<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: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:FileAttachmentTypeConverter>
            <conv:FilterDCConverter x:Key="FilterDCConverter" />
            <conv:IListT2DataTableConverter x:Key="IListT2DataTableConverter" />
            <conv:IndexBoolConverter x:Key="IndexBoolConverter" />
            <conv:Int2DecimalConverter x:Key="Int2DecimalConverter" />
            <conv:NodeType2IconPathConverter x:Key="NodeType2IconPathConverter" />
            <conv:NumberSmaller0Converter x:Key="NumberSmaller0Converter" />
            <conv:ObjectBoolConverter x:Key="ObjectBoolConverter" />
            <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:BoolReverseConverter x:Key="BoolReverseConverter" />
			<conv:IndividualGoalMassnahmeUncheckPreventConverter x:Key="IndividualGoalMassnahmeUncheckPreventConverter" />
            <conv:Rights2DefaultBooleanConverter x:Key="Rights2DefaultBooleanConverter"/>
            <conv:CollectionCountToVisibilityConverter x:Key="CollectionCountToVisibilityConverter" />
			
            <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" CornerRadius="5" MinHeight="30" Background="#FF000000">
									<Border.OpacityMask>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#19000000" Offset="0" />
											<GradientStop Color="#26000000" Offset="1" />
										</LinearGradientBrush>
									</Border.OpacityMask>
								</Border>
								<Border x:Name="ItemContent" CornerRadius="5" MinHeight="30">
									<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" OpacityMask="{x:Null}" SnapsToDevicePixels="True">
										<Grid.ColumnDefinitions>
											<ColumnDefinition Width="Auto" />
											<ColumnDefinition Width="Auto" MinWidth="250" />
											<ColumnDefinition Width="*" />
											<ColumnDefinition Width="Auto" />
											<ColumnDefinition Width="Auto" />
										</Grid.ColumnDefinitions>
										<Grid.RowDefinitions>
											<RowDefinition Height="Auto" />
											<RowDefinition Height="Auto" />
										</Grid.RowDefinitions>
										<Image Grid.RowSpan="2" Source="{Binding Path=IconPath}" Margin="0,0,5,0" Height="30" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" />
										<TextBlock x:Name="txtDetail1" Grid.Column="1" Grid.Row="0" Text="{Binding Path=DetailDescription}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
										<TextBlock x:Name="txtDetail2" Grid.Column="1" Grid.Row="1" Text="{Binding Path=AddressString}" FontSize="12" Foreground="#FFA0A0A0" FontFamily="Microsoft Sans Serif" />
                                        <ListBox x:Name="listBoxDetail3" Grid.Row="0" Grid.Column="2" Grid.RowSpan="2" ItemsSource="{Binding Path=CostBearerDetailStrings}" FontSize="12" Foreground="{Binding ForegroundBrush}" FontFamily="Microsoft Sans Serif" Background="Transparent" BorderThickness="0" IsHitTestVisible="False" Margin="6,0,0,0">
                                            <ListBox.ItemTemplate>
                                                <DataTemplate>
                                                    <TextBlock Text="{Binding}" Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBox}, Mode=FindAncestor}}"/>
                                                </DataTemplate>
                                            </ListBox.ItemTemplate>
                                        </ListBox>
										<TextBlock VerticalAlignment="Center" Grid.Column="3" Grid.Row="0" Grid.RowSpan="2" Margin="0,0,3,0" Visibility="{Binding Path=IsDeleted, Converter={StaticResource ReactivationRight2VisibilityConverter}, ConverterParameter=SupportConcept}">
                                            <Hyperlink TargetName="_NewWindow" Foreground="#FFFFFFFF" Click="Hyperlink_Hilfeplan_Reaktivieren_Click" Tag="{Binding}">Reaktivieren</Hyperlink>
										</TextBlock>
										<Button x:Name="btnOpenServiceRecordView" Grid.Column="4" Grid.Row="0" Grid.RowSpan="2" Width="25" Height="25" Style="{DynamicResource TransparentButtonStyle}" ToolTip="In Zeiterfassung öffnen" Tag="{Binding}" Margin="0,0,2,0" Click="btnOpenServiceRecordView_Click">
                                            <Image Source="Ressources\Icons\HistoryDisabled.png" />
										</Button>
									</Grid>
								</Border>
							</Grid>
							<ControlTemplate.Triggers>
								<DataTrigger Binding="{Binding Path=IsArchived}" Value="True">
									<Setter Property="Foreground" TargetName="txtDetail1" Value="#FF808080" />
									<Setter Property="Foreground" TargetName="txtDetail2" Value="#FF808080" />
									<Setter Property="Foreground" TargetName="listBoxDetail3" Value="#FF808080" />
								</DataTrigger>
								<DataTrigger Binding="{Binding Path=IsDeleted}" Value="True">
									<Setter Property="Foreground" TargetName="txtDetail1" Value="#FFF97E7B" />
									<Setter Property="Foreground" TargetName="txtDetail2" Value="#FFF97E7B" />
									<Setter Property="Foreground" TargetName="listBoxDetail3" Value="#FFF97E7B" />
								</DataTrigger>
								<Trigger Property="IsMouseOver" Value="True">
									<Setter Property="OpacityMask" TargetName="ItemBorder">
										<Setter.Value>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#33000000" Offset="0" />
												<GradientStop Color="#66000000" Offset="1" />
											</LinearGradientBrush>
										</Setter.Value>
									</Setter>
								</Trigger>
								<Trigger Property="ListBoxItem.IsSelected" Value="True">
									<Setter Property="OpacityMask" TargetName="ItemBorder">
										<Setter.Value>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#99000000" Offset="0" />
												<GradientStop Color="#CC000000" Offset="1" />
											</LinearGradientBrush>
										</Setter.Value>
									</Setter>
								</Trigger>
								<MultiTrigger>
									<MultiTrigger.Conditions>
										<Condition Property="ListBoxItem.IsSelected" Value="True" />
										<Condition Property="Selector.IsSelectionActive" Value="False" />
									</MultiTrigger.Conditions>
									<Setter Property="OpacityMask" TargetName="ItemBorder">
										<Setter.Value>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#99000000" Offset="0" />
												<GradientStop Color="#B2000000" Offset="1" />
											</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" CornerRadius="5" MinHeight="30" Background="#FF000000">
									<Border.OpacityMask>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#19000000" Offset="0" />
											<GradientStop Color="#26000000" Offset="1" />
										</LinearGradientBrush>
									</Border.OpacityMask>
								</Border>
								<Border x:Name="ItemContent" CornerRadius="5" MinHeight="30">
									<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" 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" Source="{Binding Path=IconPath}" Margin="0,0,5,0" Height="30" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" />
										<TextBlock x:Name="txtDetail1" Grid.Column="1" Grid.Row="0" Text="{Binding Path=DetailDescription}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
                                        <ListBox x:Name="listBoxDetail3" Grid.Column="1" Grid.Row="1" Margin="-2,0,0,0" ItemsSource="{Binding Path=CostBearerDetailStrings}" FontSize="12" Foreground="{Binding ForegroundBrush}" FontFamily="Microsoft Sans Serif" Background="Transparent" BorderThickness="0" IsHitTestVisible="False" >
                                            <ListBox.ItemTemplate>
                                                <DataTemplate>
                                                    <TextBlock Text="{Binding}" Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBox}, Mode=FindAncestor}}"/>
                                                </DataTemplate>
                                            </ListBox.ItemTemplate>
                                        </ListBox>
									</Grid>
								</Border>
							</Grid>
							<ControlTemplate.Triggers>
								<DataTrigger Binding="{Binding Path=IsArchived}" Value="True"> 
									<Setter Property="Foreground" TargetName="txtDetail1" Value="#FF808080" />
									<Setter Property="Foreground" TargetName="listBoxDetail3" Value="#FF808080" />
								</DataTrigger>
								<Trigger Property="IsMouseOver" Value="True">
									<Setter Property="OpacityMask" TargetName="ItemBorder">
										<Setter.Value>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#33000000" Offset="0" />
												<GradientStop Color="#66000000" Offset="1" />
											</LinearGradientBrush>
										</Setter.Value>
									</Setter>
								</Trigger>
								<Trigger Property="ListBoxItem.IsSelected" Value="True">
									<Setter Property="OpacityMask" TargetName="ItemBorder">
										<Setter.Value>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#99000000" Offset="0" />
												<GradientStop Color="#CC000000" Offset="1" />
											</LinearGradientBrush>
										</Setter.Value>
									</Setter>
								</Trigger>
								<MultiTrigger>
									<MultiTrigger.Conditions>
										<Condition Property="ListBoxItem.IsSelected" Value="True" />
										<Condition Property="Selector.IsSelectionActive" Value="False" />
									</MultiTrigger.Conditions>
									<Setter Property="OpacityMask" TargetName="ItemBorder">
										<Setter.Value>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#99000000" Offset="0" />
												<GradientStop Color="#B2000000" Offset="1" />
											</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 Background="#FF202020" Grid.RowSpan="3" CornerRadius="3,1,0,3" />
								<Border Background="#FF202020" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2" CornerRadius="0,1,0,3" />
								<Path StrokeThickness="0" Fill="#FF202020" Data="M 0,0 L 20,20 H 0 Z" Grid.Column="1" />
								<Border Margin="0,0,0,0" x:Name="Header" Grid.Column="0" Grid.Row="0" Background="{x:Null}" Padding="10,0,3,0" Grid.ColumnSpan="2" Grid.RowSpan="2" VerticalAlignment="Center">
									<ContentPresenter TextElement.FontSize="22" Margin="5,-3,0,0" RenderTransformOrigin="0,0.5" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Header}" ContentSource="Header" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" VerticalAlignment="Stretch">
										<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.Column="0" Grid.Row="2" Padding="5,5,5,5" Grid.ColumnSpan="2" Grid.RowSpan="1">
									<ContentPresenter Margin="0,0,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" />
								</Border>
								<Path x:Name="isDirtyShape" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" StrokeThickness="0" 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" Margin="0,0,41.007,3" Width="18.21" Height="17.336" RenderTransformOrigin="0.5,0.5">
									<Path.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFFB6F0E" Offset="0" />
											<GradientStop Color="#FF8C400A" Offset="1" />
										</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 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" 
                                              IsChecked="{Binding Source={x:Static bewo:BeWoApp.MainControl}, Path=IsMaximized}" />
								<!-- 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 SnapsToDevicePixels="True" x:Name="frameGrid" Background="Transparent">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="15" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="15" />
                                    <RowDefinition Height="20" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <Border Background="#FF202020" Grid.RowSpan="3" CornerRadius="3,1,0,3" MouseLeftButtonDown="FrameLeftMouseDown" />
                                <Border Background="#FF202020" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2" CornerRadius="0,1,0,3" MouseLeftButtonDown="FrameLeftMouseDown" />
                                <Path StrokeThickness="0" Fill="#FF202020" Data="M 0,0 L 20,20 H 0 Z" Grid.Column="1" />
                                <Border Margin="0,0,0,0" x:Name="Header" Grid.Column="0" Grid.Row="0" Background="{x:Null}" Padding="10,0,3,0" Grid.ColumnSpan="2" Grid.RowSpan="2" VerticalAlignment="Center">
                                    <ContentPresenter TextElement.FontSize="22" Margin="5,-3,0,0" RenderTransformOrigin="0,0.5" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Header}" ContentSource="Header" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" VerticalAlignment="Stretch">
                                        <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.Column="0" Grid.Row="2" Padding="5,5,5,5" Grid.ColumnSpan="2" Grid.RowSpan="1">
                                    <ContentPresenter Margin="0,0,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" />
                                </Border>
                                <Path x:Name="isDirtyShape" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" StrokeThickness="0" 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" Margin="0,0,41.007,3" Width="18.21" Height="17.336" RenderTransformOrigin="0.5,0.5">
                                    <Path.Fill>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFFB6F0E" Offset="0" />
                                            <GradientStop Color="#FF8C400A" Offset="1" />
                                        </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 Margin="3,3,3,3" x:Name="button_close" Grid.Column="0" Grid.Row="0" 
                                        Width="25" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right" 
                                        Style="{DynamicResource CloseButtonStyle}" Command="ApplicationCommands.Close"
                                        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="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 Background="#FF202020" Grid.RowSpan="2" CornerRadius="3,1,0,3" />
								<Border Background="#FF202020" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2" CornerRadius="0,1,0,3" />
								<Path StrokeThickness="0" Fill="#FF202020" Data="M 0,0 L 10,10 H 0 Z" Grid.Column="1" />
								<Border Margin="0,0,0,0" x:Name="Header" Grid.Column="0" Grid.Row="0" Background="{x:Null}" Padding="10,0,3,0" Grid.ColumnSpan="2" Grid.RowSpan="2" VerticalAlignment="Bottom">
									<ContentPresenter TextElement.FontSize="16" Margin="5,0,0,3" RenderTransformOrigin="0,0.5" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Header}" ContentSource="Header" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" VerticalAlignment="Stretch">
										<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.Column="0" Grid.Row="2" Padding="5,5,5,5" Grid.ColumnSpan="2" Grid.RowSpan="1">
									<ContentPresenter Margin="0,0,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" />
								</Border>
								<Path x:Name="isDirtyShape" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Center" HorizontalAlignment="Right" StrokeThickness="0" 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" Margin="0,0,41.007,3" Width="18.21" Height="17.336" RenderTransformOrigin="0.5,0.5">
									<Path.Fill>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFFB6F0E" Offset="0" />
											<GradientStop Color="#FF8C400A" Offset="1" />
										</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 Margin="3,3,3,3" x:Name="button_close" Grid.Column="0" Grid.Row="0" Width="20" Height="20" VerticalAlignment="Center" HorizontalAlignment="Right" Style="{DynamicResource CloseButtonStyle}" Command="ApplicationCommands.Close" 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>
			<HierarchicalDataTemplate DataType="{x:Type shared:SupportConceptTreeNodeDC}" ItemsSource="{Binding Path=ChildNodes}">
				<Grid Margin="2">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="Auto" />
						<ColumnDefinition Width="*" />
					</Grid.ColumnDefinitions>
					<Image Margin="0 0 3 0" Width="16" Height="16" Source="{Binding Path=NodeType, Converter={StaticResource NodeType2IconPathConverter}}" />
					<TextBlock Grid.Column="1" Text="{Binding Path=DetailDescription}" FontSize="12" Foreground="Black" FontFamily="Microsoft Sans Serif" />
				</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 SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
								<Grid>
									<Border x:Name="BorderBackground" />
									<Border x:Name="Border" Background="{TemplateBinding Background}" BorderThickness="2,2,2,2">
										<Popup x:Name="PART_Popup" AllowsTransparency="True" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Focusable="False">
											<microsoftWindowsThemes1:SystemDropShadowChrome MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{Binding Path=ActualWidth, ElementName=Border}" x:Name="Shdw" 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 SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.DirectionalNavigation="Contained" />
													</ScrollViewer>
												</Border>
											</microsoftWindowsThemes1:SystemDropShadowChrome>
										</Popup>
									</Border>
									<DockPanel>
										<FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
										<Border Margin="{TemplateBinding Padding}" x:Name="SelectedItemBorder">
											<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="1,0,1,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding SelectionBoxItem}" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" />
										</Border>
									</DockPanel>
									<ToggleButton Style="{DynamicResource ComboBoxTransparentButtonStyle}" Margin="1,2,1,2" MinHeight="0" MinWidth="0" Width="Auto" Focusable="False" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" />
								</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 Property="Background" TargetName="BorderBackground" Value="#80000000" />
								</Trigger>
								<Trigger Property="HasItems" Value="False">
									<Setter Property="MinHeight" TargetName="DropDownBorder" 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 Property="HasDropShadow" SourceName="PART_Popup" Value="True">
									<Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5" />
									<Setter Property="Color" TargetName="Shdw" 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" SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
								<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" />
							</Border>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
			<Style x:Key="ButtonFocusVisual">
				<Setter Property="Control.Template">
					<Setter.Value>
						<ControlTemplate>
							<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="2" SnapsToDevicePixels="true" />
						</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" CornerRadius="5" MinHeight="30" Background="#FF000000" Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="0,0,0,0">
						<Border.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#19000000" Offset="0" />
								<GradientStop Color="#26000000" Offset="1" />
							</LinearGradientBrush>
						</Border.OpacityMask>
					</Border>
					<StackPanel Orientation="Horizontal">
                        <Image Visibility="{Binding Path=SupportConceptName, Converter={StaticResource ObjectVisibilityConverter} }" Source="Ressources\Icons\UserHomeMaleDisabled.png" Height="20" VerticalAlignment="Center" HorizontalAlignment="Left" Width="Auto" />
						<TextBlock FontSize="14" Foreground="#FFD2D2D2" x:Name="customerText" Tag="{Binding}" Margin="3 2" Text="{Binding Path=CustomerName}" VerticalAlignment="Center" TextWrapping="Wrap" />
					</StackPanel>
					<TextBlock FontSize="12" x:Name="supportConceptText" Grid.Column="0" Grid.Row="1" Margin="3 2" Text="{Binding Path=SupportConceptName}" VerticalAlignment="Center" Foreground="{Binding Path=NodeForegroundBrush}" />
					<TextBlock FontSize="12" Foreground="#FFA0A0A0" x:Name="costBearerText" Grid.Column="0" Grid.Row="2" Margin="3 2" Text="{Binding Path=CostBearerName}" VerticalAlignment="Center" />
					<Button Content="I" Width="15" Height="15" Grid.Column="1" 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 Property="OpacityMask" TargetName="ItemBorder">
							<Setter.Value>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#33000000" Offset="0" />
									<GradientStop Color="#66000000" Offset="1" />
								</LinearGradientBrush>
							</Setter.Value>
						</Setter>
					</Trigger>
				</DataTemplate.Triggers>
			</DataTemplate>
			<ItemsPanelTemplate x:Key="CustomerComboBoxItemsPanelTemplate">
				<StackPanel IsItemsHost="True" Background="{DynamicResource SupportConceptListBrush}" />
			</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" CornerRadius="5" MinHeight="30" Background="#FF000000" Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="0,0,0,0">
						<Border.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#19000000" Offset="0" />
								<GradientStop Color="#26000000" Offset="1" />
							</LinearGradientBrush>
						</Border.OpacityMask>
					</Border>
					<StackPanel Orientation="Horizontal">
                        <Image Visibility="{Binding Path=SupportConceptName, Converter={StaticResource ObjectVisibilityConverter} }" Source="Ressources\Icons\UserHomeMaleDisabled.png" Height="20" VerticalAlignment="Center" HorizontalAlignment="Left" Width="Auto" />
						<TextBlock FontSize="14" Foreground="#FFD2D2D2" x:Name="customerText" Tag="{Binding}" Margin="3 2" Text="{Binding Path=CustomerName}" VerticalAlignment="Center" TextWrapping="Wrap" />
					</StackPanel>
					<TextBlock FontSize="12" x:Name="supportConceptText" Grid.Column="0" Grid.Row="1" Margin="3 2" Text="{Binding Path=SimpleDescription}" VerticalAlignment="Center" Foreground="{Binding Path=NodeForegroundBrush}" />
					<TextBlock FontSize="12" Foreground="#FFA0A0A0" x:Name="costBearerText" Grid.Column="0" Grid.Row="2" Margin="3 2" Text="{Binding Path=AllCostBearerNames}" VerticalAlignment="Center" />
				</Grid>
				<DataTemplate.Triggers>
					<Trigger Property="IsMouseOver" Value="True">
						<Setter Property="OpacityMask" TargetName="ItemBorder">
							<Setter.Value>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#33000000" Offset="0" />
									<GradientStop Color="#66000000" Offset="1" />
								</LinearGradientBrush>
							</Setter.Value>
						</Setter>
					</Trigger>
				</DataTemplate.Triggers>
			</DataTemplate>
			<ItemsPanelTemplate x:Key="OrganisationComboBoxItemsPanelTemplate">
				<StackPanel IsItemsHost="True" Background="{DynamicResource OrganisationContentBrush}" />
			</ItemsPanelTemplate>
			<DataTemplate x:Key="OrganisationComboBoxItemTemplate" DataType="{x:Type sharedCompact:CompactOrganisationDC}">
				<Grid>
					<Border x:Name="ItemBorder" CornerRadius="5" Margin="2" MinHeight="30" Background="#FF000000">
						<Border.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#19000000" Offset="0" />
								<GradientStop Color="#26000000" Offset="1" />
							</LinearGradientBrush>
						</Border.OpacityMask>
					</Border>
					<Border x:Name="ItemContent" CornerRadius="5" MinHeight="30">
						<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" 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.RowSpan="2" Source="{Binding Path=IconPath}" Margin="0,0,5,0" Height="30" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" Grid.Row="0" />
							<TextBlock x:Name="txtDetail1" Grid.Column="1" Text="{Binding Path=DetailDescription}" FontSize="14" Foreground="#FFFFFFFF" FontFamily="Microsoft Sans Serif" />
							<TextBlock x:Name="txtDetail2" Grid.Column="1" Grid.Row="1" Text="{Binding Path=AddressString}" FontSize="12" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
						</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>