GPTaskInfo

This sample demonstrates the GeoprocessingTaskInfo and GeoprocessingTaskParameters functionality provided by the ArcGIS Runtime. This sample allows you to browse to a .gpk and view task and parameter information. Useful information such as the Name property are required for the execution of geoprocessing tasks. You can also confirm that the parameters that you specify for executing a geoprocessing task are correct. A url to the GeoprocessingTask is useful for viewing the tools and parameters of the GeoprocessingTask in the ArcGISRuntime REST Services Directory by copying and pasting the url in the browser.

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.GPTaskInfo"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Grid x:Name="LayoutRoot" Background="#FFE3E3E3">
        <Grid.Resources>
            <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
            <LinearGradientBrush x:Key="PanelGradient" EndPoint="0.5,1" StartPoint="0.5,0">
                <LinearGradientBrush.RelativeTransform>
                    <TransformGroup>
                        <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                        <SkewTransform CenterY="0.5" CenterX="0.5"/>
                        <RotateTransform Angle="176" CenterY="0.5" CenterX="0.5"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </LinearGradientBrush.RelativeTransform>
                <GradientStop Color="#FF145787" Offset="0.16"/>
                <GradientStop Color="#FF3D7FAC" Offset="0.502"/>
                <GradientStop Color="#FF88C5EF" Offset="0.984"/>
            </LinearGradientBrush>
        </Grid.Resources>
            <Grid x:Name="mainGrid" Margin="10,10,10,10">
                <Rectangle Fill="{StaticResource PanelGradient}" Stroke="Black" StrokeThickness="1"  RadiusX="5" RadiusY="5" >
                    <Rectangle.Effect>
                        <DropShadowEffect/>
                    </Rectangle.Effect>
                </Rectangle>
                <StackPanel Orientation="Horizontal">
                <Label  Content="Path/URL:" Margin="10,10,0,10" Foreground="Black" Width="auto" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <TextBox x:Name="txtBoxPath" Text="..\\Data\\GPKs\\SimpleBuffer\\SimpleBuffer.gpk" Background="White" Height="26" VerticalAlignment="Top" HorizontalAlignment="Left" MaxWidth="570" Margin="10,10,0,10" />
                <Button Click="btnBrowseFile_Click" Content="..." Name="btnBrowseFile" Width="20" Height="26" HorizontalAlignment="Left" Margin="5,10,10,10" VerticalAlignment="Top"/>
                </StackPanel>
                <Rectangle x:Name="_rectangle" RadiusX="5" RadiusY="5" Fill="#DDFFFFFF" Stroke="DarkGray" Margin="10,40,10,10" Visibility="Hidden"/>
            </Grid>
        <ProgressBar x:Name="MyProgressBar" IsIndeterminate="True" VerticalAlignment="Bottom" Width="200" Height="20" Margin="15" Visibility="{Binding Path=IsBusy, Converter={StaticResource BooleanToVisibilityConverter}}"></ProgressBar>
    </Grid>
</UserControl>

Sample code usage restrictions
5/16/2014