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

Internal class encapsulating a layer item representing the virtual root item for the legend tree. The LayerItems collection of this item is the collection of map layer item displayed at the first level of the TOC. This class manages the events coming from the map, from the map layers and from the map layer items.
Inheritance: Esri.ArcGISRuntime.Toolkit.Controls.Primitives.LayerItemViewModel
显示文件 Open project: Esri/arcgis-toolkit-dotnet Class Usage Examples

Private Properties

Property Type Description
AttachLayerHandler void
DetachLayerHandler void
FindMapLayerItem MapLayerItem
Layer_PropertyChanged void
Layers_CollectionChanged void
OnRefreshed void
OnScaleChanged void
PropagateLayerItemsOptions void
PropagateTemplate void
Refresh void
UpdateLayerItemsOptions void
UpdateLayerVisibilities void
UpdateMapLayerItems void
UpdateMapLayerItemsRecursive void

Public Methods

Method Description
LegendTree ( ) : Esri.ArcGISRuntime.Layers

Private Methods

Method Description
AttachLayerHandler ( Layer layer ) : void
DetachLayerHandler ( Layer layer ) : void
FindMapLayerItem ( Layer layer ) : MapLayerItem
Layer_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
Layers_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnRefreshed ( object sender, Legend args ) : void
OnScaleChanged ( ) : void
PropagateLayerItemsOptions ( LayerItemsOpts layerItemsOptions ) : void
PropagateTemplate ( ) : void
Refresh ( ) : void

Refreshes the legend control.

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

UpdateLayerItemsOptions ( ) : void
UpdateLayerVisibilities ( ) : void
UpdateMapLayerItems ( ) : void
UpdateMapLayerItemsRecursive ( ObservableCollection mapLayerItems, IEnumerable layers ) : void

Method Details

LegendTree() public method

public LegendTree ( ) : Esri.ArcGISRuntime.Layers
return Esri.ArcGISRuntime.Layers