<UserControl x:Class="OPlanner.ObjectProperties" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:CustomControl="clr-namespace:OPlanner">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="TemplatesAndStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style TargetType="Label">
                <Setter Property="Foreground" Value="#FFFFFF"/>
            </Style>
            <Style TargetType="RadioButton">
                <Setter Property="Foreground" Value="#FFFFFF"/>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>
    <StackPanel Style="{StaticResource HorizontalPanel}">
        <Label Style="{StaticResource PanelHeader}">Object Properties</Label>
        <StackPanel Name="mainPanel" Margin="0,0,0,5">
            <StackPanel Margin="1,2,1,1" Orientation="Horizontal">
                <StackPanel Orientation="Horizontal" Name="codePanel">
                    <Label>Code:</Label>
                    <TextBox Width="80" Margin="0,0,5,0" Name="codeText" PreviewLostKeyboardFocus="codeText_LostFocus"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Name="positionPanel">
                    <Label>X:</Label>
                    <TextBox Width="40" Margin="0,0,5,0" Name="xText" PreviewLostKeyboardFocus="xText_LostFocus"/>
                    <Label>Y:</Label>
                    <TextBox Width="40" Margin="0,0,5,0" Name="yText" PreviewLostKeyboardFocus="yText_LostFocus"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Name="rotationPanel" Margin="5,0,0,0">
                    <Label>Rotation:</Label>
                    <TextBox Width="40" Margin="0,0,5,0" Name="rotationText" PreviewLostKeyboardFocus="rotationText_LostFocus"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Name="sizePanel" Margin="5,0,0,0">
                    <Label>Size:</Label>
                    <TextBox Width="40" Margin="0,0,5,0" Name="sizeText" PreviewLostKeyboardFocus="sizeText_LostFocus"/>
                </StackPanel>
				<StackPanel Orientation="Horizontal" Name="opacityPanel" Margin="5,0,0,0">
					<Label>Opacity:</Label>
					<TextBox Width="40" Margin="0,0,5,0" Name="opacityText" PreviewLostKeyboardFocus="opacityText_LostFocus"/>
				</StackPanel>
			</StackPanel>
            <StackPanel Name="descriptionPanel">
                <Label Name="descriptionLabel">Description</Label>
                <StackPanel Orientation="Horizontal" Margin="1,1,1,5">
                    <StackPanel Orientation="Horizontal" Name="descriptionTextPanel">
                        <Label>Text:</Label>
                        <TextBox Width="300" Margin="0,0,5,0" Name="descriptionTextText" PreviewLostKeyboardFocus="descriptionTextText_LostFocus"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Name="descriptionSymbolPanel">
                        <Label VerticalAlignment="Center">Pictorial:</Label>
                        <Border BorderThickness="1" BorderBrush="Black" Margin="0,0,5,0" Name="pictorialContainer" SnapsToDevicePixels="True">
                            <StackPanel Background="#FFFFFF" Name="pictorialPanel" Orientation="Horizontal">
                                <CustomControl:DescriptionsHeader Column="1" IsEnabled="False"></CustomControl:DescriptionsHeader>
                                <Rectangle Width="1" Fill="Black"></Rectangle>
                                <CustomControl:DescriptionsHeader Column="2" IsEnabled="False"></CustomControl:DescriptionsHeader>
                                <Rectangle Width="1" Fill="Black"></Rectangle>
                                <CustomControl:DescriptionsHeader Column="3" DescriptionSelected="DescriptionSelected"></CustomControl:DescriptionsHeader>
                                <Rectangle Width="1" Fill="Black"></Rectangle>
                                <CustomControl:DescriptionsHeader Column="4" DescriptionSelected="DescriptionSelected"></CustomControl:DescriptionsHeader>
                                <Rectangle Width="1" Fill="Black"></Rectangle>
                                <CustomControl:DescriptionsHeader Column="5" DescriptionSelected="DescriptionSelected"></CustomControl:DescriptionsHeader>
                                <Rectangle Width="1" Fill="Black"></Rectangle>
                                <CustomControl:DescriptionsHeader Column="6" DescriptionSelected="DescriptionSelected" FeatureSizeSet="FeatureSizeSet"></CustomControl:DescriptionsHeader>
                                <Rectangle Width="1" Fill="Black"></Rectangle>
                                <CustomControl:DescriptionsHeader Column="7" DescriptionSelected="DescriptionSelected"></CustomControl:DescriptionsHeader>
                                <Rectangle Width="1" Fill="Black"></Rectangle>
                                <CustomControl:DescriptionsHeader Column="8" DescriptionSelected="DescriptionSelected"></CustomControl:DescriptionsHeader>
                            </StackPanel>
                        </Border>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Name="descriptionTypePanel">
                <Label>Description Type:</Label>
                <RadioButton GroupName="DescriptionTypeGroup" VerticalAlignment="Center" Margin="5,0,0,0" Name="descriptionTypeSymbol" Checked="descriptionType_Checked">Symbol</RadioButton>
                <RadioButton GroupName="DescriptionTypeGroup" VerticalAlignment="Center" Margin="15,0,0,0" Name="descriptionTypeText" Checked="descriptionType_Checked">Text</RadioButton>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Name="checkBoxPanel">
                <StackPanel Orientation="Horizontal" Name="displayGloballyPanel">
                    <Label>Display on all courses:</Label>
                    <CheckBox Name="displayGlobally" VerticalAlignment="Center" Checked="displayGlobally_Checked" Unchecked="displayGlobally_Checked" Margin="0,0,10,0"></CheckBox>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Name="autoLinePanel">
                    <Label>Auto Line to Next Object:</Label>
                    <CheckBox Name="autoLine" VerticalAlignment="Center" Checked="autoLine_Checked" Unchecked="autoLine_Checked" Margin="0,0,5,0"></CheckBox>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Name="numberOffsetPanel">
                <Label>Number Offset:</Label>
                <RadioButton GroupName="NumberOffsetGroup" VerticalAlignment="Center" Margin="5,0,0,0" Name="numberOffsetAuto" Checked="numberOffset_Checked">Auto</RadioButton>
                <RadioButton GroupName="NumberOffsetGroup" VerticalAlignment="Center" Margin="15,0,0,0" Name="numberOffsetManual" Checked="numberOffset_Checked">Manual</RadioButton>
                <StackPanel Orientation="Horizontal" Name="numberOffsetManualPanel" Margin="0,0,0,2">
                    <Label Margin="5,0,0,0">X:</Label>
                    <TextBox Width="40" Name="numberXOffset" PreviewLostKeyboardFocus="numberXOffset_PreviewLostKeyboardFocus"/>
                    <Label Margin="5,0,0,0">Y:</Label>
                    <TextBox Width="40" Name="numberYOffset" PreviewLostKeyboardFocus="numberYOffset_PreviewLostKeyboardFocus"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Name="numberTextPanel">
                <Label>Number Text:</Label>
                <RadioButton GroupName="NumberTextGroup" VerticalAlignment="Center" Margin="5,0,0,0" Name="numberTextAuto" Checked="numberText_Checked">Auto</RadioButton>
                <RadioButton GroupName="NumberTextGroup" VerticalAlignment="Center" Margin="15,0,0,0" Name="numberTextNone" Checked="numberText_Checked">None</RadioButton>
                <RadioButton GroupName="NumberTextGroup" VerticalAlignment="Center" Margin="15,0,0,0" Name="numberTextManual" Checked="numberText_Checked">Manual</RadioButton>
                <StackPanel Orientation="Horizontal" Name="numberTextManualPanel" Margin="0,0,0,2">
                    <Label Margin="5,0,0,0">Text:</Label>
                    <TextBox Width="100" Name="numberTextBox" PreviewLostKeyboardFocus="numberTextBox_PreviewLostKeyboardFocus"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Name="textPanel">
                <Label>Text:</Label>
                <TextBox AcceptsReturn="True" Width="365" Margin="0,0,5,0" Name="textText" PreviewLostKeyboardFocus="textText_LostFocus" MaxLines="2" MinLines="2"/>
            </StackPanel>
			<StackPanel Orientation="Horizontal" Name="titlePanel">
				<Label>Title:</Label>
				<TextBox Width="365" Margin="0,0,5,0" Name="titleText" PreviewLostKeyboardFocus="titleText_LostFocus"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal" Name="maxRowsPanel" Margin="0,2,0,0">
				<Label>Maximum Number of Rows:</Label>
				<TextBox Width="40" Margin="0,0,5,0" Name="maxRowsText" PreviewLostKeyboardFocus="maxRowsText_LostFocus"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal" Name="distancePanel">
				<Label>Distance:</Label>
				<Label Margin="0,0,5,0" Name="distanceLabel" Content="0 m"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal" Name="colorPanel">
				<Label>Color:</Label>
				<TextBox Width="100" Margin="0,0,5,0" Name="colorText" PreviewLostKeyboardFocus="colorText_LostFocus"/>
			</StackPanel>
		</StackPanel>
    </StackPanel>
</UserControl>
