ArcGIS Runtime SDK for .NET Samples

Take screenshot

Take screenshot
Loading

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.TakeScreenshot.TakeScreenshot"
             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:MapView x:Name="MyMapView" />
        <Border Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <StackPanel>
                <Button x:Name="ScreenshotButton"
                        Content="Take screenshot"
                        Click="OnScreenshotButtonClicked" />
                <Image x:Name="ImageView"
                       Margin="0,5,0,0"
                       Visibility="Collapsed" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code