<UserControl x:Class="parkMonitor.view.util.DevInfoPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:parkMonitor.view.util"
             mc:Ignorable="d"
			 Name="ctl"
             d:DesignHeight="200" d:DesignWidth="300">
	<UserControl.Style>
		<Style TargetType="UserControl">
			<Setter Property="Foreground" Value="#fff"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="MinWidth" Value="50"/>
			<Setter Property="MinHeight" Value="20"/>
			<Setter Property="Background" Value="#4c4c4c"/>
		</Style>
	</UserControl.Style>

	<Grid Grid.Column="4">

		<Grid SizeChanged="grdLineBox_SizeChanged" Name="grdLineBox">
			<Canvas Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Name="cavBox">
				<!--<Path Stroke="#f00" Margin="0,0,0,0" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top">
					<Path.Data>
						<LineGeometry StartPoint="0,0" EndPoint="300,200"/>
					</Path.Data>
				</Path>-->
				<Path Stroke="{Binding LineColor,ElementName=ctl}" Margin="0.5,-0.5,0,0" StrokeThickness="{Binding LineBorder,ElementName=ctl}">
					<Path.Data>
						<LineGeometry StartPoint="{Binding LineStartPos,ElementName=ctl}" EndPoint="{Binding LinePos,ElementName=ctl}"/>
					</Path.Data>
				</Path>
			</Canvas>
		</Grid>

		<Border CornerRadius="5" Background="{Binding Background,ElementName=ctl}" BorderBrush="#6ceff7" BorderThickness="{Binding BorderThickness,ElementName=ctl}"/>

		<ListBox Foreground="#fff" Margin="3" Background="Transparent" BorderThickness="0" Padding="0" ItemsSource="{Binding ItemsSource,ElementName=ctl}">
			<ListBox.ItemContainerStyle>
				<Style TargetType="ListBoxItem">
					<Setter Property="Padding" Value="0"/>
					<Style.Resources>
						<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/>
						<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent"/>
						<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent"/>
					</Style.Resources>
				</Style>
			</ListBox.ItemContainerStyle>
			<ListBox.ItemTemplate>
				<DataTemplate>
					<Grid Background="Transparent" Visibility="{Binding Visibe}" Name="grdMain">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="{Binding LeftWidth,ElementName=ctl}"/>
							<ColumnDefinition Width="*"/>
						</Grid.ColumnDefinitions>
						<Label Grid.Column="0" Padding="0,0,0,2" VerticalAlignment="Center" Foreground="{Binding Foreground}" Content="{Binding Name}" Name="lblName" Loaded="lblName_Loaded"/>
						<TextBox Grid.Column="1" Padding="0,0,0,2" Background="Transparent" BorderThickness="0" VerticalAlignment="Center" Foreground="{Binding Foreground}" IsReadOnly="True" Text="{Binding Info}"/>
					</Grid>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>

	</Grid>
</UserControl>
