ArcGIS Runtime SDK for .NET Samples

Take screenshot

Take screenshot
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"
             xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime" 
             x:Class="ArcGISRuntime.Samples.TakeScreenshot.TakeScreenshot">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Button x:Name="TakeScreenshotButton" Text="Capture" Clicked="OnTakeScreenshotClicked"></Button>
        <esriUI:MapView x:Name="MyMapView" Grid.Row="1"/>
        <ActivityIndicator x:Name="CreatingImageIndicator"
                           Grid.Row="1" Color="Fuchsia"
                           HorizontalOptions="Center" VerticalOptions="Center"
                           IsRunning="True" IsVisible="False"/>
    </Grid>
</ContentPage>


In this topic
  1. Code