ArcGIS Runtime SDK for .NET Samples

Line of Sight (GeoElement)

Line of sight analysis from a geo element
Loading

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.LineOfSightGeoElement.LineOfSightGeoElement"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:SceneView x:Name="MySceneView" />
        <Border
            Background="White" BorderBrush="Black" BorderThickness="1"
            HorizontalAlignment="Right" VerticalAlignment="Top"
            Margin="30" Padding="20" Width="375">
            <StackPanel>
                <TextBlock Text="Adjust the slider to change the observer's altitude."
                           TextAlignment="Center" TextWrapping="Wrap" FontWeight="SemiBold" />
                <TextBlock x:Name="MyStatusLabel"
                           Text="Status: " TextAlignment="Center"
                           Margin="0,5,0,0"
                           Foreground="DarkBlue" />
                <Slider Margin="0,5,0,0"
                        ValueChanged="HeightSlider_ValueChanged" />
            </StackPanel>
        </Border>
    </Grid>

</UserControl>


In this topic
  1. Code