C# Class ArcGISRuntime.Desktop.Viewer.Managers.SampleManager

Single instance class to manage samples.
Datei anzeigen Open project: Esri/arcgis-runtime-samples-dotnet

Public Methods

Method Description
GetFeaturedSamples ( ) : List

Gets featured samples.

GetSamplesAsTree ( ) : List

Gets all samples as a tree.

InitializeAsync ( System.Language language ) : System.Threading.Tasks.Task
SampleToControl ( SampleModel sampleModel ) : Control

Creates a new control from sample.

Private Methods

Method Description
CreateAllAsync ( ) : System.Threading.Tasks.Task

Creates whole sample structure.

DoesSampleTypeExists ( SampleModel sampleModel ) : bool

Check if the sample has a type registered.

RemoveEmptySamples ( ) : void

Remove samples that doesn't have a type registered i.e. cannot be shown.

SampleManager ( ) : ArcGISRuntime.Samples.Models

Method Details

GetFeaturedSamples() public method

Gets featured samples.
public GetFeaturedSamples ( ) : List
return List

GetSamplesAsTree() public method

Gets all samples as a tree.
public GetSamplesAsTree ( ) : List
return List

InitializeAsync() public method

public InitializeAsync ( System.Language language ) : System.Threading.Tasks.Task
language System.Language
return System.Threading.Tasks.Task

SampleToControl() public method

Creates a new control from sample.
public SampleToControl ( SampleModel sampleModel ) : Control
sampleModel ArcGISRuntime.Samples.Models.SampleModel Sample that is transformed into a control
return System.Windows.Controls.Control