<commit_before>﻿<Page
	x:Class="ArcGISRuntimeSDKDotNet_PhoneSamples.Samples.Relate"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="using:ArcGISRuntimeSDKDotNet_PhoneSamples"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:esri="using:Esri.ArcGISRuntime.Controls"
	xmlns:layers="using:Esri.ArcGISRuntime.Layers"
	xmlns:data="using:Esri.ArcGISRuntime.Data"
	xmlns:symb="using:Esri.ArcGISRuntime.Symbology"
	mc:Ignorable="d"
	Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

	<Page.Resources>
		<esri:DrawShape x:Key="Point">Point</esri:DrawShape>
		<esri:DrawShape x:Key="Polyline">Polyline</esri:DrawShape>
		<esri:DrawShape x:Key="Polygon">Polygon</esri:DrawShape>
	</Page.Resources>
	<Page.BottomAppBar>
		<CommandBar>
			<CommandBar.PrimaryCommands>
				<AppBarButton Label="Options" Icon="Setting">
					<AppBarButton.Flyout>
						<Flyout>
							<StackPanel>
								<StackPanel Orientation="Horizontal" Margin="12,0" VerticalAlignment="Center">
									<TextBlock Text="Shape 1:" Margin="6,0" VerticalAlignment="Center" />
									<ComboBox x:Name="comboShapeOne" SelectedIndex="2" Width="110" SelectedValuePath="Tag">
										<ComboBoxItem Tag="{StaticResource Point}">Point</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polyline}">Polyline</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polygon}">Polygon</ComboBoxItem>
									</ComboBox>
								</StackPanel>

								<StackPanel Orientation="Horizontal" Margin="12,0" VerticalAlignment="Center">
									<TextBlock Text="Shape 2:" Margin="6,0" VerticalAlignment="Center" />
									<ComboBox x:Name="comboShapeTwo" SelectedIndex="2" Width="110" SelectedValuePath="Tag">
										<ComboBoxItem Tag="{StaticResource Point}">Point</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polyline}">Polyline</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polygon}">Polygon</ComboBoxItem>
									</ComboBox>
								</StackPanel>
								<StackPanel>
									<TextBlock Text="Relationship:" FontSize="16" VerticalAlignment="Center"/>
									<ComboBox x:Name="cboRelation" Margin="10,0,20,0">
										<ComboBoxItem Content="T*****FF* (Contains)"/>
										<ComboBoxItem Content="T******** (Intersects)"/>
										<ComboBoxItem Content="T*F**F*** (Within)"/>
										<ComboBoxItem Content="T*F**FFF* (Equals)"/>
										<ComboBoxItem Content="FF*FF**** (Disjoint)"/>
									</ComboBox>
								</StackPanel>
							</StackPanel>
						</Flyout>
					</AppBarButton.Flyout>
				</AppBarButton>
			</CommandBar.PrimaryCommands>
			<CommandBar.SecondaryCommands>
				<AppBarButton Label="Info">
					<AppBarButton.Flyout>
						<Flyout>
							<TextBlock Text="Click Start Drawing to add two shapes to the map. Then test the relationship of Shape #1 to Shape #2 by clicking Test Relationship." 
						   Margin="10,0,10,0" FontSize="14" TextWrapping="Wrap" />
						</Flyout>
					</AppBarButton.Flyout>
				</AppBarButton>
			</CommandBar.SecondaryCommands>
		</CommandBar>
	</Page.BottomAppBar>
	<Grid x:Name="LayoutRoot" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
		<Grid.Resources>

			<local:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>

			<symb:SimpleLineSymbol x:Key="LineSymbol" Color="Blue" Style="Solid" Width="2" />
			<symb:SimpleMarkerSymbol x:Key="PointSymbol" Color="Red" Style="Circle" Size="12" Outline="{StaticResource LineSymbol}" />
			<symb:SimpleFillSymbol x:Key="FillSymbol" Color="#7F0000FF" Style="DiagonalCross" Outline="{StaticResource LineSymbol}" />
		</Grid.Resources>

		<esri:MapView x:Name="MyMapView" WrapAround="True">
			<esri:Map>
				<layers:ArcGISTiledMapServiceLayer
					ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer" />
			</esri:Map>
			<esri:MapView.GraphicsOverlays>
				<esri:GraphicsOverlay ID="graphicsOverlay" />
			</esri:MapView.GraphicsOverlays>
		</esri:MapView>

		<Border Background="#CC000000" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="30" Padding="20">
			<StackPanel>

				<Button x:Name="btnDraw"  Content="Start Drawing" Margin="20,5" HorizontalAlignment="Stretch"
						IsEnabled="False" Click="StartDrawingButton_Click"/>

				<Button x:Name="btnTest" Content="Test Relationship" Margin="20,5" HorizontalAlignment="Stretch"
						IsEnabled="False" Click="RelateButton_Click"/>
<commit_msg>Phone: Relate sample - update UX.<commit_after>﻿<Page
	x:Class="ArcGISRuntimeSDKDotNet_PhoneSamples.Samples.Relate"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="using:ArcGISRuntimeSDKDotNet_PhoneSamples"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:esri="using:Esri.ArcGISRuntime.Controls"
	xmlns:layers="using:Esri.ArcGISRuntime.Layers"
	xmlns:symb="using:Esri.ArcGISRuntime.Symbology"
	mc:Ignorable="d"
	Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

	<Page.Resources>
		<esri:DrawShape x:Key="Point">Point</esri:DrawShape>
		<esri:DrawShape x:Key="Polyline">Polyline</esri:DrawShape>
		<esri:DrawShape x:Key="Polygon">Polygon</esri:DrawShape>
	</Page.Resources>
	<Page.BottomAppBar>
		<CommandBar>
			<CommandBar.PrimaryCommands>
				<AppBarButton Label="Options" Icon="Setting">
					<AppBarButton.Flyout>
						<Flyout>
							<StackPanel>
								<StackPanel Orientation="Horizontal" Margin="12,0" VerticalAlignment="Center">
									<TextBlock Text="Shape 1:" Margin="6,0" VerticalAlignment="Center" />
									<ComboBox x:Name="comboShapeOne" SelectedIndex="2" Width="110" SelectedValuePath="Tag">
										<ComboBoxItem Tag="{StaticResource Point}">Point</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polyline}">Polyline</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polygon}">Polygon</ComboBoxItem>
									</ComboBox>
								</StackPanel>

								<StackPanel Orientation="Horizontal" Margin="12,0" VerticalAlignment="Center">
									<TextBlock Text="Shape 2:" Margin="6,0" VerticalAlignment="Center" />
									<ComboBox x:Name="comboShapeTwo" SelectedIndex="2" Width="110" SelectedValuePath="Tag">
										<ComboBoxItem Tag="{StaticResource Point}">Point</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polyline}">Polyline</ComboBoxItem>
										<ComboBoxItem Tag="{StaticResource Polygon}">Polygon</ComboBoxItem>
									</ComboBox>
								</StackPanel>
								<StackPanel>
									<TextBlock Text="Relationship:" FontSize="16" VerticalAlignment="Center"/>
									<ComboBox x:Name="cboRelation" Margin="10,0,20,0">
										<ComboBoxItem Content="T*****FF* (Contains)"/>
										<ComboBoxItem Content="T******** (Intersects)"/>
										<ComboBoxItem Content="T*F**F*** (Within)"/>
										<ComboBoxItem Content="T*F**FFF* (Equals)"/>
										<ComboBoxItem Content="FF*FF**** (Disjoint)"/>
									</ComboBox>
								</StackPanel>
							</StackPanel>
						</Flyout>
					</AppBarButton.Flyout>
				</AppBarButton>
			</CommandBar.PrimaryCommands>
		</CommandBar>
	</Page.BottomAppBar>
	<Grid x:Name="LayoutRoot" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
		<Grid.Resources>

			<local:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>

			<symb:SimpleLineSymbol x:Key="LineSymbol" Color="Blue" Style="Solid" Width="2" />
			<symb:SimpleMarkerSymbol x:Key="PointSymbol" Color="Red" Style="Circle" Size="12" Outline="{StaticResource LineSymbol}" />
			<symb:SimpleFillSymbol x:Key="FillSymbol" Color="#7F0000FF" Style="DiagonalCross" Outline="{StaticResource LineSymbol}" />
		</Grid.Resources>

		<esri:MapView x:Name="MyMapView" WrapAround="True">
			<esri:Map>
				<layers:ArcGISTiledMapServiceLayer
					ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer" />
			</esri:Map>
			<esri:MapView.GraphicsOverlays>
				<esri:GraphicsOverlay ID="graphicsOverlay" />
			</esri:MapView.GraphicsOverlays>
		</esri:MapView>

		<Border Background="#CC000000" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="30" Padding="20">
			<StackPanel>
				<TextBlock Text="Click Options to specify the shape types and relationship. Then click Start Drawing to draw shapes on the map. Click Test Relationship to test."
						   FontSize="14" TextWrapping="WrapWholeWords" Margin="5"/>
				<Button x:Name="btnDraw"  Content="Start Drawing" Margin="20,5" HorizontalAlignment="Stretch"
						IsEnabled="False" Click="StartDrawingButton_Click"/>

				<Button x:Name="btnTest" Content="Test Relationship" Margin="20,5" HorizontalAlignment="Stretch"
						IsEnabled="False" Click="RelateButton_Click"/>

{'fraction_non_alphanumeric': 0.15212303577398864, 'fraction_numerical': 0.01660537167056726, 'mean_word_length': 4.943046357615894, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 19}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4672342', 'n_tokens_mistral': 3680, 'n_tokens_neox': 2806, 'n_words': 416}