<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:RotateLabel}">
		<Setter Property="HorizontalContentAlignment" Value="Right"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:RotateLabel}">
					<Grid>
						<Canvas Width="15" Height="15" RenderTransformOrigin="1,1">
							<Label
								Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
								Width="{Binding Width,RelativeSource={RelativeSource TemplatedParent}}"
								Height="{Binding Height,RelativeSource={RelativeSource TemplatedParent}}"
								Foreground="{Binding Foreground,RelativeSource={RelativeSource TemplatedParent}}"
								Visibility="{Binding Visibility,RelativeSource={RelativeSource TemplatedParent}}"
								VerticalContentAlignment="{Binding VerticalContentAlignment,RelativeSource={RelativeSource TemplatedParent}}"
								Padding="{Binding Padding,RelativeSource={RelativeSource TemplatedParent}}"
								IsHitTestVisible="{Binding IsHitTestVisible,RelativeSource={RelativeSource TemplatedParent}}">
								<Label.Style>
									<Style TargetType="Label">
										<Style.Triggers>
											<DataTrigger Binding="{Binding HorizontalContentAlignment,RelativeSource={RelativeSource TemplatedParent}}" Value="Right">
												<Setter Property="Canvas.Right" Value="0"/>
												<Setter Property="Canvas.Bottom" Value="0"/>
											</DataTrigger>
										</Style.Triggers>
									</Style>
								</Label.Style>
							</Label>
							<Canvas.RenderTransform>
								<RotateTransform Angle="{Binding Angle,RelativeSource={RelativeSource TemplatedParent}}"/>
							</Canvas.RenderTransform>
						</Canvas>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>