C# Class ESRI.ArcGIS.Client.Toolkit.Primitives.LayerItemViewModel

Represents a layer in the TOC/legend.
Inheritance: LegendItemViewModel
Afficher le fichier Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Private Properties

Свойство Type Description
Attach void
Detach void
GetLayerItemsSource IEnumerable
GetMapUnit MapUnit
GetTemplate System.Windows.DataTemplate
IsInDesignMode bool
LayerItemViewModel System
LayerItemViewModel System
LayerItem_PropertyChanged void
LayerItemsSourceChanged void
LayerItems_CollectionChanged void
LegendItems_CollectionChanged void
RatioScaleResolution double
Subscribe void
Unsubscribe void
UpdateLayerVisibilities void

Méthodes publiques

Méthode Description
LayerItemViewModel ( Layer layer ) : System

Initializes a new instance of the LayerItemViewModel class.

Méthodes protégées

Méthode Description
ConvertToResolution ( double scale, Map map ) : double

Converts to resolution.

Private Methods

Méthode Description
Attach ( ESRI.ArcGIS.Client.Toolkit.Primitives.LegendTree legendTree ) : void
Detach ( ) : void
GetLayerItemsSource ( ) : IEnumerable
GetMapUnit ( Map map, bool isWebMercator ) : MapUnit
GetTemplate ( ) : System.Windows.DataTemplate

Gets the template.

IsInDesignMode ( ) : bool
LayerItemViewModel ( ) : System

Initializes a new instance of the LayerItemViewModel class without layer.

LayerItemViewModel ( Layer layer, LayerLegendInfo layerLegendInfo, string defaultLayerDescription, Map map ) : System

Initializes a new instance of the LayerItemViewModel class from a LayerLegendInfo..

LayerItem_PropertyChanged ( object sender, System e ) : void
LayerItemsSourceChanged ( ) : void
LayerItems_CollectionChanged ( object sender, System e ) : void
LegendItems_CollectionChanged ( object sender, System e ) : void
RatioScaleResolution ( MapUnit mapUnit, double yCenter, bool isWebMercator ) : double
Subscribe ( IEnumerable layerItems ) : void
Unsubscribe ( IEnumerable layerItems ) : void
UpdateLayerVisibilities ( bool isParentVisible, bool isParentInScaleRange, bool isParentInTimeExtent ) : void

Updates recursively the properties IsEnabled, IsVisible, IsInScaleRange and IsInTimeExtent.

Method Details

ConvertToResolution() protected méthode

Converts to resolution.
protected ConvertToResolution ( double scale, Map map ) : double
scale double The scale.
map Map The map.
Résultat double

LayerItemViewModel() public méthode

Initializes a new instance of the LayerItemViewModel class.
public LayerItemViewModel ( Layer layer ) : System
layer Layer The layer this item represents.
Résultat System