Animate 3D Graphic

Animate 3d graphic in a scene view

Loading

Code

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             x:Class="ArcGISRuntime.Samples.Animate3DGraphic.Animate3DGraphic"
             Title="Animate 3D Graphic">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="170" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="170" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="150" />
        </Grid.ColumnDefinitions>
        <esriUI:SceneView x:Name="MySceneView" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="3" AtmosphereEffect="Realistic" />
        <StackLayout Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Orientation="Horizontal" Margin="5">
            <Picker x:Name="MissionSelectionBox" />
            <Button Clicked="MissionPlayPlauseClick" Margin="5,0,0,0" Text="Pause" />
            <Button  HorizontalOptions="End" VerticalOptions="End" Clicked="ToggleFollowPlane" Text="Don't Follow" />
        </StackLayout>
        <Frame Grid.Row ="1" Grid.Column="2" Margin="5"  x:Name="LayoutFrame">
            <!-- Frame is hidden on iOS due to layout issues -->
            <StackLayout Padding="5" Opacity=".7" BackgroundColor="White">
                <Label TextColor="Black" Text="Mission Progress:" />
                <Slider x:Name="MissionProgressBar" Maximum="100" ValueChanged="MissionProgressOnSeek" />
                <Label TextColor="Black" >Altitude:</Label>
                <Label TextColor="Black" x:Name="AltitudeLabel" />
                <Label TextColor="Black">Heading:</Label>
                <Label TextColor="Black" x:Name="HeadingLabel" />
                <Label TextColor="Black">Pitch:</Label>
                <Label TextColor="Black" x:Name="PitchLabel" />
                <Label TextColor="Black">Roll:</Label>
                <Label TextColor="Black" x:Name="RollLabel" />
            </StackLayout>
        </Frame>
        <esriUI:MapView x:Name="InsetMapView" Grid.Row="2"  Grid.Column="0" Margin="20" IsAttributionTextVisible="False" />
    </Grid>
</ContentPage>


In this topic
  1. Code