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

Represents a layer in the TOC/legend.
Inheritance: LegendItemViewModel
显示文件 Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Private Properties

Property 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

Public Methods

Method Description
LayerItemViewModel ( Layer layer ) : System

Initializes a new instance of the LayerItemViewModel class.

Protected Methods

Method Description
ConvertToResolution ( double scale, Map map ) : double

Converts to resolution.

Private Methods

Method 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 method

Converts to resolution.
protected ConvertToResolution ( double scale, Map map ) : double
scale double The scale.
map Map The map.
return double

LayerItemViewModel() public method

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