Feature layer time offset

This sample demonstrates how to show data from the same service side-by-side with a time offset. This allows for the comparison of data over time.

Time offset applied to a feature layer

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.FeatureLayerTimeOffset.FeatureLayerTimeOffset"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <Grid>
        <esriUI:MapView x:Name="MyMapView" />
        <Border Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="Auto">
            <StackPanel>
                <TextBlock Text="Red hurricanes offset 10 days" FontWeight="Bold"
                      HorizontalAlignment="Center" Foreground="Red" />
                <TextBlock Text="Blue hurricanes not offset" FontWeight="Bold"
                      HorizontalAlignment="Center" Foreground="Blue" />
                <TextBlock x:Name="lblCurrentDate" Text="" />
                <Slider x:Name="MyTimeSlider" ValueChanged="MyTimeSlider_ValueChanged" Minimum="0" Maximum="100" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code