<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:parkMonitor.view.util"
					>
	<Style TargetType="{x:Type local:ImageButton}"  >
		<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:ImageButton}">
					<Grid>
						<Grid.Resources>
							<local:AlignCenterCvt x:Key="cvtAlignCenter"/>
						</Grid.Resources>
						<Canvas Width="0" Margin="0,-20,0,0" VerticalAlignment="Top" HorizontalAlignment="Center">
						<Label
							Canvas.Left="{Binding ActualWidth,RelativeSource={RelativeSource Self},Converter={StaticResource cvtAlignCenter}}"
							Visibility="Collapsed"
							Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
							Height="{Binding Height,RelativeSource={RelativeSource TemplatedParent}}"
							Foreground="{Binding Foreground,RelativeSource={RelativeSource TemplatedParent}}"
							HorizontalContentAlignment="{Binding HorizontalContentAlignment,RelativeSource={RelativeSource TemplatedParent}}"
							VerticalContentAlignment="{Binding VerticalContentAlignment,RelativeSource={RelativeSource TemplatedParent}}"
							Padding="{Binding Padding,RelativeSource={RelativeSource TemplatedParent}}" 
							IsHitTestVisible="False" Name="lblInfo"/>
						</Canvas>

						<Image Source="{Binding Source,RelativeSource={RelativeSource TemplatedParent}}"/>
						<Image Source="{Binding LightSource,RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed" Name="imgLight">
						</Image>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Visibility" TargetName="imgLight" Value="Visible"/>
							<Setter Property="Visibility" TargetName="lblInfo" Value="Visible"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>