ArcGIS Runtime SDK for .NET Samples

Closest facility (static)

Closest facility for each incident
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.ClosestFacilityStatic.ClosestFacilityStatic"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
    <Grid>
        <esriUI:MapView x:Name="MyMapView" />
        <Border Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <StackPanel>
                <Button Name="SolveRoutesButton"
                        Content="Solve route"
                        HorizontalAlignment="Stretch"
                        Margin="0,5"
                        Click="SolveRoutesClick"
                        IsEnabled="false" />
                <Button Name="ResetButton"
                        Content="Reset"
                        HorizontalAlignment="Stretch"
                        Click="ResetClick"
                        IsEnabled="false" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code