<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" 
                    xmlns:conv="clr-namespace:BeWo.Converter" 
                    xmlns:localView="clr-namespace:BeWo.View"
                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" 
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
					xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                    mc:Ignorable="d"
                    x:Class="BeWo.Styles.OrangeBlack"
                    xmlns:Blacklight_Wpf_Controls="clr-namespace:Blacklight.Wpf.Controls;assembly=Blacklight.Wpf.Controls">

	<!-- Region Brushes-->
    <SolidColorBrush x:Key="TextbausteinBrush" Color="#FFA9B8C2" />
	<SolidColorBrush x:Key="ZusageMitVorbehaltBrush" Color="#FFB927D9" />
	<SolidColorBrush x:Key="ZusageZugesagtBrush" Color="#FF48D44E" />
	<SolidColorBrush x:Key="ZusageAbgesagtBrush" Color="#FFAB0030" />
    <SolidColorBrush x:Key="GridPrintMenuLightBrush" Color="White" />
	<SolidColorBrush x:Key="BSOrangeBrush" Color="#FFFF5A00" />
	<SolidColorBrush x:Key="LightOrangeBrush" Color="#FFFB6F0E" />
	<SolidColorBrush x:Key="GroupBookingBackgroundBrush" Color="#FFFDC784" />
	<SolidColorBrush x:Key="GroupBookingSelectedBackgroundBrush" Color="#FFBE8A49" />
	<SolidColorBrush x:Key="GroupBookingMouseOverBackgroundBrush" Color="#FFDCA158" />
	<LinearGradientBrush x:Key="ApplicationBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDADADB" Offset="0.38" />
		<GradientStop Color="#FFA9B8C2" Offset="0.725" />
		<GradientStop Color="#FF4E565A" Offset="0.91" />
	</LinearGradientBrush>

	<conv:CustomerDCPrintURLConverter x:Key="CustomerDCPrintURLConverter" />
	<conv:InvoiceBaseDCPrintURLConverter x:Key="InvoiceBaseDCPrintURLConverter" />

	<LinearGradientBrush x:Key="LoginBackground" EndPoint="0.5,0.699" StartPoint="0.5,0.051">
		<GradientStop Color="#FF96A4AD" />
		<GradientStop Color="#FF9FADB6" Offset="0.888" />
		<GradientStop Color="#FFA9B8C2" Offset="0.625" />
		<GradientStop Color="#FF87929B" Offset="0.504" />
		<GradientStop Color="#FF8E9AA3" Offset="0.33" />
	</LinearGradientBrush>

    <SolidColorBrush x:Key="ControlBackground" Color="#FFFCFAF2" />

	<SolidColorBrush x:Key="MainGroupBoxForegroundBrush" Color="#FFD7D7D7" />
	<RadialGradientBrush x:Key="MainGroupBoxComboBackgroundBrush">
		<GradientStop Color="#4CD7D7D7" Offset="0" />
		<GradientStop Color="#00D7D7D7" Offset="0.995" />
	</RadialGradientBrush>

	<LinearGradientBrush x:Key="MainGroupBoxSelectedItemBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#24000000" Offset="0" />
		<GradientStop Color="#4C000000" Offset="1" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="GlyphBrush" Color="#FF0D82C0" />
	<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#F3F3F3" Offset="0" />
		<GradientStop Color="#EBEBEB" Offset="0.5" />
		<GradientStop Color="#DDDDDD" Offset="0.5" />
		<GradientStop Color="#CDCDCD" Offset="1" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070" />


	<LinearGradientBrush x:Key="BorderBrush" EndPoint="0,20" StartPoint="0,0" MappingMode="Absolute">
		<GradientStop Color="#ABADB3" Offset="0.05" />
		<GradientStop Color="#E2E3EA" Offset="0.07" />
		<GradientStop Color="#E3E9EF" Offset="1" />
	</LinearGradientBrush>

	<SolidColorBrush x:Key="TextBoxBorderBrush" Color="#FF86878F" />


	<LinearGradientBrush x:Key="DevEx" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#FFFBF9F9" Offset="0" />
		<GradientStop Color="#FFDFDFDF" Offset="1" />
	</LinearGradientBrush>

	<LinearGradientBrush x:Key="MouseOverBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#FFF" Offset="0.0" />
		<GradientStop Color="#AAA" Offset="1.0" />
	</LinearGradientBrush>

	<LinearGradientBrush x:Key="PressedBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#BBB" Offset="0.0" />
		<GradientStop Color="#EEE" Offset="0.1" />
		<GradientStop Color="#EEE" Offset="0.9" />
		<GradientStop Color="#FFF" Offset="1.0" />
	</LinearGradientBrush>

	<LinearGradientBrush x:Key="ToolbarBrushBlack" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF858585" Offset="0" />
		<GradientStop Color="#FF2B2B2B" Offset="0.99" />
		<GradientStop Color="#FF414141" Offset="0.415" />
		<GradientStop Color="#FF000000" Offset="0.535" />
	</LinearGradientBrush>

	<SolidColorBrush x:Key="ToolbarTextBrush" Color="#FF000000" />


	<LinearGradientBrush x:Key="ToolbarBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF6D7AE" Offset="0.095" />
		<GradientStop Color="#FFF7DE8C" Offset="1" />
		<GradientStop Color="#FFF9B14C" Offset="0.29" />
		<GradientStop Color="#FFFBC15C" Offset="0.546" />
	</LinearGradientBrush>
<!-- Endregion -->
    
	<!-- Region Controls-->

	<Style TargetType="{x:Type TextBox}">
		<Setter Property="BorderThickness" Value="1,1,1,1" />
		<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
		<Style.Triggers>
			<Trigger Property="Validation.HasError" Value="true">
				<Setter Property="ToolTip" Value="{Binding Path=(Validation.Errors)[0].ErrorContent, RelativeSource={RelativeSource Self}}" />
			</Trigger>
		</Style.Triggers>
	</Style>

    <!--<Style TargetType="{x:Type dxre:RichEditControl}">
        <Style.Triggers>
            <Trigger Property="Validation.HasError" Value="true">
                <Setter Property="ToolTip" Value="{Binding Path=(Validation.Errors)[0].ErrorContent, RelativeSource={RelativeSource Self}}" />
            </Trigger>
        </Style.Triggers>
    </Style>-->
    
	<Style TargetType="{x:Type PasswordBox}">
		<Setter Property="BorderThickness" Value="1,1,1,1" />
		<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>

	<Style TargetType="{x:Type uc:MaskedTextBox}">
		<Setter Property="BorderThickness" Value="1,1,1,1" />
		<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>
	

	<Style x:Key="{x:Type Button}" TargetType="{x:Type Button}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Height" Value="25" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Foreground" Value="#FFFFFFFF" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Border x:Name="border" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4" Padding="0,0,0,0">
						<Border.Background>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF000000" Offset="0" />
								<GradientStop Color="#FF262626" Offset="1" />
							</LinearGradientBrush>
						</Border.Background>
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="0.5*" />
								<RowDefinition Height="0.5*" />
							</Grid.RowDefinitions>
							<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
								<Border.Background>
									<RadialGradientBrush>
										<RadialGradientBrush.RelativeTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
												<SkewTransform AngleX="0" AngleY="0" />
												<RotateTransform Angle="0" />
												<TranslateTransform X="-0.368" Y="-0.152" />
											</TransformGroup>
										</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#B28DBDFF" Offset="0" />
										<GradientStop Color="#008DBDFF" Offset="1" />
									</RadialGradientBrush>
								</Border.Background>
							</Border>
							<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#99FFFFFF" Offset="0" />
										<GradientStop Color="#33FFFFFF" Offset="1" />
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border Margin="0,0,0,0" Grid.Row="0" Grid.RowSpan="2">
								<ContentPresenter Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,0,3,0" />
							</Border>
						</Grid>
					</Border>

					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#998DBDFF" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>

	<Style x:Key="ColoredButton" TargetType="{x:Type Button}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Height" Value="25" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Foreground" Value="#FFFFFFFF" />
		<Setter Property="Background" Value="#FF45993B" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Border x:Name="border" BorderBrush="#FF333333"  BorderThickness="1,1,1,1" CornerRadius="4,4,4,4" Padding="0,0,0,0" Background="{TemplateBinding Background}">
						
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="0.5*" />
								<RowDefinition Height="0.5*" />
							</Grid.RowDefinitions>
							<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
								<Border.Background>
									<RadialGradientBrush RadiusX="0.982" RadiusY="0.378">
										<RadialGradientBrush.RelativeTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
												<SkewTransform AngleX="0" AngleY="0" />
												<RotateTransform Angle="0" />
												<TranslateTransform X="-0.368" Y="-0.152" />
											</TransformGroup>
										</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#CCFFFFFF" Offset="0.291" />
										<GradientStop Offset="0.583" />
									</RadialGradientBrush>
								</Border.Background>
							</Border>
							<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#D2FFFFFF" />
										<GradientStop Color="#33FFFFFF" Offset="1" />
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border Margin="0,0,0,0" Grid.Row="0" Grid.RowSpan="2">
								<ContentPresenter Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,0,3,0" />
							</Border>
							<Border Background="{TemplateBinding Background}" Grid.Row="0" Grid.RowSpan="2">
										<Border.OpacityMask>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#99000000" Offset="0" />
												<GradientStop Color="#40FFFFFF" Offset="1" />
											</LinearGradientBrush>
										</Border.OpacityMask>
									</Border>
						</Grid>
					</Border>

					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#998DBDFF" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>
	
	<Style x:Key="GlassButton" TargetType="{x:Type Button}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Height" Value="25" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Foreground" Value="#FFFFFFFF" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Border x:Name="border" BorderBrush="#7F000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4" Padding="0,0,0,0" Background="#4C808080">
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="0.5*" />
								<RowDefinition Height="0.5*" />
							</Grid.RowDefinitions>
							<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
								<Border.Background>
									<RadialGradientBrush>
										<RadialGradientBrush.RelativeTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
												<SkewTransform AngleX="0" AngleY="0" />
												<RotateTransform Angle="0" />
												<TranslateTransform X="-0.368" Y="-0.152" />
											</TransformGroup>
										</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#B28DBDFF" Offset="0" />
										<GradientStop Color="#008DBDFF" Offset="1" />
									</RadialGradientBrush>
								</Border.Background>
							</Border>
							<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#F3FFFFFF" Offset="0" />
										<GradientStop Color="#33FFFFFF" Offset="1" />
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border Margin="0,0,0,0" Grid.Row="0" Grid.RowSpan="2">
								<ContentPresenter Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,0,3,0" />
							</Border>
						</Grid>
					</Border>

					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#998DBDFF" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>

	<Style x:Key="FlatButton" TargetType="{x:Type Button}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Height" Value="25" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Foreground" Value="#FFFFFFFF" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.2" Duration="0:0:0.15" AccelerationRatio="1" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.2" Duration="0:0:0.15" AccelerationRatio="1" />
							
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.15" DecelerationRatio="1" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.15" DecelerationRatio="1" />
							
						</Storyboard>
					</ControlTemplate.Resources>
					<Border x:Name="border" BorderThickness="0" Padding="0,0,0,0" Background="Transparent" RenderTransformOrigin="0.5,0.5">
						<Border.RenderTransform>
							<ScaleTransform ScaleX="1" ScaleY="1" />
						</Border.RenderTransform>
						<ContentPresenter Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" />
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
							<Setter Value="Hand" Property="Cursor" TargetName="border" />
						</Trigger>

					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>

	<Style x:Key="OrangeButtonStyle" TargetType="{x:Type Button}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames Storyboard.TargetName="glow" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" BeginTime="00:00:00">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00FFDD00" />
							</ColorAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames Storyboard.TargetName="glow" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" BeginTime="00:00:00">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#B2FFFF00" />
							</ColorAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
						<Border x:Name="border" Background="#B1FE9500" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.507*" />
									<RowDefinition Height="0.493*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B28DBDFF" Offset="0" />
											<GradientStop Color="#008DBDFF" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.Row="0"
								                  Grid.RowSpan="2" Margin="3,0,3,0" />
								<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
											<GradientStop Color="#99FFFFFF" Offset="0" />
											<GradientStop Color="#33FFFFFF" Offset="1" />
										</LinearGradientBrush>
									</Border.Background>
								</Border>
							</Grid>
						</Border>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#99FFA500" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<Style TargetType="{x:Type RepeatButton}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type RepeatButton}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames Storyboard.TargetName="glow" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" BeginTime="00:00:00">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00FFDD00" />
							</ColorAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames Storyboard.TargetName="glow" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" BeginTime="00:00:00">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#B2FFFF00" />
							</ColorAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
						<Border x:Name="border" Background="#B1FE9500" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.507*" />
									<RowDefinition Height="0.493*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B28DBDFF" Offset="0" />
											<GradientStop Color="#008DBDFF" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.Row="0"
								                  Grid.RowSpan="2" Margin="3,0,3,0" />
								<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
											<GradientStop Color="#99FFFFFF" Offset="0" />
											<GradientStop Color="#33FFFFFF" Offset="1" />
										</LinearGradientBrush>
									</Border.Background>
								</Border>
							</Grid>
						</Border>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#99FFA500" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<Style x:Key="NavBarButton" TargetType="{x:Type localView:ImageButton}">
		<Setter Property="Background" Value="#FF0385FF" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type localView:ImageButton}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimation Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.2" Duration="0:0:0.15" AccelerationRatio="1" />
							<DoubleAnimation Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.2" Duration="0:0:0.15" AccelerationRatio="1" />
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
								<SplineDoubleKeyFrame KeyTime="0:0:0.15" Value="3" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimation Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.15" DecelerationRatio="1" />
							<DoubleAnimation Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.15" DecelerationRatio="1" />
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
								<SplineDoubleKeyFrame KeyTime="0:0:0.15" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Border x:Name="button" RenderTransformOrigin="0.5,0.8">
						<Border.RenderTransform>
							<ScaleTransform ScaleX="1" ScaleY="1" />
						</Border.RenderTransform>
						<StackPanel RenderTransformOrigin="0.5,0.5" x:Name="stackPanel">
							<StackPanel.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1" ScaleY="1" />
									<SkewTransform AngleX="0" AngleY="0" />
									<RotateTransform Angle="0" />
									<TranslateTransform X="0" Y="0" />
								</TransformGroup>
							</StackPanel.RenderTransform>

							<Border Width="42" Height="42" BorderThickness="1,1,1,1" CornerRadius="25,25,25,25" SnapsToDevicePixels="True" BorderBrush="#4D3B3B3B">
								<Border.OpacityMask>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF000000" Offset="0" />
										<GradientStop Color="#FFFFFFFF" Offset="1" />
									</LinearGradientBrush>
								</Border.OpacityMask>
								<Grid>
									<Border CornerRadius="25,25,25,25">
										<Border.Background>
											<RadialGradientBrush GradientOrigin="0.425,0.585">
												<RadialGradientBrush.RelativeTransform>
													<TransformGroup>
														<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.129" ScaleY="1.128" />
														<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5" />
														<RotateTransform Angle="94.392" CenterX="0.5" CenterY="0.5" />
														<TranslateTransform X="-0.159" Y="-0.15" />
													</TransformGroup>
												</RadialGradientBrush.RelativeTransform>
												<GradientStop Color="#CCEEEEEE" Offset="0" />
												<GradientStop Color="#CC000000" Offset="1" />
											</RadialGradientBrush>
										</Border.Background>
									</Border>
									<Image x:Name="ButtonImage" Source="{TemplateBinding ImageSource}" Opacity="1" Width="30" Height="30" />
									<Border Background="{TemplateBinding Background}" CornerRadius="25,25,25,25">
										<Border.OpacityMask>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#99000000" Offset="0" />
												<GradientStop Color="#40FFFFFF" Offset="1" />
											</LinearGradientBrush>
										</Border.OpacityMask>
									</Border>

								</Grid>
							</Border>
							<Label VerticalAlignment="Center" x:Name="ButtonText" Content="{TemplateBinding Content}" Foreground="#FFDBDBDB" Background="Transparent" FontSize="12" HorizontalAlignment="Center" Padding="1,5,1,5" />

						</StackPanel>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
							<Setter Value="Orange" Property="Foreground" TargetName="ButtonText" />
							<Setter Value="Hand" Property="Cursor" TargetName="button" />
						</Trigger>

					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>

	</Style>


	<Style TargetType="{x:Type Image}" x:Key="toolbarImageStyle">
		<Style.Triggers>
			<DataTrigger Binding="{Binding Path=IsEnabled, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type Button}}}" Value="False">
				<Setter Property="Opacity" Value="0.4" />
			</DataTrigger>
		</Style.Triggers>
	</Style>

	<Style x:Key="toolbarButton" TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="2" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.2" />
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.2" />
						</Storyboard>
					</ControlTemplate.Resources>
					<Border x:Name="border" BorderBrush="#B3646464" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4" RenderTransformOrigin="0.5,0.5">
						<Border.Background>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#B37E5204" Offset="0" />
								<GradientStop Color="#B1F2C068" Offset="1" />
							</LinearGradientBrush>
						</Border.Background>
						<Border.RenderTransform>
							<ScaleTransform ScaleX="1" ScaleY="1" />
						</Border.RenderTransform>
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="0.507*" />
								<RowDefinition Height="0.493*" />
							</Grid.RowDefinitions>
							<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
								<Border.Background>
									<RadialGradientBrush>
										<RadialGradientBrush.RelativeTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
												<SkewTransform AngleX="0" AngleY="0" />
												<RotateTransform Angle="0" />
												<TranslateTransform X="-0.368" Y="-0.152" />
											</TransformGroup>
										</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#B28DBDFF" Offset="0" />
										<GradientStop Color="#008DBDFF" Offset="1" />
									</RadialGradientBrush>
								</Border.Background>
							</Border>
							<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.Row="0"
							                  Grid.RowSpan="2" />
							<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
										<GradientStop Color="#99FFFFFF" Offset="0" />
										<GradientStop Color="#00FFFFFF" Offset="1" />
									</LinearGradientBrush>
								</Border.Background>
							</Border>
						</Grid>
					</Border>

					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#99FFA500" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ComboBoxFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle Margin="4,4,21,4" SnapsToDevicePixels="true" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<Geometry x:Key="DownArrowGeometry">
		M 0 0 L 3.5 4 L 7 0 Z
	</Geometry>
	<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
		<Setter Property="OverridesDefaultStyle" Value="true" />
		<Setter Property="IsTabStop" Value="false" />
		<Setter Property="Focusable" Value="false" />
		<Setter Property="ClickMode" Value="Press" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<!--<Microsoft_Windows_Themes:ButtonChrome x:Name="Chrome" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}">-->
					<Grid HorizontalAlignment="Right">
						<Button x:Name="button_down" SnapsToDevicePixels="true" Foreground="#FFFFFF" Content="6" FontFamily="Webdings" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Style="{DynamicResource {x:Type Button}}" Grid.IsSharedSizeScope="False" Padding="0,0,0,0" FontSize="9" />
					</Grid>
					<!--</Microsoft_Windows_Themes:ButtonChrome>-->
					<ControlTemplate.Triggers>
						<!--<Trigger Property="IsChecked" Value="true">
                            <Setter Property="RenderPressed" TargetName="Chrome" Value="true"/>
                        </Trigger>-->
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" TargetName="button_down" Value="#AFAFAF" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
		<Setter Property="OverridesDefaultStyle" Value="true" />
		<Setter Property="AllowDrop" Value="true" />
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TextBox}">
					<ScrollViewer Background="Transparent" x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ComboBoxTransparentButtonStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Width" Value="Auto" />
		<Setter Property="Height" Value="Auto" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Focusable" Value="false" />
		<Setter Property="ClickMode" Value="Press" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.2" />
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.2" />
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid SnapsToDevicePixels="true">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<Border x:Name="border" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4" Padding="0,0,0,0" Margin="0,0,0,0" Width="{DynamicResource {x:Static SystemParameters.ScrollWidthKey}}" Grid.Column="1">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF000000" Offset="0" />
									<GradientStop Color="#FF262626" Offset="1" />
								</LinearGradientBrush>
							</Border.Background>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*" />
									<RowDefinition Height="0.5*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="3,3,3,3">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B28DBDFF" Offset="0" />
											<GradientStop Color="#008DBDFF" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="3,3,0,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#99FFFFFF" Offset="0" />
											<GradientStop Color="#33FFFFFF" Offset="1" />
										</LinearGradientBrush>
									</Border.Background>
								</Border>
								<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Webdings" FontSize="9" Text="6" TextWrapping="Wrap"
								           Grid.Row="0" Grid.RowSpan="2">
									<TextBlock.Foreground>
										<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlColorKey}}" />
									</TextBlock.Foreground>
								</TextBlock>
							</Grid>
						</Border>

						<!-- <ToggleButton x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" Style="{StaticResource ComboBoxReadonlyToggleButton}" Grid.ColumnSpan="2" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>-->

					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#99FFA500" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
		<Grid SnapsToDevicePixels="true">
			<Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
				<Grid Grid.IsSharedSizeScope="true">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="1" />
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="Auto" SharedSizeGroup="ComboBoxButton" />
					</Grid.ColumnDefinitions>
					<TextBox Margin="{TemplateBinding Padding}" x:Name="PART_EditableTextBox" Style="{StaticResource ComboBoxEditableTextBox}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Grid.Column="1" IsReadOnly="{Binding Path=IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}" />
					<ToggleButton Style="{StaticResource ComboBoxTransparentButtonStyle}" Background="{x:Null}" Grid.ColumnSpan="3"
					              Grid.Column="0"
					              IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
				</Grid>
			</Border>
			<Popup x:Name="PART_Popup" Focusable="false" AllowsTransparency="true" IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
				<Microsoft_Windows_Themes:SystemDropShadowChrome MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" x:Name="Shdw" Color="Transparent">
					<Border x:Name="DropDownBorder" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1">
						<ScrollViewer>
							<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.DirectionalNavigation="Contained" />
						</ScrollViewer>
					</Border>
				</Microsoft_Windows_Themes:SystemDropShadowChrome>
			</Popup>
		</Grid>
		<ControlTemplate.Triggers>
			<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" TargetName="Bd" 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>

	<Style x:Key="{x:Type ComboBox}" 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}">
					<Grid SnapsToDevicePixels="true">
						<Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
							<Grid Grid.IsSharedSizeScope="true">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="1" />
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" SharedSizeGroup="ComboBoxButton" />
								</Grid.ColumnDefinitions>
								<Border x:Name="SelectedItemBorder" Grid.ColumnSpan="2" Margin="2,1,20,1">
									<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="3 0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" />
								</Border>
								<ToggleButton Style="{DynamicResource ComboBoxTransparentButtonStyle}" Grid.ColumnSpan="3" Grid.Column="0" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
							</Grid>
						</Border>
						<Popup x:Name="PART_Popup" Focusable="false" AllowsTransparency="true" IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
							<Microsoft_Windows_Themes:SystemDropShadowChrome MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" x:Name="Shdw" Color="Transparent">
								<Border x:Name="DropDownBorder" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1">
									<ScrollViewer>
										<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.DirectionalNavigation="Contained" />
									</ScrollViewer>
								</Border>
							</Microsoft_Windows_Themes:SystemDropShadowChrome>
						</Popup>
					</Grid>
					<ControlTemplate.Triggers>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelectionBoxHighlighted" Value="true" />
								<Condition Property="IsDropDownOpen" Value="false" />
							</MultiTrigger.Conditions>
							<Setter Property="Foreground" Value="#FF000000" />
						</MultiTrigger>
						<Trigger Property="IsSelectionBoxHighlighted" Value="true">
							<Setter Property="Background" TargetName="SelectedItemBorder" Value="#FF8AC5FF" />
						</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>
						<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" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
						</Trigger>
						<Trigger Property="IsGrouping" Value="true">
							<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Style.Triggers>
			<Trigger Property="IsEditable" Value="true">
				<Setter Property="IsTabStop" Value="false" />
				<Setter Property="Padding" Value="0,1" />
				<Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" />
			</Trigger>
		</Style.Triggers>
	</Style>


	<ControlTemplate x:Key="ExpanderToggleButton" TargetType="{x:Type ToggleButton}">
		<Grid>
			<Rectangle SnapsToDevicePixels="True" Margin="0,0,0,0" x:Name="Rectangle" Fill="Transparent" Stroke="#FF0D82C0" RadiusX="3" RadiusY="3" />
			<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Up_Arrow" VerticalAlignment="Center" Fill="#FF0D82C0" Data="M 0 0 L 4 4 L 8 0 Z" />
			<Path SnapsToDevicePixels="True" Visibility="Collapsed" HorizontalAlignment="Center" x:Name="Down_Arrow" VerticalAlignment="Center" Fill="#FF0D82C0" Data="M 0 4 L 4 0 L 8 4 Z" />
		</Grid>
		<ControlTemplate.Triggers>
			<Trigger Property="IsChecked" Value="true">
				<Setter Property="Visibility" Value="Visible" TargetName="Down_Arrow" />
				<Setter Property="Visibility" Value="Collapsed" TargetName="Up_Arrow" />
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>

	<Style x:Key="ExpanderLookAlikeToggleBotton" TargetType="ToggleButton">
		<Setter Property="SnapsToDevicePixels" Value="true" />
		<Setter Property="OverridesDefaultStyle" Value="true" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ToggleButton">
					<Grid>
						<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Up_Arrow" VerticalAlignment="Center" Stroke="#FF666666" StrokeThickness="2" Data="M 0 0 L 4 4 L 8 0" />
						<Path SnapsToDevicePixels="True" Visibility="Collapsed" HorizontalAlignment="Center" x:Name="Down_Arrow" VerticalAlignment="Center" Stroke="#FF666666" StrokeThickness="2" Data="M 0 4 L 4 0 L 8 4" />
						<Ellipse SnapsToDevicePixels="True" Margin="0" x:Name="Ellipse" Fill="Transparent" Stroke="#FFa9a9a9"/>
						<VisualStateManager.VisualStateGroups>
						<VisualStateGroup x:Name="CommonStates">
							<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="0:0:0.1" />
									<VisualTransition GeneratedDuration="0" To="Pressed" />
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal" />
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Ellipse">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Up_Arrow">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Down_Arrow">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
						</VisualStateGroup>
					</VisualStateManager.VisualStateGroups>
					</Grid>
				<ControlTemplate.Triggers>
					<Trigger Property="IsChecked" Value="True">
						<Setter Property="Visibility" Value="Visible" TargetName="Down_Arrow" />
						<Setter Property="Visibility" Value="Collapsed" TargetName="Up_Arrow" />
					</Trigger>
				</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="VerticalExpanderLookAlikeToggleBotton" TargetType="ToggleButton">
		<Setter Property="SnapsToDevicePixels" Value="true" />
		<Setter Property="OverridesDefaultStyle" Value="true" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ToggleButton">
					<Grid>
						<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Left_Arrow" VerticalAlignment="Center" Stroke="#FF666666" StrokeThickness="2" Data="M 4 8 L 0 4 L 4 0" />
						<Path SnapsToDevicePixels="True" Visibility="Collapsed" HorizontalAlignment="Center" x:Name="Right_Arrow" VerticalAlignment="Center" Stroke="#FF666666" StrokeThickness="2" Data="M 0 0 L 4 4 L 0 8" />
						<Ellipse SnapsToDevicePixels="True" Margin="0" x:Name="Ellipse" Fill="Transparent" Stroke="#FFa9a9a9"/>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="0:0:0.1" />
									<VisualTransition GeneratedDuration="0" To="Pressed" />
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal" />
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Ellipse">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Left_Arrow">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Right_Arrow">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Visibility" Value="Visible" TargetName="Right_Arrow" />
							<Setter Property="Visibility" Value="Collapsed" TargetName="Left_Arrow" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="VerticalRightExpanderLookAlikeToggleBotton" TargetType="ToggleButton">
		<Setter Property="SnapsToDevicePixels" Value="true" />
		<Setter Property="OverridesDefaultStyle" Value="true" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ToggleButton">
					<Grid>
						<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Left_Arrow" VerticalAlignment="Center" Stroke="#FF666666" StrokeThickness="2" Data="M 0 0 L 4 4 L 0 8" />
						<Path SnapsToDevicePixels="True" Visibility="Collapsed" HorizontalAlignment="Center" x:Name="Right_Arrow" VerticalAlignment="Center" Stroke="#FF666666" StrokeThickness="2" Data="M 4 8 L 0 4 L 4 0" />
						<Ellipse SnapsToDevicePixels="True" Margin="0" x:Name="Ellipse" Fill="Transparent" Stroke="#FFa9a9a9"/>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="0:0:0.1" />
									<VisualTransition GeneratedDuration="0" To="Pressed" />
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal" />
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Ellipse">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Left_Arrow">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="Right_Arrow">
											<EasingColorKeyFrame KeyTime="0" Value="Black" />
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Visibility" Value="Visible" TargetName="Right_Arrow" />
							<Setter Property="Visibility" Value="Collapsed" TargetName="Left_Arrow" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="LupenToggleButtonStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Height" Value="25" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Foreground" Value="#FFFFFFFF" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Border x:Name="border" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4" Padding="0,0,0,0">
						<Border.Background>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF000000" Offset="0" />
								<GradientStop Color="#FF262626" Offset="1" />
							</LinearGradientBrush>
						</Border.Background>
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="0.5*" />
								<RowDefinition Height="0.5*" />
							</Grid.RowDefinitions>
							<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
								<Border.Background>
									<RadialGradientBrush>
										<RadialGradientBrush.RelativeTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
												<SkewTransform AngleX="0" AngleY="0" />
												<RotateTransform Angle="0" />
												<TranslateTransform X="-0.368" Y="-0.152" />
											</TransformGroup>
										</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#B28DBDFF" Offset="0" />
										<GradientStop Color="#008DBDFF" Offset="1" />
									</RadialGradientBrush>
								</Border.Background>
							</Border>
							<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#99FFFFFF" Offset="0" />
										<GradientStop Color="#33FFFFFF" Offset="1" />
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border Margin="0,0,0,0" Grid.Row="0" Grid.RowSpan="2">
								<Grid>
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="Auto" />
										<ColumnDefinition Width="*" />
									</Grid.ColumnDefinitions>
									<Grid.RowDefinitions>
										<RowDefinition Height="Auto" />
										<RowDefinition Height="Auto" />
									</Grid.RowDefinitions>
									<Canvas Grid.Column="0" Grid.Row="0" Width="14" Margin="5,4,2,2">
										<Ellipse Stroke="#FFFFFF" Height="7" Width="7" StrokeThickness="2" Fill="{x:Null}" />
										<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFF" Canvas.Left="4" Canvas.Top="4" X1="6" Y1="5" X2="1.6" Y2="2" StrokeThickness="2" />
									</Canvas>
									<Path Margin="-6,-3,0,0" Grid.Column="1" Grid.Row="0" SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Left_Arrow" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="2" Data="M 2 10 L 4 12 L 6 10 Z" />
									<Path Margin="-6,-3,0,0" Grid.Column="1" Grid.Row="0" SnapsToDevicePixels="True" Visibility="Collapsed" HorizontalAlignment="Center" x:Name="Right_Arrow" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="2" Data="M 2 12 L 4 10 L 6 12 Z" />
									<ContentPresenter Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,0,3,0" />
								</Grid>
							</Border>
						</Grid>
					</Border>

					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="shine" Value="0.4" />
							<Setter Property="Background" TargetName="border" Value="#998DBDFF" />
							<Setter Property="Visibility" TargetName="glow" Value="Hidden" />
							<Setter Property="BorderBrush" TargetName="border" Value="#FF0C0C0C" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Visibility" Value="Visible" TargetName="Right_Arrow" />
							<Setter Property="Visibility" Value="Collapsed" TargetName="Left_Arrow" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>

	<BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
	<!-- EndRegion -->

	<!-- RegionStyle set the groupBox Border to HitTestVisible = false, so the border does not overlap the header content-->
	<Style TargetType="{x:Type GroupBox}">
		<Setter Property="BorderBrush" Value="#D5DFE5" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type GroupBox}">
					<Grid SnapsToDevicePixels="true">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="6" />
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="6" />
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
							<RowDefinition Height="6" />
						</Grid.RowDefinitions>
						<Border Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="0" Grid.RowSpan="3" CornerRadius="7,7,7,7" Background="{DynamicResource ControlBackground}" BorderThickness="1,1,1,1" Margin="5,5,5,0" BorderBrush="#FF606060" />
						<Border x:Name="Header" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Padding="3,0,3,0" BorderBrush="#FF606060" Margin="0,10,0,0" Grid.ColumnSpan="2" BorderThickness="0,0,0,1" Background="{x:Null}">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True" RenderTransformOrigin="0,0.5" Margin="5,0,0,3">
								<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>

						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2" Margin="3,3,3,5" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<Style x:Key="ExpanderTextBoxStyle" TargetType="{x:Type Expander}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Expander}">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						<Border BorderBrush="{StaticResource BorderBrush}" Height="22" BorderThickness="1" Background="White">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<TextBlock VerticalAlignment="Center" Margin="3 0" Cursor="Arrow" Text="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type Expander}, Mode=FindAncestor}}" />
								<ToggleButton Grid.Column="1" VerticalAlignment="Stretch" Width="18" IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}" />
							</Grid>
						</Border>
						<ContentPresenter x:Name="ExpandSite" Grid.Row="1">
							<ContentPresenter.LayoutTransform>
								<ScaleTransform ScaleY="0" />
							</ContentPresenter.LayoutTransform>
						</ContentPresenter>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsExpanded" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard>
									<Storyboard>
										<DoubleAnimation Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="LayoutTransform.ScaleY" To="1" AccelerationRatio="1" Duration="0:0:0.3" />
									</Storyboard>
								</BeginStoryboard>
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard>
									<Storyboard>
										<DoubleAnimation Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="LayoutTransform.ScaleY" To="0" DecelerationRatio="1" Duration="0:0:0.3" />
									</Storyboard>
								</BeginStoryboard>
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="SimpleExpander" TargetType="{x:Type Expander}">
		<Setter Property="Margin" Value="1 0 1 5" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Expander}">
					<Grid Margin="2 0">
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						<Border FocusManager.IsFocusScope="True" x:Name="Border" Padding="0" BorderBrush="#FF000000" BorderThickness="1" CornerRadius="3 3 0 0" Background="#FF000000">
							<ToggleButton IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}" SnapsToDevicePixels="True" Padding="3 0"
							              BorderThickness="0" Background="Transparent" BorderBrush="Transparent" Height="22">
								<ToggleButton.Template>
									<ControlTemplate TargetType="{x:Type ToggleButton}">
										<Grid Background="Transparent">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="*" />
												<ColumnDefinition Width="26" />
											</Grid.ColumnDefinitions>
											<Label Padding="0" Margin="5 0" VerticalAlignment="Center" Content="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type Expander}, Mode=FindAncestor}}" Foreground="#FFFFFFFF" />
											<Grid x:Name="grid_button" Grid.Column="1" Height="16" Width="16" Margin="1" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
												<Grid.RenderTransform>
													<RotateTransform Angle="0" />
												</Grid.RenderTransform>
												<Ellipse SnapsToDevicePixels="True" x:Name="ellipse" Stroke="#FFA0A0A0" StrokeThickness="2" />
												<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Up_Arrow" VerticalAlignment="Center" Fill="#FFA0A0A0" Data="M0,0L4,7 8,0z" Margin="0,2,0,0" />

											</Grid>
										</Grid>
										<ControlTemplate.Triggers>
											<Trigger Property="IsChecked" Value="true">
												<Trigger.EnterActions>

													<BeginStoryboard>
														<Storyboard>
															<DoubleAnimation Storyboard.TargetName="grid_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" To="180" Duration="0:0:0.3" />
														</Storyboard>
													</BeginStoryboard>
												</Trigger.EnterActions>
												<Trigger.ExitActions>
													<BeginStoryboard>
														<Storyboard>
															<DoubleAnimation Storyboard.TargetName="grid_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Duration="0:0:0.3" />
														</Storyboard>
													</BeginStoryboard>
												</Trigger.ExitActions>
											</Trigger>
											<EventTrigger RoutedEvent="Mouse.MouseEnter">
												<BeginStoryboard>
													<Storyboard>
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="ellipse" To="#FFFFFFFF" />
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="Up_Arrow" To="#FFFFFFFF" />
													</Storyboard>
												</BeginStoryboard>
											</EventTrigger>
											<EventTrigger RoutedEvent="Mouse.MouseLeave">
												<BeginStoryboard>
													<Storyboard>
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="ellipse" />
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="Up_Arrow" />

													</Storyboard>
												</BeginStoryboard>
											</EventTrigger>
										</ControlTemplate.Triggers>
									</ControlTemplate>
								</ToggleButton.Template>
							</ToggleButton>
						</Border>
						<Border Grid.Row="0" IsHitTestVisible="False" FocusManager.IsFocusScope="True" Padding="0" BorderBrush="#FF000000" BorderThickness="1" CornerRadius="3 3 0 0">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,0.55" StartPoint="0.5,0">
									<GradientStop Color="#9AFFFFFF" Offset="0" />
									<GradientStop Color="#00FFFFFF" Offset="1" />
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<ContentPresenter x:Name="ExpandSite" Grid.Row="1" HorizontalAlignment="Left">
							<ContentPresenter.LayoutTransform>
								<ScaleTransform ScaleY="1" ScaleX="1" />
							</ContentPresenter.LayoutTransform>
						</ContentPresenter>

					</Grid>

					<ControlTemplate.Triggers>

						<Trigger Property="IsExpanded" Value="False">
							<Trigger.EnterActions>

								<BeginStoryboard>
									<Storyboard>
										<DoubleAnimation Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="LayoutTransform.ScaleY" To="0" AccelerationRatio="1" Duration="0:0:0.3" />
									</Storyboard>
								</BeginStoryboard>
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard>
									<Storyboard>

										<DoubleAnimation Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="LayoutTransform.ScaleY" To="1" DecelerationRatio="1" Duration="0:0:0.3" />
									</Storyboard>
								</BeginStoryboard>
							</Trigger.ExitActions>

							<Setter Property="HorizontalAlignment" Value="Left" TargetName="ExpandSite" />

						</Trigger>
					</ControlTemplate.Triggers>

				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<Style x:Key="SimpleExpanderTopExpand" TargetType="{x:Type Expander}">
		<Setter Property="Margin" Value="1 0 1 5" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Expander}">
					<Grid Margin="2 0">
						<Grid.RowDefinitions>
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />

						</Grid.RowDefinitions>
						<Border FocusManager.IsFocusScope="True" Grid.Row="1" x:Name="Border" Padding="0" BorderBrush="#FF000000" BorderThickness="1" CornerRadius="0 0 3 3" Background="#FF000000">
							<ToggleButton IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}" SnapsToDevicePixels="True" Padding="3 0"
							              BorderThickness="0" Background="Transparent" BorderBrush="Transparent" Height="25">
								<ToggleButton.Template>
									<ControlTemplate TargetType="{x:Type ToggleButton}">
										<Grid Background="Transparent">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="*" />
												<ColumnDefinition Width="26" />
											</Grid.ColumnDefinitions>
											<Label Padding="0" Margin="5 0" VerticalAlignment="Center" Content="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type Expander}, Mode=FindAncestor}}" Foreground="#FFFFFFFF" />
											<Grid x:Name="grid_button" Grid.Column="1" Height="20" Width="20" Margin="1" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
												<Grid.RenderTransform>
													<RotateTransform Angle="0" />
												</Grid.RenderTransform>
												<Ellipse SnapsToDevicePixels="True" x:Name="ellipse" Stroke="#FFA0A0A0" StrokeThickness="2" />
												<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Up_Arrow" VerticalAlignment="Center" Fill="#FFA0A0A0" Data="M0,0L4,7 8,0z" Margin="0,2,0,0" />

											</Grid>
										</Grid>
										<ControlTemplate.Triggers>
											<Trigger Property="IsChecked" Value="true">
												<Trigger.EnterActions>

													<BeginStoryboard>
														<Storyboard>
															<DoubleAnimation Storyboard.TargetName="grid_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" To="180" Duration="0:0:0.3" />
														</Storyboard>
													</BeginStoryboard>
												</Trigger.EnterActions>
												<Trigger.ExitActions>
													<BeginStoryboard>
														<Storyboard>
															<DoubleAnimation Storyboard.TargetName="grid_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Duration="0:0:0.3" />
														</Storyboard>
													</BeginStoryboard>
												</Trigger.ExitActions>
											</Trigger>
											<EventTrigger RoutedEvent="Mouse.MouseEnter">
												<BeginStoryboard>
													<Storyboard>
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="ellipse" To="#FFFFFFFF" />
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="Up_Arrow" To="#FFFFFFFF" />
													</Storyboard>
												</BeginStoryboard>
											</EventTrigger>
											<EventTrigger RoutedEvent="Mouse.MouseLeave">
												<BeginStoryboard>
													<Storyboard>
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="ellipse" />
														<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="Up_Arrow" />

													</Storyboard>
												</BeginStoryboard>
											</EventTrigger>
										</ControlTemplate.Triggers>
									</ControlTemplate>
								</ToggleButton.Template>
							</ToggleButton>
						</Border>
						<Border IsHitTestVisible="False" Grid.Row="1" FocusManager.IsFocusScope="True" Padding="0" BorderBrush="#FF000000" BorderThickness="1" CornerRadius="0 0 3 3">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,0.55" StartPoint="0.5,0">
									<GradientStop Color="#9AFFFFFF" Offset="0" />
									<GradientStop Color="#00FFFFFF" Offset="1" />
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<ContentPresenter Grid.Row="0" x:Name="ExpandSite" HorizontalAlignment="Left">
							<ContentPresenter.LayoutTransform>
								<ScaleTransform ScaleY="1" ScaleX="1" />
							</ContentPresenter.LayoutTransform>
						</ContentPresenter>

					</Grid>

					<ControlTemplate.Triggers>

						<Trigger Property="IsExpanded" Value="False">
							<Trigger.EnterActions>

								<BeginStoryboard>
									<Storyboard>
										<DoubleAnimation Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="LayoutTransform.ScaleY" To="0" AccelerationRatio="1" Duration="0:0:0.3" />
									</Storyboard>
								</BeginStoryboard>
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard>
									<Storyboard>

										<DoubleAnimation Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="LayoutTransform.ScaleY" To="1" DecelerationRatio="1" Duration="0:0:0.3" />
									</Storyboard>
								</BeginStoryboard>
							</Trigger.ExitActions>

							<Setter Property="HorizontalAlignment" Value="Left" TargetName="ExpandSite" />

						</Trigger>
					</ControlTemplate.Triggers>

				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="{x:Type uc:PopUpEdit}">
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
		<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="3,3,0,0" />
		<Setter Property="AllowDrop" Value="true" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type uc:PopUpEdit}">
					<Microsoft_Windows_Themes:ListBoxChrome SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" RenderMouseOver="{TemplateBinding IsMouseOver}">
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>
							<ScrollViewer SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" x:Name="PART_ContentHost" />
							<Button Grid.Column="1" Width="18" VerticalAlignment="Stretch" x:Name="PART_PopUpButton" Padding="0,7,0,0" Margin="1,0,0,0" Height="18">
								<Polyline Stroke="White" SnapsToDevicePixels="True" StrokeThickness="2" StrokeDashArray="1 1" Points="0,1 10,1" VerticalAlignment="Center" HorizontalAlignment="Center" />
							</Button>

							<Button Padding="0" Grid.Column="2" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}" Visibility="{TemplateBinding NewButtonVisibility}" VerticalAlignment="Stretch" x:Name="PART_NewButton" ToolTip="Neu" Margin="1,0,1,0" Height="20">
								<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
									<Path Stroke="White" StrokeThickness="1.5" ToolTip="Neu" Fill="LightGray" Data=" M -4 -6 L 1 -6 L 4 -3 L 4 5 L -4 5 L -4 -6 Z" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
								</Canvas>
							</Button>

							<Button Padding="0" Grid.Column="3" Visibility="{TemplateBinding DeleteButtonVisibility}" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}" VerticalAlignment="Stretch" x:Name="PART_DeleteButton" Margin="1,0,1,0" Height="20">
								<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
									<Path Stroke="White" StrokeThickness="1.5" Data="M -3,-3 L 3, 3" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
									<Path Stroke="White" StrokeThickness="1.5" Data="M 3,-3 L -3, 3" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
								</Canvas>
							</Button>
						</Grid>
					</Microsoft_Windows_Themes:ListBoxChrome>
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="{x:Type uc:NullItemComboBox}" TargetType="{x:Type uc:NullItemComboBox}">

		<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 uc:NullItemComboBox}">
					<Grid SnapsToDevicePixels="true">
						<Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
							<Grid Grid.IsSharedSizeScope="true">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="1" />
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" SharedSizeGroup="ComboBoxButton" />
								</Grid.ColumnDefinitions>
								<Border x:Name="SelectedItemBorder" Grid.ColumnSpan="2" Margin="2,1,20,1">
									<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="3 0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" />
								</Border>
								<ToggleButton Style="{DynamicResource ComboBoxTransparentButtonStyle}" Grid.ColumnSpan="3" Grid.Column="0"
								              IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
								<Label Visibility="Hidden" x:Name="label_nullText" Content="{TemplateBinding NullText}" Grid.ColumnSpan="2"
								       Grid.Column="0" Margin="5,3,20,3" Padding="0" VerticalAlignment="Center" HorizontalAlignment="Left" IsHitTestVisible="False" />
							</Grid>
						</Border>
						<Popup x:Name="PART_Popup" Focusable="false" AllowsTransparency="true" IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
							<Microsoft_Windows_Themes:SystemDropShadowChrome MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" x:Name="Shdw" Color="Transparent">
								<Border x:Name="DropDownBorder" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1">
									<ScrollViewer>
										<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.DirectionalNavigation="Contained" />
									</ScrollViewer>
								</Border>
							</Microsoft_Windows_Themes:SystemDropShadowChrome>
						</Popup>
					</Grid>
					<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="SelectedItemBorder" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
						</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>
						<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" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
						</Trigger>
						<Trigger Property="IsGrouping" Value="true">
							<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
						</Trigger>
						<Trigger Property="SelectedItem" Value="{x:Null}">
							<Setter Property="Visibility" Value="Visible" TargetName="label_nullText" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Style.Triggers>
			<Trigger Property="IsEditable" Value="true">
				<Setter Property="IsTabStop" Value="false" />
				<Setter Property="Padding" Value="0,1" />
				<Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" />
			</Trigger>
		</Style.Triggers>
	</Style>
	<!-- EndRegion -->

	<!-- Region Navigation Styles and Templates -->


	<Style x:Key="SearchDetailStyle" 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>
								<Image Source="{Binding Path=IconPath}" Margin="0,0,5,0" Height="30" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" />
								<TextBlock VerticalAlignment="Center" Grid.Column="1" Text="{Binding Path=DetailDescription}" Margin="3,0,0,0" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
							</Grid>
						</Border>
					</Grid>

					<ControlTemplate.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>

						<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="SearchSimpleStyle" 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="20" 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="20">
							<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" OpacityMask="{x:Null}" SnapsToDevicePixels="True">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<Image Grid.RowSpan="2" Source="{Binding Path=IconPath}" Margin="0,0,5,0" Height="20" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" Grid.Row="0" />
								<TextBlock VerticalAlignment="Center" Grid.Column="1" Text="{Binding Path=SimpleDescription}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
							</Grid>

						</Border>
					</Grid>

					<ControlTemplate.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>

						<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>

	<ControlTemplate x:Key="NavigationListBoxTemplate" TargetType="{x:Type ListBox}">
		<Border x:Name="Bd" SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
			<ScrollViewer Focusable="False" Padding="{TemplateBinding Padding}">
                <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
			</ScrollViewer>
		</Border>
	</ControlTemplate>

	<Style x:Key="NavigationListStyle" TargetType="{x:Type ListBox}">
		<Setter Property="Template" Value="{StaticResource NavigationListBoxTemplate}" />
		<Setter Property="Padding" Value="2,0,2,2" />
	</Style>

    <Style x:Key="NavigationListStyleWithSampleDescAsToolTip" TargetType="{x:Type ListBoxItem}">
        <Setter Property="Padding" Value="2,2,2,2" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid ToolTip="{Binding Path=DetailDescription}" Margin="2,0,2,2">
                        <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">
                                <TextBlock Text="{Binding Path=SimpleDescription}" VerticalAlignment="Center" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
                            </Grid>
                        </Border>
                    </Grid>
                    <ControlTemplate.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>

                        <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="NavigationListItemStyle" 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" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <Image Grid.RowSpan="2" Source="..\Ressources\Icons\UserHomeMaleDisabled.png" Margin="0,0,5,0" Height="30" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" Grid.Row="0" />
                                <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
                                    <TextBlock Text="{Binding Path=FirstName}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
                                    <TextBlock Text="{Binding Path=LastName}" Margin="3,0,0,0" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
                                    <TextBlock Text="{Binding Path=DateOfBirth}" Margin="3,0,0,0" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
                                </StackPanel>
                                <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal">
                                    <TextBlock Text="{Binding Path=Street}" FontSize="14" Foreground="#FFA0A0A0" FontFamily="Microsoft Sans Serif" />
                                    <TextBlock Text="{Binding Path=PostalCode}" Margin="10,0,0,0" FontSize="14" Foreground="#FFA0A0A0" FontFamily="Microsoft Sans Serif" />
                                    <TextBlock Text="{Binding Path=Town}" Margin="3,0,0,0" FontSize="14" Foreground="#FFA0A0A0" FontFamily="Microsoft Sans Serif" />
                                </StackPanel>
                            </Grid>
                        </Border>
					</Grid>

					<ControlTemplate.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>

						<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>
	<!-- EndRegion -->

	<!-- Region Template für NavigationGroupBox Styles-->
	<SolidColorBrush x:Key="NavigationHeaderBrushTest" Color="#FF474747" />
	<LinearGradientBrush x:Key="NavigationContentBrushTest" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFBEAF00" Offset="0" />
		<GradientStop Color="#FF8C7D00" Offset="1" />
	</LinearGradientBrush>
	<ControlTemplate x:Key="NavigationGroupTemplate" TargetType="{x:Type GroupBox}">
		<Grid SnapsToDevicePixels="True">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
			<Border Grid.Column="0" Grid.Row="0" Background="{DynamicResource NavigationHeaderBrush}" CornerRadius="1,1,1,1" Height="30" />

			<Border Margin="0,8,0,0" x:Name="Header" Grid.Column="0" Grid.Row="0" Background="{x:Null}" Padding="3,0,3,0">
				<ContentPresenter 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" />
			</Border>
			<Border Grid.Column="0" Grid.Row="1" Padding="0,0,0,0" CornerRadius="1,1,1,1" Margin="0,2,0,0" Background="{DynamicResource NavigationContentBrush}">
				<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" />
			</Border>
		</Grid>
	</ControlTemplate>
	<!-- EndRegion -->

	<!-- Region Customer Styles-->
	<SolidColorBrush x:Key="CustomerContentBrush" Color="#FF3B7799" />
	<LinearGradientBrush x:Key="CustomerListBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF3B7799" Offset="0" />
		<GradientStop Color="#FF19485C" Offset="1" />
	</LinearGradientBrush>
	<Style x:Key="CustomerNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF2A4958" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF3B7799" Offset="0" />
				<GradientStop Color="#FF19485C" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<Style x:Key="CustomerSimpleStyle" 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="20" 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="20">
							<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" OpacityMask="{x:Null}" SnapsToDevicePixels="True">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<Image Grid.RowSpan="2" Source="..\Ressources\Icons\UserHomeMaleDisabled.png" Margin="0,0,5,0" Height="20" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" Grid.Row="0" />
								<StackPanel Grid.Column="1" Orientation="Horizontal">
									<TextBlock Text="{Binding Path=FirstName}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
									<TextBlock Text="{Binding Path=LastName}" Margin="3,0,0,0" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
								</StackPanel>
							</Grid>

						</Border>
					</Grid>

					<ControlTemplate.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>

						<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>

<!-- Region Employee Styles-->
	<SolidColorBrush x:Key="EmployeeContentBrush" Color="#FF45993B" />
	<LinearGradientBrush x:Key="EmployeeListBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF45993B" Offset="0" />
		<GradientStop Color="#FF205C19" Offset="1" />
	</LinearGradientBrush>
	<Style x:Key="EmployeeNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF474747" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF45993B" Offset="0" />
				<GradientStop Color="#FF205C19" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
<!-- EndRegion -->
    
    
<!--########  Wohnheim Style #####################################################################################################-->    
    <!-- Region Wohnheim Styles-->

    <SolidColorBrush x:Key="WohnheimContentBrush" Color="#FF325CED" />
    <LinearGradientBrush x:Key="WohnheimListBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF325CED" Offset="0" />
        <GradientStop Color="#FF113abf" Offset="1" />
    </LinearGradientBrush>
    <Style x:Key="WohnheimNavigationStyle" TargetType="{x:Type GroupBox}">
        <Style.Resources>
            <SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF474747" />
            <LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF325CED" Offset="0" />
                <GradientStop Color="#FF113abf" Offset="1" />
            </LinearGradientBrush>
        </Style.Resources>

        <Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
    </Style>
    <!-- EndRegion -->
<!--#############################################################################################################-->  

    <!-- Region Organisation Styles-->
	<LinearGradientBrush x:Key="OrganisationGradientBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFC8C000" Offset="0" />
		<GradientStop Color="#FF706000" Offset="1" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="OrganisationContentBrush" Color="#FFC8C000" />
	<Style x:Key="OrganisationNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF474747" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FFC8C000" Offset="0" />
				<GradientStop Color="#FF706000" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>

	<Style x:Key="OrganisationDetailStyle" TargetType="{x:Type ListBoxItem}">
		<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
		<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
		<Setter Property="Margin" Value="0,2,0,0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate>
					<Grid>
						<Border x:Name="ItemBorder" 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="*" />
									<ColumnDefinition Width="Auto" />
								</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.Row="0" Grid.Column="1" Text="{Binding Path=DetailDescription}" FontSize="14" Foreground="#FFFFFFFF" FontFamily="Microsoft Sans Serif" />
								<TextBlock Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" FontSize="12" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" VerticalAlignment="Center">
									<TextBlock.Visibility>
										<Binding Path="IsDeleted" ConverterParameter="Organisation">
											<Binding.Converter>
												<conv:ReactivationRight2VisibilityConverter/>
											</Binding.Converter>
										</Binding>
									</TextBlock.Visibility>
                                    <Hyperlink Click="Hyperlink_Organisation_Reaktivieren_Click" TargetName="_NewWindow" Foreground="#FFD2D2D2" Tag="{Binding}">
										Reaktivieren
                                    </Hyperlink>
								</TextBlock>
								<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>

					<ControlTemplate.Triggers>
						<DataTrigger Binding="{Binding Path=IsArchived}" Value="True">
							<Setter Property="Foreground" TargetName="txtDetail1" Value="#FF808080" />
							<Setter Property="Foreground" TargetName="txtDetail2" Value="#FF808080" />
						</DataTrigger>
						<DataTrigger Binding="{Binding Path=IsDeleted}" Value="True">
							<Setter Property="Foreground" TargetName="txtDetail1" Value="#FFF97E7B" />
							<Setter Property="Foreground" TargetName="txtDetail2" 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>
    
    
	<!-- EndRegion -->

    <Style x:Key="WohnheimDetailStyle" 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="*" />
                                    <ColumnDefinition Width="Auto" />
                                </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.Row="0" Grid.Column="1" Text="{Binding Path=DetailDescription}" FontSize="14" Foreground="#FFFFFFFF" FontFamily="Microsoft Sans Serif" />
                                <!--<TextBlock Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" FontSize="12" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" VerticalAlignment="Center">
                                    <TextBlock.Visibility>
                                        <Binding Path="IsDeleted" ConverterParameter="Organisation">
                                            <Binding.Converter>
                                                <conv:ReactivationRight2VisibilityConverter/>
                                            </Binding.Converter>
                                        </Binding>
                                    </TextBlock.Visibility>
                                    <Hyperlink Click="Hyperlink_Organisation_Reaktivieren_Click" TargetName="_NewWindow" Foreground="#FFD2D2D2" Tag="{Binding}">
										Reaktivieren
                                    </Hyperlink>
                                </TextBlock>-->
                                <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>

                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding Path=IsArchived}" Value="True">
                            <Setter Property="Foreground" TargetName="txtDetail1" Value="#FF808080" />
                            <Setter Property="Foreground" TargetName="txtDetail2" Value="#FF808080" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding Path=IsDeleted}" Value="True">
                            <Setter Property="Foreground" TargetName="txtDetail1" Value="#FFF97E7B" />
                            <Setter Property="Foreground" TargetName="txtDetail2" 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>
    
    <!-- Region Person Styles-->
	<SolidColorBrush x:Key="PersonContentBrush" Color="#FFB5662D" />
	<LinearGradientBrush x:Key="PersonListBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFB5662D" Offset="0" />
		<GradientStop Color="#FF9E3D02" Offset="1" />
	</LinearGradientBrush>
	<Style x:Key="PersonNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF474747" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FFB5662D" Offset="0" />
				<GradientStop Color="#FF9E3D02" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>

	<Style x:Key="PersonDetailStyle" TargetType="{x:Type ListBoxItem}">
		<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
		<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}" />
		<Setter Property="Margin" Value="0,2,0,0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate>
					<Grid>
						<Border x:Name="ItemBorder" 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" SharedSizeGroup="personDetailColumn1"/>
                                    <ColumnDefinition Width="Auto" SharedSizeGroup="personDetailColumn2"/>
                                    <ColumnDefinition Width="Auto" SharedSizeGroup="personDetailColumn3"/>
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<Image Grid.RowSpan="2" Source="..\Ressources\Icons\AnonymousUserDisabled.png" 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.Row="0" Grid.Column="1" 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" />
								<TextBlock x:Name="txtDetail3" Grid.Row="0" Grid.Column="2" Text="{Binding Path=Function}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" Margin="10,0,10,0"/>
                                <TextBlock Visibility="Collapsed" x:Name="txtDetail4" Grid.Column="3" Grid.Row="0"
                                           Grid.RowSpan="2" Text="{Binding Path=ContactSummaryInfo}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
                                <StackPanel Orientation="Vertical" Grid.Column="3" Grid.Row="0" Grid.RowSpan="2">
                                    <TextBlock FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif">
                                        <TextBlock.Visibility>
                                            <Binding Path="Communication1">
                                                <Binding.Converter>
                                                    <conv:ObjectVisibilityConverter/>
                                                </Binding.Converter>
                                            </Binding>
                                        </TextBlock.Visibility>
                                        <TextBlock.Text>
                                            <MultiBinding StringFormat="{}Tel.: {0}">
                                                <Binding  Path="Communication1"/>
                                            </MultiBinding>
                                        </TextBlock.Text>
                                    </TextBlock>
                                    <TextBlock FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif">
                                        <TextBlock.Visibility>
                                            <Binding Path="Communication2">
                                                <Binding.Converter>
                                                    <conv:ObjectVisibilityConverter/>
                                                </Binding.Converter>
                                            </Binding>
                                        </TextBlock.Visibility>
                                        <TextBlock.Text>
                                            <MultiBinding StringFormat="{}Mobil: {0}">
                                                <Binding  Path="Communication2"/>
                                            </MultiBinding>
                                        </TextBlock.Text>
                                    </TextBlock>
                                    <TextBlock Text="EMail: " FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif">
                                        <TextBlock.Visibility>
                                            <Binding Path="Communication3">
                                                <Binding.Converter>
                                                    <conv:ObjectVisibilityConverter/>
                                                </Binding.Converter>
                                            </Binding>
                                        </TextBlock.Visibility>
                                        <Hyperlink NavigateUri="{Binding Path=Communication3}" RequestNavigate="EMailHyperLink_RequestNavigate" x:Name="EMailHyperlink" TargetName="_blank" Foreground="#FFD2D2D2">
                                            <TextBlock FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif">
                                                <TextBlock.Text>
                                                    <Binding Path="Communication3"/>
                                                </TextBlock.Text>
                                            </TextBlock>
                                        </Hyperlink>
                                    </TextBlock>
                                    <TextBlock FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif">
                                        <TextBlock.Visibility>
                                            <Binding Path="Communication4">
                                                <Binding.Converter>
                                                    <conv:ObjectVisibilityConverter/>
                                                </Binding.Converter>
                                            </Binding>
                                        </TextBlock.Visibility>
                                        <TextBlock.Text>
                                            <MultiBinding StringFormat="{}Fax: {0}">
                                                <Binding  Path="Communication4"/>
                                            </MultiBinding>
                                        </TextBlock.Text>
                                    </TextBlock>
                                </StackPanel>
								<TextBlock Grid.Row="0" Grid.RowSpan="2" Grid.Column="4" FontSize="12" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" VerticalAlignment="Center">
									<TextBlock.Visibility>
										<Binding Path="IsDeleted" ConverterParameter="Person">
											<Binding.Converter>
												<conv:ReactivationRight2VisibilityConverter/>
											</Binding.Converter>
										</Binding>
									</TextBlock.Visibility>
                                    <Hyperlink Click="Hyperlink_Person_Reaktivieren_Click" TargetName="_NewWindow" Foreground="#FFD2D2D2" Tag="{Binding}">
										Reaktivieren
                                    </Hyperlink>
								</TextBlock>
							</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="txtDetail3" Value="#FF808080" />
                            <Setter Property="Foreground" TargetName="txtDetail4" 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="txtDetail3" Value="#FFF97E7B" />
							<Setter Property="Foreground" TargetName="txtDetail4" 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>
	<!-- EndRegion -->

	<!-- Region SupportConcept Styles-->
	<SolidColorBrush x:Key="SupportConceptContentBrush" Color="#FF993B3B" />
	<LinearGradientBrush x:Key="SupportConceptListBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF993B3B" Offset="0" />
		<GradientStop Color="#FF5C1919" Offset="1" />
	</LinearGradientBrush>
	<Style x:Key="SupportConceptNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF582A2A" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF993B3B" Offset="0" />
				<GradientStop Color="#FF5C1919" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>


	<Style x:Key="SupportConceptHistoryStyle" 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="20" 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="20">
							<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" OpacityMask="{x:Null}" SnapsToDevicePixels="True">
								<Grid.ColumnDefinitions>
									<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" Source="{Binding Path=IconPath}" Margin="0,0,5,0" Height="20" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" RenderTransformOrigin="0.5,0.5" Grid.Row="0" />


								<TextBlock Grid.Column="1" Grid.Row="0" Text="{Binding Path=CustomerName}" FontSize="14" Foreground="#FFD2D2D2" FontFamily="Microsoft Sans Serif" />
								<TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Path=SimpleDescription}" FontSize="12" Foreground="#FFA0A0A0" FontFamily="Microsoft Sans Serif" />
							</Grid>
						</Border>


					</Grid>

					<ControlTemplate.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>

						<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>
	<!-- EndRegion -->

	<!-- Region Team Styles-->
	<SolidColorBrush x:Key="TeamContentBrush" Color="#FF713B99" />
	<Style x:Key="TeamNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF442A58" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF713B99" Offset="0" />
				<GradientStop Color="#FF42195C" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->
	
	<!-- Region User Styles-->
	<SolidColorBrush x:Key="UserContentBrush" Color="#FF4B4B4B" />
	<Style x:Key="UserNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF474747" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF4B4B4B" Offset="0" />
				<GradientStop Color="#FF000000" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<!-- Region UserGroup Styles-->
	<SolidColorBrush x:Key="UserGroupContentBrush" Color="#FF6DB7BA" />


	<Style x:Key="UserGroupNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF354749" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF6DB7BA" Offset="0" />
				<GradientStop Color="#FF375D60" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<!-- Region Administration Styles-->

	<SolidColorBrush x:Key="AdministrationContentBrush" Color="#FFE23795" />
	<Style x:Key="AdministrationNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF5E1C40" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FFE23795" Offset="0" />
				<GradientStop Color="#FF97366B" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<!-- Region Resource Styles-->

	<SolidColorBrush x:Key="ResourceContentBrush" Color="#FF04B4D0" />
	<Style x:Key="ResourceNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF054F5A" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF04B4D0" Offset="0" />
				<GradientStop Color="#FF038195" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<!-- Region Accounting Styles-->

	<SolidColorBrush x:Key="AccountingContentBrush" Color="#FF08897D" />
	<Style x:Key="AccountingNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF4E4E4E" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF08897D" Offset="0" />
				<GradientStop Color="#FF055850" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<!-- Region Service Record Styles-->

	<SolidColorBrush x:Key="ServiceRecordContentBrush" Color="#FFC80000" />
	<LinearGradientBrush x:Key="ServiceRecordListBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFC80000" Offset="0" />
		<GradientStop Color="#FF950000" Offset="1" />
	</LinearGradientBrush>
	<Style x:Key="ServiceRecordNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF5C0000" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FFC80000" Offset="0" />
				<GradientStop Color="#FF950000" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<!-- Region Additional Service Styles-->

	<SolidColorBrush x:Key="AdditionalServiceContentBrush" Color="#FFFF5D5D" />
	<LinearGradientBrush x:Key="AdditionalServiceListBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFF5D5D" Offset="0" />
		<GradientStop Color="#FF9F3A3A" Offset="1" />
	</LinearGradientBrush>
	<Style x:Key="AdditionalServiceNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF5C0000" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FFFF5D5D" Offset="0" />
				<GradientStop Color="#FF9F3A3A" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

    <!-- Region Report Styles-->

	<SolidColorBrush x:Key="ReportContentBrush" Color="#FF995E3B" />
	<Style x:Key="ReportNavigationStyle" TargetType="{x:Type GroupBox}">
		<Style.Resources>
			<SolidColorBrush x:Key="NavigationHeaderBrush" Color="#FF4E4E4E" />
			<LinearGradientBrush x:Key="NavigationContentBrush" EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF995E3B" Offset="0" />
				<GradientStop Color="#FF6A4129" Offset="1" />
			</LinearGradientBrush>
		</Style.Resources>

		<Setter Property="Template" Value="{StaticResource NavigationGroupTemplate}" />
	</Style>
	<!-- EndRegion -->

	<!-- Region Suchtextbox mit Lupe-->
	<ControlTemplate x:Key="SearchTextBoxTemplate" TargetType="{x:Type TextBox}">
		<Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="1,1,1,1">
			<Grid>
				<Grid.ColumnDefinitions>
					<ColumnDefinition />
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<ScrollViewer x:Name="PART_ContentHost" Margin="0,2,0,0" />
				<Canvas Grid.Column="1" Width="14" Margin="2,2,2,2">
					<Ellipse Stroke="#FF7C7C7C" Height="10" Width="10" StrokeThickness="2" Fill="{x:Null}" />
					<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF7C7C7C" Canvas.Left="6" Canvas.Top="7.4" Y1="0" Y2="5" StrokeThickness="3" X2="4" />


				</Canvas>

			</Grid>

		</Border>
		<ControlTemplate.Triggers>
			<Trigger Property="IsEnabled" Value="False">
				<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
				<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
	<!-- EndRegion -->
	
	<!-- Region MainContent GroupBox (Schwarze Karteireiter)-->

	<!-- Region Weiße Buttons im MainNavigationView-->
	<Style x:Key="NavigationToolbarButtonStyle" TargetType="{x:Type Button}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Storyboard1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.2" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" AccelerationRatio="1">
								<SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1.3" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.2" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" AccelerationRatio="1">
								<SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1.3" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Storyboard2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.2" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" DecelerationRatio="1">
								<SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.2" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" DecelerationRatio="1">
								<SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Margin="3,0,3,0" RenderTransformOrigin="0.5,0.5" x:Name="contentPresenter">
						<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>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.ExitActions>
								<BeginStoryboard Storyboard="{StaticResource Storyboard2}" x:Name="Storyboard2_BeginStoryboard" />
							</Trigger.ExitActions>
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Storyboard1}" />
							</Trigger.EnterActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Foreground" Value="#FFFFFFFF" />
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="FontSize" Value="16" />
	</Style>
	<!-- EndRegion -->

	<!-- Region Edit Tab Control -->
	<SolidColorBrush x:Key="TabItemSelectedTextBrush" Color="#FF232323" />
	<SolidColorBrush x:Key="TabItemTextBrush" Color="#FF27566A" />
	<SolidColorBrush x:Key="TabItemHotTextBrush" Color="#FFAB4A07" />

	<Style x:Key="ObjectEditTabItemStyle" TargetType="{x:Type TabItem}">
		<Setter Property="Foreground" Value="{StaticResource TabItemTextBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TabItem}">
					<Border SnapsToDevicePixels="true" Padding="0,0,0,10">
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
							</Grid.ColumnDefinitions>
							<Canvas x:Name="SelectionMarker" Width="10" Height="10" Visibility="Hidden">
								<Path Data="M 0,0 L 6,4 L 0,8 Z" Fill="#FF000000" />
							</Canvas>
							<Border Grid.Column="1" x:Name="TabItemText">
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True" HorizontalAlignment="Left" />
							</Border>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter Property="Control.Foreground" TargetName="TabItemText" Value="{StaticResource TabItemHotTextBrush}" />
						</Trigger>
						<Trigger Property="IsSelected" Value="true">
							<Setter Property="Control.Foreground" TargetName="TabItemText" Value="{StaticResource TabItemSelectedTextBrush}" />
							<Setter Property="Visibility" TargetName="SelectionMarker" Value="Visible" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ObjectEditTabControl" TargetType="{x:Type TabControl}">
		<Setter Property="Foreground" Value="{StaticResource TabItemSelectedTextBrush}" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />


		<Setter Property="ItemContainerStyle" Value="{StaticResource ObjectEditTabItemStyle}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TabControl}">
					<Border Background="{TemplateBinding Background}">
						<Grid SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local" Margin="15,15,15,5">
							<Grid.ColumnDefinitions>
								<ColumnDefinition x:Name="ColumnDefinition0" Width="Auto" />
								<ColumnDefinition x:Name="ColumnDefinition1" Width="*" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition x:Name="RowDefinition0" Height="*" />
							</Grid.RowDefinitions>
							<TabPanel x:Name="HeaderPanel" Grid.Column="0" Grid.Row="0" IsItemsHost="true" Panel.ZIndex="1" KeyboardNavigation.TabIndex="1" />
							<Border x:Name="ContentPanel" Grid.Column="1" Grid.Row="0" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local" Padding="20,0,0,0">
								<ContentPresenter x:Name="PART_SelectedContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="SelectedContent" />
							</Border>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="TabStripPlacement" Value="Left" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="Background" Value="{x:Null}" />

	</Style>
	<!-- EndRegion -->

    <LinearGradientBrush x:Key="ObjectEditBackgroundBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#FFD7DADB" Offset="0" />
		<GradientStop Color="#FF92A9B3" Offset="1" />
	</LinearGradientBrush>

	<Style x:Key="ObjectEditGroupBox" TargetType="{x:Type GroupBox}">
		<!-- <Setter Property="BorderBrush" Value="#D5DFE5" />-->
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type GroupBox}">
					<Grid SnapsToDevicePixels="true">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>

						<Border TextElement.FontSize="16" TextElement.Foreground="{StaticResource TabItemHotTextBrush}" TextElement.FontFamily="Microsoft Sans Serif" x:Name="Header" Grid.Column="0" Grid.Row="0" Padding="3,0,3,0" MinHeight="20">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True" />
						</Border>
						<Border Grid.Row="1" BorderBrush="#FF86878F" BorderThickness="0,0,0,1" />
						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Grid.Column="0" Grid.Row="2" Margin="3,3,3,3" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ObjectEditGroupBoxHeaderBorderStyle" TargetType="{x:Type Border}">
		<Setter Property="TextElement.FontSize" Value="16" />
		<Setter Property="TextElement.Foreground" Value="{StaticResource TabItemHotTextBrush}" />
		<Setter Property="TextElement.FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="Padding" Value="3,0,3,0" />
		<Setter Property="MinHeight" Value="20" />
	</Style>


	<Style x:Key="TreeViewItemFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="Focusable" Value="False" />
		<Setter Property="Width" Value="19" />
		<Setter Property="Height" Value="13" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<Border Width="19" Height="13" Background="Transparent">
						<Border Width="9" Height="9" SnapsToDevicePixels="true" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderThickness="1">
							<Path Fill="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" Margin="1,1,1,1" x:Name="ExpandPath" Data="M 0 2 L 0 3 L 2 3 L 2 5 L 3 5 L 3 3 L 5 3 L 5 2 L 3 2 L 3 0 L 2 0 L 2 2 Z" />
						</Border>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Data" TargetName="ExpandPath" Value="M 0 2 L 0 3 L 5 3 L 5 2 Z" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="SupportConceptTreeViewStyle" TargetType="{x:Type TreeViewItem}">
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
		<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
		<Setter Property="Padding" Value="1,0,0,0" />
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
		<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TreeViewItem}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Storyboard1" />
					</ControlTemplate.Resources>
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition MinWidth="19" Width="Auto" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition />
						</Grid.RowDefinitions>
						<ToggleButton x:Name="Expander" Style="{StaticResource ExpandCollapseToggleStyle}" ClickMode="Press" IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" />
						<Border x:Name="Bd" Margin="0 2" SnapsToDevicePixels="true" Grid.Row="0" Grid.Column="1" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" CornerRadius="5,5,5,5" 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>
						<ContentPresenter Margin="3 1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0"
						                  Grid.Column="1" x:Name="PART_Header" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" />

						<ItemsPresenter x:Name="ItemsHost" Grid.Column="1" Grid.Row="1" OpacityMask="#FFA0A0A0" />
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsExpanded" Value="false">
							<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed" />
						</Trigger>
						<Trigger Property="HasItems" Value="false">
							<Setter Property="Visibility" TargetName="Expander" Value="Hidden" />
						</Trigger>
						<Trigger Property="IsSelected" Value="true">
							<Setter Property="OpacityMask" TargetName="Bd">
								<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="IsSelected" Value="true" />
								<Condition Property="IsSelectionActive" Value="false" />
							</MultiTrigger.Conditions>
							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
						</MultiTrigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelected" Value="False" />
								<Condition Property="IsMouseOver" Value="True" SourceName="PART_Header" />
							</MultiTrigger.Conditions>
							<Setter Property="OpacityMask" TargetName="Bd">
								<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>
						</MultiTrigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="MaximizeButtonStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Width" Value="Auto" />
		<Setter Property="Height" Value="Auto" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Focusable" Value="false" />
		<Setter Property="ClickMode" Value="Press" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.2" />
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.2" />
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid SnapsToDevicePixels="true" x:Name="grid" MinWidth="20" MinHeight="20">
						<Border x:Name="border" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Padding="0,0,0,0" Margin="0,0,0,0" Grid.Column="1">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF000000" Offset="0" />
									<GradientStop Color="#FF262626" Offset="1" />
								</LinearGradientBrush>
							</Border.Background>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*" />
									<RowDefinition Height="0.5*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="3,3,3,3">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B28DBDFF" Offset="0" />
											<GradientStop Color="#008DBDFF" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="3,3,0,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#99FFFFFF" Offset="0" />
											<GradientStop Color="#33FFFFFF" Offset="1" />
										</LinearGradientBrush>
									</Border.Background>
								</Border>
								<TextBlock HorizontalAlignment="Center" x:Name="textBlock_max" VerticalAlignment="Center" FontFamily="Webdings" FontSize="20" Foreground="#FFFFFFFF" TextWrapping="Wrap"
								           Grid.Row="0" Grid.RowSpan="2">
									<Run Text="1" />
								</TextBlock>
								<TextBlock x:Name="textBlock_min" FontFamily="Webdings" FontSize="20" Foreground="#FFFFFFFF" Text="2" TextWrapping="Wrap" HorizontalAlignment="Center" Width="20" VerticalAlignment="Center"
								           Grid.Row="0" Grid.RowSpan="2" Visibility="Hidden" />
							</Grid>
						</Border>

						<!-- <ToggleButton x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" Style="{StaticResource ComboBoxReadonlyToggleButton}" Grid.ColumnSpan="2" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>-->

					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Visibility" TargetName="textBlock_min" Value="Visible" />
							<Setter Property="Visibility" TargetName="textBlock_max" Value="Hidden" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}">
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Width" Value="Auto" />
		<Setter Property="Height" Value="Auto" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Focusable" Value="false" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.2" />
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.2" />
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid SnapsToDevicePixels="true" x:Name="grid" MinWidth="20" MinHeight="20">
						<Border x:Name="border" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Padding="0,0,0,0" Margin="0,0,0,0">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF450202" Offset="0" />
									<GradientStop Color="#FFC61A1A" Offset="1" />
								</LinearGradientBrush>
							</Border.Background>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*" />
									<RowDefinition Height="0.5*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="3,3,3,3">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B2FFFFFF" Offset="0" />
											<GradientStop Color="#00FF9E9A" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="3,3,0,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#99FFFFFF" Offset="0" />
											<GradientStop Color="#33FFFFFF" Offset="1" />
										</LinearGradientBrush>
									</Border.Background>
								</Border>
								<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Webdings" FontSize="16" Foreground="#FFFFFFFF" TextWrapping="Wrap"
								           Grid.Row="0" Grid.RowSpan="2">
									<Run Text="r" />
								</TextBlock>
							</Grid>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="CloseButtonStyleSmall" TargetType="{x:Type Button}">
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Width" Value="Auto" />
		<Setter Property="Height" Value="Auto" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Focusable" Value="false" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.2" />
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.2" />
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid SnapsToDevicePixels="true" x:Name="grid" MinWidth="15" MinHeight="15">
						<Border x:Name="border" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Padding="0,0,0,0" Margin="0,0,0,0">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF450202" Offset="0" />
									<GradientStop Color="#FFC61A1A" Offset="1" />
								</LinearGradientBrush>
							</Border.Background>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*" />
									<RowDefinition Height="0.5*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="3,3,3,3">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B2FFFFFF" Offset="0" />
											<GradientStop Color="#00FF9E9A" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="3,3,0,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#99FFFFFF" Offset="0" />
											<GradientStop Color="#33FFFFFF" Offset="1" />
										</LinearGradientBrush>
									</Border.Background>
								</Border>
								<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Webdings" FontSize="10" Foreground="#FFFFFFFF" TextWrapping="Wrap"
								           Grid.Row="0" Grid.RowSpan="2">
									<Run Text="r" />
								</TextBlock>
							</Grid>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="SearchButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="MinWidth" Value="0" />
        <Setter Property="MinHeight" Value="0" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Focusable" Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="Timeline1">
                        	<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe1" Storyboard.TargetProperty="Stroke.Color">
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFB5ECFF" />
                            </ColorAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe2" Storyboard.TargetProperty="Stroke.Color">
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFB5ECFF" />
                            </ColorAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="Timeline2">
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe1" Storyboard.TargetProperty="Stroke.Color">
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFCCCCCC" />
                            </ColorAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe2" Storyboard.TargetProperty="Stroke.Color">
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFCCCCCC" />
                            </ColorAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid SnapsToDevicePixels="true" x:Name="grid" MinWidth="20" MinHeight="20">
	                    <Border x:Name="border" Grid.Column="1" Background="Transparent" BorderThickness="3,0,0,0">
                        	<Border.BorderBrush>
                        		<LinearGradientBrush EndPoint="0.5,0.5" StartPoint="-0.5,0.5">
                        			<GradientStop Color="#00000000" Offset="0.575"/>
                        			<GradientStop Color="#80000000" Offset="0.445"/>
                        		</LinearGradientBrush>
                        	</Border.BorderBrush>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="0.5*" />
                                    <RowDefinition Height="0.5*" />
                                </Grid.RowDefinitions>
               					<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="30" Height="30" Grid.RowSpan="2" >
									<Border.Background>
               							<RadialGradientBrush>
               								<GradientStop Color="#70FFFFFF" Offset="0"/>
               								<GradientStop Color="#00FF9E9A" Offset="0.895"/>
               							</RadialGradientBrush>
               						</Border.Background>
								</Border>
								<Border Grid.Row="0" Grid.RowSpan="2" Margin="0" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" HorizontalAlignment="Center" VerticalAlignment="Center" >
	                                <Canvas VerticalAlignment="Center" HorizontalAlignment="Center" Width="20" Height="20" Margin="5,5,0,0" >
	                                    <Ellipse x:Name="lupe1" Stroke="#FFCCCCCC" Height="14" Width="14" StrokeThickness="2" Fill="{x:Null}" />
	                                    <Line x:Name="lupe2" Fill="#FFCCCCCC" Stretch="Fill" Stroke="#FFCCCCCC" Canvas.Left="10" Canvas.Top="11.4" Y1="0" Y2="6" StrokeThickness="3" X2="5" />


	                                </Canvas>
								</Border>
                            </Grid>
                        </Border>

                        <!-- <ToggleButton x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" Style="{StaticResource ComboBoxReadonlyToggleButton}" Grid.ColumnSpan="2" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>-->

                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource Timeline1}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
                            </Trigger.ExitActions>
                        	
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="FilterButtonStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Width" Value="Auto" />
		<Setter Property="Height" Value="Auto" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.2" />
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.2" />
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid SnapsToDevicePixels="true" x:Name="grid" MinWidth="20" MinHeight="20">
						<Border x:Name="border" BorderBrush="#FF013466" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Padding="0,0,0,0" Margin="0,0,0,0" Grid.Column="1">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF007FFF" Offset="0" />
									<GradientStop Color="#FF0758A7" Offset="1" />
								</LinearGradientBrush>
							</Border.Background>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*" />
									<RowDefinition Height="0.5*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="3,3,3,3">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B2FFAD33" Offset="0" />
											<GradientStop Color="#B2FDCB81" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<Border Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="3,3,0,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#D8FFFFFF" Offset="0" />
											<GradientStop Color="#33FFFFFF" Offset="1" />
										</LinearGradientBrush>
									</Border.Background>
								</Border>

								<Path Fill="{x:Null}" Stretch="Fill" Width="12" Height="12" Grid.Row="0" Data="M0,0 L20,0 L 20,3 L12,10 L12,18 L8,18 L8,10 L0,3 z" Stroke="#FFFFFFFF" StrokeThickness="2" Grid.RowSpan="2" />
							</Grid>
						</Border>

						<!-- <ToggleButton x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" Style="{StaticResource ComboBoxReadonlyToggleButton}" Grid.ColumnSpan="2" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>-->

					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="SwitchButtonStyle" TargetType="{x:Type Button}">
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Focusable" Value="false" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe1" Storyboard.TargetProperty="Stroke.Color">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFB5ECFF" />
							</ColorAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe2" Storyboard.TargetProperty="Stroke.Color">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFB5ECFF" />
							</ColorAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe1" Storyboard.TargetProperty="Stroke.Color">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFCCCCCC" />
							</ColorAnimationUsingKeyFrames>
							<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="lupe2" Storyboard.TargetProperty="Stroke.Color">
								<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFCCCCCC" />
							</ColorAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid SnapsToDevicePixels="true" x:Name="grid" MinWidth="20" MinHeight="20">
						<Border x:Name="border" Grid.Column="1" Background="Transparent" BorderThickness="3,0,0,0">
							<Border.BorderBrush>
								<LinearGradientBrush EndPoint="0.5,0.5" StartPoint="-0.5,0.5">
									<GradientStop Color="#00000000" Offset="0.575"/>
									<GradientStop Color="#80000000" Offset="0.445"/>
								</LinearGradientBrush>
							</Border.BorderBrush>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*" />
									<RowDefinition Height="0.5*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="30" Height="30" Grid.RowSpan="2" >
									<Border.Background>
										<RadialGradientBrush>
											<GradientStop Color="#70FFFFFF" Offset="0"/>
											<GradientStop Color="#00FF9E9A" Offset="0.895"/>
										</RadialGradientBrush>
									</Border.Background>
								</Border>
								<Border Grid.Row="0" Grid.RowSpan="2" Margin="0" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" HorizontalAlignment="Center" VerticalAlignment="Center" >
									<Canvas VerticalAlignment="Center" HorizontalAlignment="Center" Width="20" Height="20" Margin="5,5,0,0" >
										<Ellipse x:Name="lupe1" Stroke="#FFCCCCCC" Height="14" Width="14" StrokeThickness="2" Fill="{x:Null}" />
										<Line x:Name="lupe2" Fill="#FFCCCCCC" Stretch="Fill" Stroke="#FFCCCCCC" Canvas.Left="10" Canvas.Top="11.4" Y1="0" Y2="6" StrokeThickness="3" X2="5" />


									</Canvas>
								</Border>
							</Grid>
						</Border>

						<!-- <ToggleButton x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" Style="{StaticResource ComboBoxReadonlyToggleButton}" Grid.ColumnSpan="2" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>-->

					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>

						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="SortComboBox" TargetType="{x:Type ComboBox}">
		<Setter Property="FocusVisualStyle">
			<Setter.Value>
				<Style>
					<Setter Property="Control.Template">
						<Setter.Value>
							<ControlTemplate>
								<Rectangle Stroke="#FF000000" StrokeDashArray="1 2" StrokeThickness="1" Margin="4,4,21,4" SnapsToDevicePixels="True" />
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="Foreground" Value="{StaticResource LightOrangeBrush}" />
		<Setter Property="Margin" Value="0,0,0,0" />
		<Setter Property="Padding" Value="0,0,0,0" />
		<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="ItemContainerStyle" Value="{DynamicResource SortComboItemStyle}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ComboBox}">
					<Border SnapsToDevicePixels="True">
						<Grid>
							<Border x:Name="Border" Background="{x:Null}">
								<Popup x:Name="PART_Popup" AllowsTransparency="True" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Focusable="False">
									<Border MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{Binding Path=ActualWidth, ElementName=Border}" x:Name="Shdw" Background="#FFFFFFFF">
										<Border x:Name="DropDownBorder" BorderBrush="#FF000000" BorderThickness="1,1,1,1">
											<ScrollViewer>
												<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.DirectionalNavigation="Contained" />
											</ScrollViewer>
										</Border>
									</Border>
								</Popup>
							</Border>
							<Border Margin="{TemplateBinding Padding}" x:Name="SelectedItemBorder" CornerRadius="2,2,2,2">
								<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="3,2,3,2" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding SelectionBoxItem}" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" />
							</Border>
							<ToggleButton Margin="0,0,0,0" MinHeight="0" MinWidth="0" Width="Auto" Focusable="False" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" BorderThickness="0,0,0,0">
								<ToggleButton.Style>
									<Style TargetType="{x:Type ToggleButton}">
										<Setter Property="MinWidth" Value="0" />
										<Setter Property="MinHeight" Value="0" />
										<Setter Property="Width" Value="NaN" />
										<Setter Property="Height" Value="NaN" />
										<Setter Property="Background" Value="#00FFFFFF" />
										<Setter Property="Template">
											<Setter.Value>
												<ControlTemplate TargetType="{x:Type ToggleButton}">
													<DockPanel SnapsToDevicePixels="True" Background="{TemplateBinding Background}" LastChildFill="False" />
													<!-- <ControlTemplate.Triggers>
														<Trigger Property="IsChecked" Value="True">
															<Setter Property="BorderStyle" TargetName="Border" Value="AltPressed"/>
														</Trigger>
													</ControlTemplate.Triggers>-->
												</ControlTemplate>
											</Setter.Value>
										</Setter>

									</Style>
								</ToggleButton.Style>
							</ToggleButton>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Background" TargetName="SelectedItemBorder" Value="{DynamicResource MainGroupBoxSelectedItemBrush}" />
						</Trigger>
						<Trigger Property="HasItems" Value="False">
							<Setter Property="MinHeight" TargetName="DropDownBorder" Value="95" />
						</Trigger>
						<Trigger Property="IsGrouping" Value="True">
							<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>


	</Style>
	<Style x:Key="SortComboItemStyle" 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="Background" Value="#00FFFFFF" />
		<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}" x:Name="contentPresenter" Margin="0,2,0,2" />
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsHighlighted" Value="True">
							<Setter Property="Foreground" Value="#FF000000" />
							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource BSOrangeBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="SortDirectionToggleButtonStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="FocusVisualStyle">
			<Setter.Value>
				<Style>
					<Setter Property="Control.Template">
						<Setter.Value>
							<ControlTemplate>
								<Border>
									<Rectangle Stroke="#FF000000" StrokeDashArray="1 2" StrokeThickness="1" Margin="4,4,4,4" SnapsToDevicePixels="True" />
								</Border>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Padding" Value="0,0,1,1" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ButtonBase}">


					<Border x:Name="ButtonBorder" CornerRadius="2,2,2,2">
						<Grid SnapsToDevicePixels="True">
							<Border Background="#00000000" />
							<Border x:Name="ArrowDown" Width="20" Visibility="Hidden">
								<Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="M0,0L5,8 10,0z" Fill="{DynamicResource LightOrangeBrush}" />
							</Border>
							<Border x:Name="ArrowUp" Width="20">
								<Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="M0,8L5,0 10,8z" Fill="{DynamicResource LightOrangeBrush}" />
							</Border>

						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Background" TargetName="ButtonBorder" Value="{DynamicResource MainGroupBoxSelectedItemBrush}" />
						</Trigger>
						<Trigger Property="ToggleButton.IsChecked" Value="True">
							<Setter Property="Visibility" TargetName="ArrowUp" Value="Hidden" />
							<Setter Property="Visibility" TargetName="ArrowDown" Value="Visible" />
						</Trigger>

					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    
	<Style TargetType="{x:Type ScrollBar}">
		<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False" />
		<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" />
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
		<Setter Property="BorderThickness" Value="0,0,0,0" />
		<Setter Property="Width" Value="14" />
		<Setter Property="MinWidth" Value="10" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ScrollBar}">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
							<RowDefinition Height="1E-05*" />
							<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
						</Grid.RowDefinitions>
						<Rectangle x:Name="BackgroundRectangle" Grid.Row="0" Grid.RowSpan="3" OpacityMask="{x:Null}" Fill="#30FFFFFF" />
						<Viewbox Grid.Row="0" Stretch="Fill">
							<RepeatButton MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Height="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" Content="M 0 7 L 9 7 L 4.5 0 Z" Command="ScrollBar.LineUpCommand" Background="{x:Null}" Foreground="#FF505050">
								<RepeatButton.Style>
									<Style TargetType="{x:Type RepeatButton}">
										<Setter Property="OverridesDefaultStyle" Value="True" />
										<Setter Property="Background" Value="{x:Null}" />
										<Setter Property="Foreground" Value="#FF505050" />
										<Setter Property="MinWidth" Value="0" />
										<Setter Property="MinHeight" Value="0" />
										<Setter Property="IsTabStop" Value="False" />
										<Setter Property="Focusable" Value="False" />
										<Setter Property="Template">
											<Setter.Value>
												<ControlTemplate TargetType="{x:Type RepeatButton}">
													<Grid>
														<Border Background="#00000000" />
														<Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" Fill="#AA000000" x:Name="pathUp" />
													</Grid>
													<ControlTemplate.Triggers>
														<Trigger Property="IsMouseOver" Value="True" SourceName="pathUp">
															<Setter Property="Fill" TargetName="pathUp" Value="#DD000000" />
														</Trigger>
													</ControlTemplate.Triggers>
												</ControlTemplate>
											</Setter.Value>
										</Setter>
									</Style>
								</RepeatButton.Style>
							</RepeatButton>
						</Viewbox>

						<Track x:Name="PART_Track" Grid.Row="1" IsDirectionReversed="True">
							<Track.Thumb>
								<Thumb Background="{x:Null}">
									<Thumb.Style>
										<Style TargetType="{x:Type Thumb}">
											<Setter Property="Template">
												<Setter.Value>
													<ControlTemplate TargetType="{x:Type Thumb}">
														<Border Background="#AA000000" CornerRadius="5,5,5,5" Margin="3,2,3,2" x:Name="scrollBarBorder" />
														<ControlTemplate.Triggers>
															<Trigger Property="IsMouseOver" Value="True" SourceName="scrollBarBorder">
																<Setter Property="Background" TargetName="scrollBarBorder" Value="#DD000000" />
															</Trigger>
														</ControlTemplate.Triggers>
													</ControlTemplate>
												</Setter.Value>
											</Setter>
										</Style>
									</Thumb.Style>
								</Thumb>
							</Track.Thumb>
							<Track.IncreaseRepeatButton>
								<RepeatButton Command="ScrollBar.PageDownCommand">
									<RepeatButton.Style>
										<Style TargetType="{x:Type RepeatButton}">
											<Setter Property="OverridesDefaultStyle" Value="True" />
											<Setter Property="IsTabStop" Value="False" />
											<Setter Property="Focusable" Value="False" />
											<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
											<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
											<Setter Property="Template">
												<Setter.Value>
													<ControlTemplate TargetType="{x:Type RepeatButton}">
														<Rectangle Fill="#00FFFFFF" x:Name="PageButtonBackground" />
													</ControlTemplate>
												</Setter.Value>
											</Setter>
										</Style>
									</RepeatButton.Style>
								</RepeatButton>
							</Track.IncreaseRepeatButton>
							<Track.DecreaseRepeatButton>
								<RepeatButton Command="ScrollBar.PageUpCommand">
									<RepeatButton.Style>
										<Style TargetType="{x:Type RepeatButton}">
											<Setter Property="OverridesDefaultStyle" Value="True" />
											<Setter Property="IsTabStop" Value="False" />
											<Setter Property="Focusable" Value="False" />
											<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
											<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
											<Setter Property="Template">
												<Setter.Value>
													<ControlTemplate TargetType="{x:Type RepeatButton}">
														<Rectangle Fill="#00FFFFFF" x:Name="PageButtonBackground" />

													</ControlTemplate>
												</Setter.Value>
											</Setter>
										</Style>
									</RepeatButton.Style>
								</RepeatButton>
							</Track.DecreaseRepeatButton>
						</Track>
						<Viewbox Grid.Row="2" Stretch="Fill">
							<RepeatButton MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Height="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" Content="M 0 0 L 4.5 7 L 9 0 Z" Command="ScrollBar.LineDownCommand">
								<RepeatButton.Style>
									<Style TargetType="{x:Type RepeatButton}">
										<Setter Property="OverridesDefaultStyle" Value="True" />
										<Setter Property="Background" Value="{x:Null}" />
										<Setter Property="Foreground" Value="#FF505050" />
										<Setter Property="BorderBrush">
											<Setter.Value>
												<SolidColorBrush />
											</Setter.Value>
										</Setter>
										<Setter Property="BorderThickness" Value="2,2,2,2" />
										<Setter Property="MinWidth" Value="0" />
										<Setter Property="MinHeight" Value="0" />
										<Setter Property="IsTabStop" Value="False" />
										<Setter Property="Focusable" Value="False" />
										<Setter Property="Template">
											<Setter.Value>
												<ControlTemplate TargetType="{x:Type RepeatButton}">
													<Grid>
														<Border Background="#00000000" />
														<Path x:Name="pathDown" Fill="#AA000000" HorizontalAlignment="Center" VerticalAlignment="Center" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" />
													</Grid>
													<ControlTemplate.Triggers>
														<Trigger Property="IsMouseOver" Value="True" SourceName="pathDown">
															<Setter Property="Fill" TargetName="pathDown" Value="#DD000000" />
														</Trigger>
													</ControlTemplate.Triggers>
												</ControlTemplate>
											</Setter.Value>
										</Setter>
									</Style>
								</RepeatButton.Style>
							</RepeatButton>
						</Viewbox>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="BorderBrush" Value="#FFED1111" />
		<Style.Triggers>
			<Trigger Property="Orientation" Value="Horizontal">
				<Setter Property="Width" Value="NaN" />
				<Setter Property="MinWidth" Value="0" />
				<Setter Property="Height" Value="14" />
				<Setter Property="MinHeight" Value="10" />
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type ScrollBar}">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
									<ColumnDefinition Width="1E-05*" />
									<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
								</Grid.ColumnDefinitions>
								<Rectangle x:Name="BackgroundRectangle" Grid.Column="0" Grid.ColumnSpan="3" OpacityMask="{x:Null}" Fill="#30FFFFFF" />
								<Viewbox Grid.Column="0" Stretch="Fill">
									<RepeatButton MinHeight="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" Width="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" Content="M 0 4.5 L 7 9 L 7 0 Z" Command="ScrollBar.LineLeftCommand" Background="{x:Null}" Foreground="#FF505050">
										<RepeatButton.Style>
											<Style TargetType="{x:Type RepeatButton}">
												<Setter Property="OverridesDefaultStyle" Value="True" />
												<Setter Property="Background" Value="{x:Null}" />
												<Setter Property="Foreground" Value="#FF505050" />
												<Setter Property="MinWidth" Value="0" />
												<Setter Property="MinHeight" Value="0" />
												<Setter Property="IsTabStop" Value="False" />
												<Setter Property="Focusable" Value="False" />
												<Setter Property="Template">
													<Setter.Value>
														<ControlTemplate TargetType="{x:Type RepeatButton}">
															<Grid>
																<Border Background="#00000000" />
																<Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" Fill="#AA000000" x:Name="pathLeft" />
															</Grid>
															<ControlTemplate.Triggers>
																<Trigger Property="IsMouseOver" Value="True" SourceName="pathLeft">
																	<Setter Property="Fill" TargetName="pathLeft" Value="#DD000000" />
																</Trigger>
															</ControlTemplate.Triggers>
														</ControlTemplate>
													</Setter.Value>
												</Setter>
											</Style>
										</RepeatButton.Style>
									</RepeatButton>
								</Viewbox>
								<Track x:Name="PART_Track" Grid.Column="1">
									<Track.Thumb>
										<Thumb Background="{x:Null}">
											<Thumb.Style>
												<Style TargetType="{x:Type Thumb}">
													<Setter Property="Template">
														<Setter.Value>
															<ControlTemplate TargetType="{x:Type Thumb}">
																<Border Background="#AA000000" CornerRadius="5,5,5,5" Margin="2,3,2,3" x:Name="scrollBarBorder" />
																<ControlTemplate.Triggers>
																	<Trigger Property="IsMouseOver" Value="True" SourceName="scrollBarBorder">
																		<Setter Property="Background" TargetName="scrollBarBorder" Value="#DD000000" />
																	</Trigger>
																</ControlTemplate.Triggers>
															</ControlTemplate>
														</Setter.Value>
													</Setter>

												</Style>
											</Thumb.Style>
										</Thumb>
									</Track.Thumb>
									<Track.IncreaseRepeatButton>
										<RepeatButton Command="ScrollBar.PageRightCommand">
											<RepeatButton.Style>
												<Style TargetType="{x:Type RepeatButton}">
													<Setter Property="OverridesDefaultStyle" Value="True" />
													<Setter Property="IsTabStop" Value="False" />
													<Setter Property="Focusable" Value="False" />
													<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
													<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
													<Setter Property="Template">
														<Setter.Value>
															<ControlTemplate TargetType="{x:Type RepeatButton}">
																<Rectangle Fill="#00FFFFFF" x:Name="PageButtonBackground" />

															</ControlTemplate>
														</Setter.Value>
													</Setter>
												</Style>
											</RepeatButton.Style>
										</RepeatButton>
									</Track.IncreaseRepeatButton>
									<Track.DecreaseRepeatButton>
										<RepeatButton Command="ScrollBar.PageLeftCommand">
											<RepeatButton.Style>
												<Style TargetType="{x:Type RepeatButton}">
													<Setter Property="OverridesDefaultStyle" Value="True" />
													<Setter Property="IsTabStop" Value="False" />
													<Setter Property="Focusable" Value="False" />
													<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
													<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
													<Setter Property="Template">
														<Setter.Value>
															<ControlTemplate TargetType="{x:Type RepeatButton}">
																<Rectangle Fill="#00FFFFFF" x:Name="PageButtonBackground" />

															</ControlTemplate>
														</Setter.Value>
													</Setter>
												</Style>
											</RepeatButton.Style>
										</RepeatButton>
									</Track.DecreaseRepeatButton>
								</Track>
								<Viewbox Grid.Column="2" Stretch="Fill">
									<RepeatButton MinHeight="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" Width="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" Content="M 0 0 L 0 9 L 7 4.5 Z" Command="ScrollBar.LineRightCommand">
										<RepeatButton.Style>
											<Style TargetType="{x:Type RepeatButton}">
												<Setter Property="OverridesDefaultStyle" Value="True" />
												<Setter Property="Background" Value="{x:Null}" />
												<Setter Property="Foreground" Value="#FF505050" />
												<Setter Property="BorderThickness" Value="2,2,2,2" />
												<Setter Property="MinWidth" Value="0" />
												<Setter Property="MinHeight" Value="0" />
												<Setter Property="IsTabStop" Value="False" />
												<Setter Property="Focusable" Value="False" />
												<Setter Property="Template">
													<Setter.Value>
														<ControlTemplate TargetType="{x:Type RepeatButton}">
															<Grid>
																<Border Background="#00000000" />
																<Path x:Name="pathDown" Fill="#AA000000" HorizontalAlignment="Center" VerticalAlignment="Center" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" />
															</Grid>
															<ControlTemplate.Triggers>
																<Trigger Property="IsMouseOver" Value="True" SourceName="pathDown">
																	<Setter Property="Fill" TargetName="pathDown" Value="#DD000000" />
																</Trigger>
															</ControlTemplate.Triggers>
														</ControlTemplate>
													</Setter.Value>
												</Setter>
											</Style>
										</RepeatButton.Style>
									</RepeatButton>
								</Viewbox>
							</Grid>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Trigger>
		</Style.Triggers>
	</Style>

	<Style x:Key="DragPanelMaximizeButtonStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="MinHeight" Value="0" />
		<Setter Property="Width" Value="Auto" />
		<Setter Property="Height" Value="Auto" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Focusable" Value="false" />
		<Setter Property="ClickMode" Value="Press" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="Timeline1">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.2" />
						</Storyboard>
						<Storyboard x:Key="Timeline2">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0" />
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Duration="0:0:0.2" />
							<DoubleAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Duration="0:0:0.2" />
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid SnapsToDevicePixels="true" x:Name="grid" MinWidth="18" MinHeight="18">
						<Border x:Name="border" CornerRadius="3,3,3,3" Padding="0,0,0,0" Margin="0,0,0,0" Grid.Column="1">

							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="0.5*" />
									<RowDefinition Height="0.5*" />
								</Grid.RowDefinitions>
								<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="3,3,3,3">
									<Border.Background>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform ScaleX="1.702" ScaleY="2.243" />
													<SkewTransform AngleX="0" AngleY="0" />
													<RotateTransform Angle="0" />
													<TranslateTransform X="-0.368" Y="-0.152" />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<GradientStop Color="#B28DBDFF" Offset="0" />
											<GradientStop Color="#008DBDFF" Offset="1" />
										</RadialGradientBrush>
									</Border.Background>
								</Border>

								<TextBlock Margin="1,0,0,2" HorizontalAlignment="Center" x:Name="textBlock_max" VerticalAlignment="Center" FontFamily="Webdings" FontSize="16" Width="18" Foreground="#F2F2F2" TextWrapping="Wrap"
								           Grid.Row="0" Grid.RowSpan="2">
									<Run Text="1" />
								</TextBlock>
								<TextBlock Margin="1,0,0,2" x:Name="textBlock_min" FontFamily="Webdings" FontSize="16" Foreground="#F2F2F2" Text="2" TextWrapping="Wrap" HorizontalAlignment="Center" Width="18" VerticalAlignment="Center"
								           Grid.Row="0" Grid.RowSpan="2" Visibility="Hidden" />
							</Grid>
						</Border>

						<!-- <ToggleButton x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" Style="{StaticResource ComboBoxReadonlyToggleButton}" Grid.ColumnSpan="2" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>-->

					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Visibility" TargetName="textBlock_min" Value="Visible" />
							<Setter Property="Visibility" TargetName="textBlock_max" Value="Hidden" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Trigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource Timeline1}" />
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="{x:Type Blacklight_Wpf_Controls:DragDockPanel}">
		<Setter Property="Margin" Value="5" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Blacklight_Wpf_Controls:DragDockPanel}">
					<!--<uc:ShadowChrome>-->
					<Grid>
						<Border Background="#FFFFFDF9" BorderBrush="#FF86878F" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Padding="0,0,0,0">
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="30" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<Border Cursor="Hand" x:Name="PART_GripBar" VerticalAlignment="Top" Height="30" Opacity="1" BorderBrush="#B0B2BC" BorderThickness="0,0,0,1" CornerRadius="3,3,0,0">

									<Grid>
										<Viewbox Stretch="Fill">
											<Canvas Width="100" Height="100">
												<Path Data="M0,100 L0,0 L100,0 L100,100 Z" StrokeThickness="1">
													<Path.Fill>
														<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
															<GradientStop Color="#101010" Offset="0" />
															<GradientStop Color="#202039" Offset="1" />
														</LinearGradientBrush>
													</Path.Fill>
												</Path>
												<Rectangle Width="100" Height="132" Fill="#FF98C1FF" Canvas.Top="8">
													<Rectangle.OpacityMask>
														<RadialGradientBrush>
															<GradientStop Color="#3FFFFFFF" Offset="0.29" />
															<GradientStop Color="#00FFFFFF" Offset="0.875" />
														</RadialGradientBrush>
													</Rectangle.OpacityMask>
												</Rectangle>
											</Canvas>
										</Viewbox>
										<ContentPresenter Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" />
									</Grid>
								</Border>
								<ToggleButton Grid.Row="0" Style="{DynamicResource DragPanelMaximizeButtonStyle}" Cursor="Hand" HorizontalAlignment="Right" Margin="0,3,3,0" x:Name="PART_MaximizeToggle" VerticalAlignment="Top" Width="18" Height="18"></ToggleButton>

								<ContentPresenter Margin="3" Grid.Row="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />

							</Grid>
						</Border>
					</Grid>
					<!--</uc:ShadowChrome>-->
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<LinearGradientBrush x:Key="LoginBackgroundColor" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFFFFFF" Offset="0" />
		<GradientStop Color="#FFFFF4D5" Offset="0.996" />
		<GradientStop Color="#FFFFF9EA" Offset="0.723" />
	</LinearGradientBrush>

	
	<Style x:Key="SearchExpanderPanelStyle" TargetType="{x:Type uc:ExpanderPanel}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type uc:ExpanderPanel}">
					<Border x:Name="PART_Border" Background="{DynamicResource ObjectEditBackgroundBrush}" CornerRadius="0,0,5,5" Padding="3,3,3,3" BorderBrush="#FF474747" BorderThickness="1,0,1,1">
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" />
							</Grid.RowDefinitions>
							<Grid x:Name="PART_Header"></Grid>
							<Grid Grid.Row="0" Grid.Column="1">
								<ToggleButton IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}" SnapsToDevicePixels="True" Padding="3 0" Grid.Row="0" BorderThickness="0" Background="Transparent" BorderBrush="Transparent" Height="22">
									<ToggleButton.Template>
										<ControlTemplate TargetType="{x:Type ToggleButton}">
											<Grid Background="Transparent">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="*" />
													<ColumnDefinition Width="26" />
												</Grid.ColumnDefinitions>
												<Label Padding="0" Margin="5 0" VerticalAlignment="Center" Content="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type Expander}, Mode=FindAncestor}}" Foreground="#FFFFFFFF" />
												<Grid x:Name="grid_button" Grid.Column="1" Height="16" Width="16" Margin="1" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
													<Grid.RenderTransform>
														<RotateTransform Angle="0" />
													</Grid.RenderTransform>
													<Ellipse SnapsToDevicePixels="True" x:Name="ellipse" Stroke="#FFA0A0A0" StrokeThickness="2" />
													<Path SnapsToDevicePixels="True" HorizontalAlignment="Center" x:Name="Up_Arrow" VerticalAlignment="Center" Fill="#FFA0A0A0" Data="M0,0L4,7 8,0z" Margin="0,2,0,0" />

												</Grid>
											</Grid>
											<ControlTemplate.Triggers>
												<Trigger Property="IsChecked" Value="true">
													<Trigger.EnterActions>

														<BeginStoryboard>
															<Storyboard>
																<DoubleAnimation Storyboard.TargetName="grid_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" To="180" Duration="0:0:0.3" />
															</Storyboard>
														</BeginStoryboard>
													</Trigger.EnterActions>
													<Trigger.ExitActions>
														<BeginStoryboard>
															<Storyboard>
																<DoubleAnimation Storyboard.TargetName="grid_button" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Duration="0:0:0.3" />
															</Storyboard>
														</BeginStoryboard>
													</Trigger.ExitActions>
												</Trigger>
												<EventTrigger RoutedEvent="Mouse.MouseEnter">
													<BeginStoryboard>
														<Storyboard>
															<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="ellipse" To="#FFFFFFFF" />
															<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="Up_Arrow" To="#FFFFFFFF" />
														</Storyboard>
													</BeginStoryboard>
												</EventTrigger>
												<EventTrigger RoutedEvent="Mouse.MouseLeave">
													<BeginStoryboard>
														<Storyboard>
															<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Stroke.Color" Storyboard.TargetName="ellipse" />
															<ColorAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Fill.Color" Storyboard.TargetName="Up_Arrow" />

														</Storyboard>
													</BeginStoryboard>
												</EventTrigger>
											</ControlTemplate.Triggers>
										</ControlTemplate>
									</ToggleButton.Template>
								</ToggleButton>
							</Grid>
							<Grid Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" x:Name="PART_Content"></Grid>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<Style x:Key="TransparentButtonStyle" TargetType="{x:Type Button}">
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Height" Value="25" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="Foreground" Value="#FFFFFFFF" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						<Border x:Name="border" CornerRadius="5" Margin="0,0,0,0" BorderThickness="1,1,1,1" Visibility="Hidden" BorderBrush="#FF000000"></Border>

						<Border x:Name="background" CornerRadius="5" Background="#FF000000" Margin="0,0,0,0">
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#00000000" Offset="0" />
									<GradientStop Color="#00000000" Offset="0.15" />
									<GradientStop Color="#00000000" Offset="0.85" />
								</LinearGradientBrush>
							</Border.OpacityMask>

						</Border>

						<Border Margin="0,0,0,0">
							<ContentPresenter Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,0,3,0" />
						</Border>
					</Grid>

					<ControlTemplate.Triggers>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="OpacityMask" TargetName="background">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#11000000" Offset="0" />
										<GradientStop Color="#88000000" Offset="0.4" />
										<GradientStop Color="#55000000" Offset="0.85" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter Property="Visibility" TargetName="border" Value="Visible" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="OpacityMask" TargetName="background">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#33000000" Offset="0" />
										<GradientStop Color="#bb000000" Offset="0.4" />
										<GradientStop Color="#99000000" Offset="0.85" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter Property="Visibility" TargetName="border" Value="Visible" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Microsoft Sans Serif" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
	</Style>
	<SolidColorBrush x:Key="BigInfoTextBrush" Color="#FF2B508B" />
	
	<Style TargetType="{x:Type dxe:DateEdit}">
        <Setter Property="dx:ThemeManager.ThemeName" Value="Office2010Black" />
        <Setter Property="Foreground" Value="#FF000000"/>
	</Style>
    
    <Style TargetType="{x:Type dxe:SpinEdit}">
        <Setter Property="dx:ThemeManager.ThemeName" Value="Office2010Black" />
		<Setter Property="Foreground" Value="#FF000000"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
    </Style>

    <Style TargetType="{x:Type dxe:TextEdit}">
        <Setter Property="dx:ThemeManager.ThemeName" Value="Office2010Black" />
		<Setter Property="Foreground" Value="#FF000000"/>
    </Style>

    <Style TargetType="{x:Type dxe:ComboBoxEdit}">
        <Setter Property="dx:ThemeManager.ThemeName" Value="Office2010Black" />
        <Setter Property="Foreground" Value="#FF000000"/>
    </Style>
    
    <Style TargetType="{x:Type dxg:GridControl}">
        <Setter Property="dx:ThemeManager.ThemeName" Value="Office2010Black" />
		
    </Style>
    <Style TargetType="{x:Type dxg:TableView}">
        <Setter Property="ShowIndicator" Value="False" />

    </Style>
    <Style TargetType="{x:Type dx:DXTabControl}">
        <Setter Property="dx:ThemeManager.ThemeName" Value="Office2010Black" />

    </Style>
	<!-- EndRegion -->

</ResourceDictionary>