C# Class Esri.ArcGISRuntime.Toolkit.Controls.Legend

The Legend is a utility control that displays the symbology of Layers and their description for map interpretation.
Inheritance: Control
ファイルを表示 Open project: Esri/arcgis-toolkit-dotnet Class Usage Examples

Public Properties

Property Type Description
LayerItemsProperty DependencyProperty
LayerItemsSourceProperty DependencyProperty
LayerTemplateProperty DependencyProperty
LayersProperty DependencyProperty
LegendItemTemplateProperty DependencyProperty
MapLayerTemplateProperty DependencyProperty
ReverseLayersOrderProperty DependencyProperty
ScaleProperty DependencyProperty
ShowOnlyVisibleLayersProperty DependencyProperty

Public Methods

Method Description
Legend ( ) : Esri.ArcGISRuntime.Layers

Initializes a new instance of the Legend class.

OnApplyTemplate ( ) : void
Refresh ( ) : void

Refreshes the legend control.

Note : In most cases, the control is always up to date without calling the refresh method.

Protected Methods

Method Description
OnApplyTemplate ( ) : void

Private Methods

Method Description
LegendTree_PropertyChanged ( object sender, System e ) : void
OnLayerTemplateChanged ( DataTemplate newDataTemplate ) : void
OnLayerTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnLayersPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnLayersPropertyChanged ( IEnumerable newLayers ) : void
OnLegendItemTemplateChanged ( DataTemplate newDataTemplate ) : void
OnLegendItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnMapLayerTemplateChanged ( DataTemplate newDataTemplate ) : void
OnMapLayerTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnRefreshed ( object sender, RefreshedEventArgs args ) : void
OnReverseLayersOrderChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnReverseLayersOrderChanged ( bool newReverseLayersOrder ) : void
OnScalePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnScalePropertyChanged ( double scale ) : void
OnShowOnlyVisibleLayersPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnShowOnlyVisibleLayersPropertyChanged ( bool newValue ) : void
UpdateLayerItemsSource ( ) : void
UpdateLayerItemsSourceImpl ( ) : void

Method Details

Legend() public method

Initializes a new instance of the Legend class.
public Legend ( ) : Esri.ArcGISRuntime.Layers
return Esri.ArcGISRuntime.Layers

OnApplyTemplate() protected public method

protected public OnApplyTemplate ( ) : void
return void

Refresh() public method

Refreshes the legend control.
Note : In most cases, the control is always up to date without calling the refresh method.
public Refresh ( ) : void
return void

Property Details

LayerItemsProperty public_oe static_oe property

Identifies the LayerItems dependency property.
public static DependencyProperty LayerItemsProperty
return DependencyProperty

LayerItemsSourceProperty public_oe static_oe property

Identifies the LayerItemsSource dependency property.
public static DependencyProperty LayerItemsSourceProperty
return DependencyProperty

LayerTemplateProperty public_oe static_oe property

Identifies the LayerTemplate dependency property.
public static DependencyProperty LayerTemplateProperty
return DependencyProperty

LayersProperty public_oe static_oe property

Identifies the Layers Dependency property.
public static DependencyProperty LayersProperty
return DependencyProperty

LegendItemTemplateProperty public_oe static_oe property

Identifies the LegendItemTemplate dependency property.
public static DependencyProperty LegendItemTemplateProperty
return DependencyProperty

MapLayerTemplateProperty public_oe static_oe property

Identifies the LegendItemTemplate dependency property.
public static DependencyProperty MapLayerTemplateProperty
return DependencyProperty

ReverseLayersOrderProperty public_oe static_oe property

Identifies the ReverseLayersOrder dependency property.
public static DependencyProperty ReverseLayersOrderProperty
return DependencyProperty

ScaleProperty public_oe static_oe property

Identifies the Scale Dependency property.
public static DependencyProperty ScaleProperty
return DependencyProperty

ShowOnlyVisibleLayersProperty public_oe static_oe property

Identifies the ShowOnlyVisibleLayers dependency property.
public static DependencyProperty ShowOnlyVisibleLayersProperty
return DependencyProperty