<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"
					xmlns:supUI="clr-namespace:com.superscene.ui">
	<Style TargetType="{x:Type local:ImageMenu}">
		<Setter Property="Height" Value="{Binding NormalHeight,RelativeSource={RelativeSource Self}}"/>
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<StackPanel Orientation="Horizontal" HorizontalAlignment="Left"/>
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:ImageMenu}">
					<Grid Margin="8,8,8,0" Name="grdBox">
						<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>

						<Border Padding="5,3" HorizontalAlignment="Right" VerticalAlignment="Bottom" supUI:XEvtTrigger.MouseLeftButtonUp="{Binding CmdClickScaleBtn, RelativeSource={RelativeSource AncestorType={x:Type local:ImageMenu}}}">
							<Grid>
								<Image Width="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Source="/parkMonitor;component/resource/image/menuToMin.png" Name="imgToMin"/>
								<Image Width="20" Visibility="Collapsed" HorizontalAlignment="Right" VerticalAlignment="Bottom" Source="/parkMonitor;component/resource/image/menuToMax.png" Name="imgToMax"/>
							</Grid>

							<Border.Style>
								<Style TargetType="Border">
									<Setter Property="Background" Value="Transparent"/>
									<Style.Triggers>
										<Trigger Property="IsMouseOver" Value="True">
											<Setter Property="Background" Value="#636363"/>
										</Trigger>
									</Style.Triggers>
								</Style>
							</Border.Style>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsSmall" Value="True">
							<Setter Property="Height" Value="{Binding SmallHeight,RelativeSource={RelativeSource Self}}"/>
							<Setter Property="Visibility" TargetName="imgToMin" Value="Collapsed"/>
							<Setter Property="Visibility" TargetName="imgToMax" Value="Visible"/>
							<Setter Property="Margin" TargetName="grdBox" Value="8,0"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>