<Window x:Class="VisualPathFinder.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:UC="clr-namespace:VisualPathFinder"
    Title="VisualPathFinder" Height="870" Width="980" Icon="Resources/X.gif"
    >
    <Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="140"/>
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<UC:Map x:Name="Map" Grid.Column="1" Grid.Row="0"/>
		<StackPanel x:Name="PathSettings">
			<Expander Header="Map" IsExpanded="True">
				<StackPanel>
					<Button Click="btn_Random">Random Fill</Button>
					<Button Click="btn_Clear">Clear Path</Button>
					<Button Click="btn_ClearAll">Clear All</Button>
					<TextBlock>Rows:</TextBlock>
					<TextBox x:Name="rows" Text="50" TextChanged="change_rows"/>
					<TextBlock>Columns:</TextBlock>
					<TextBox x:Name="columns" Text="50" TextChanged="change_columns"/>
				</StackPanel>
			</Expander>
			<Expander Header="Path Finder" IsExpanded="True">
				<StackPanel>
					<Button Click="btn_Run" x:Name="x_RunButton">Run</Button>
					<TextBlock>Move Delay:</TextBlock>
					<TextBox x:Name="moveDelay">min</TextBox>
					<RadioButton x:Name="Breadth" IsChecked="{Binding Path=BreadthFirst}">Breadth First</RadioButton>
					<RadioButton x:Name="Best" IsChecked="{Binding Path=BestFirst}">Best First</RadioButton>
					<CheckBox Click="optimal_click" IsChecked="False">Optimal Path</CheckBox>
					<CheckBox x:Name="highligthPath" Click="highlight_click" IsChecked="True">Path Tracer</CheckBox>
					<CheckBox x:Name="allow_diagonals" Click="diagonals_click" IsChecked="False">Allow Diagonals</CheckBox>
					<CheckBox x:Name="random_path" Click="randomPath_Click" IsChecked="False">Personality</CheckBox>
				</StackPanel>
			</Expander>
			<Expander Header="Info">
				<StackPanel>
					<TextBlock>Moves:</TextBlock>
					<TextBlock x:Name="Attempts" Text="{Binding Path=Moves}"/>
					<TextBlock>Path Distance:</TextBlock>
					<TextBlock x:Name="distance" Text="{Binding Path=PathLength}"/>
				</StackPanel>
			</Expander>
		</StackPanel>
	</Grid>
</Window>
