<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:ImageMenuItem}"  >
		<Setter Property="Foreground" Value="#fff"/>
		<Setter Property="Cursor" Value="Hand"/>
		<Setter Property="Background" Value="#4c4c4c"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:ImageMenuItem}">
					<Grid Name="grdBox">
						<Grid.Resources>
							<local:XImageItemScaleCvt x:Key="cvt"/>
						</Grid.Resources>
						<Border Background="{Binding Background,RelativeSource={RelativeSource TemplatedParent}}" CornerRadius="5" Name="bdBack"/>
						<Grid Width="{Binding ActualHeight,ElementName=grdBox}" Name="grdImg">
							<Grid Margin="3,3,3,23">
								<Grid Margin="5">
									<Image Margin="{Binding ImgMargin,RelativeSource={RelativeSource TemplatedParent}}" Source="{Binding Source,RelativeSource={RelativeSource TemplatedParent}}"/>
									<Image HorizontalAlignment="Right" VerticalAlignment="Top" Width="{Binding ActualWidth,ElementName=grdImg,Converter={StaticResource cvt}}" Source="{Binding MiniSource,RelativeSource={RelativeSource TemplatedParent}}"/>
								</Grid>
							</Grid>
						</Grid>
						
						<Label Foreground="{Binding Foreground,RelativeSource={RelativeSource TemplatedParent}}" Padding="4" VerticalAlignment="Bottom" HorizontalContentAlignment="Center" Content="{Binding Content,RelativeSource={RelativeSource TemplatedParent}}"></Label>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsSmall" Value="True">
							<Setter Property="Visibility" TargetName="grdImg" Value="Collapsed"/>
							<Setter Property="CornerRadius" TargetName="bdBack" Value="0"/>
							<Setter Property="Background" TargetName="bdBack" Value="Transparent"/>
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Background" TargetName="bdBack" Value="{Binding MouseOverColor,RelativeSource={RelativeSource TemplatedParent}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>