Class TableOfContents
A control that creates a table of content tree view from a GeoView.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WPF.dll
Syntax
public class TableOfContents : TreeView, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IContainItemStorage, IAddChild
Constructors
| Improve this Doc View SourceTableOfContents()
Initializes a new instance of the TableOfContents class.
Declaration
public TableOfContents()
Fields
| Improve this Doc View SourceBasemapItemTemplateProperty
Identifies the BasemapItemTemplate dependency property.
Declaration
public static readonly DependencyProperty BasemapItemTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GeoViewProperty
Identifies the GeoView dependency property.
Declaration
public static readonly DependencyProperty GeoViewProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LayerItemTemplateProperty
Identifies the LayerItemTemplate dependency property.
Declaration
public static readonly DependencyProperty LayerItemTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Remarks
If this is set to null, the SublayerItemTemplate will be used instead.
LegendInfoItemTemplateProperty
Identifies the LegendInfoItemTemplate dependency property.
Declaration
public static readonly DependencyProperty LegendInfoItemTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ShowLegendProperty
Identifies the ShowLegend dependency property.
Declaration
public static readonly DependencyProperty ShowLegendProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SublayerItemTemplateProperty
Identifies the SublayerItemTemplate dependency property.
Declaration
public static readonly DependencyProperty SublayerItemTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBasemapItemTemplate
Gets or sets the item template for each
Declaration
public DataTemplate BasemapItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
See Also
| Improve this Doc View SourceGeoView
Gets or sets the geoview that contain the layers whose symbology and description will be displayed.
Declaration
public GeoView? GeoView { get; set; }
Property Value
Type | Description |
---|---|
Nullable<GeoView> |
LayerItemTemplate
Gets or sets the item template for each
Declaration
public HierarchicalDataTemplate LayerItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
HierarchicalDataTemplate |
Remarks
If this is set to null, the SublayerItemTemplate will be used instead.
See Also
| Improve this Doc View SourceLegendInfoItemTemplate
Gets or sets the item template for each
Declaration
public DataTemplate LegendInfoItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
See Also
| Improve this Doc View SourceShowLegend
Gets or sets a value indicating whether to show a legend for the layers in the tree view.
Declaration
public bool ShowLegend { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SublayerItemTemplate
Gets or sets the item template for each
Declaration
public HierarchicalDataTemplate SublayerItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
HierarchicalDataTemplate |
See Also
Events
| Improve this Doc View SourceTocItemContextMenuOpening
Event fired by the TableOfContents when right-clicking a TocItem in the tree
Declaration
public event EventHandler<TocItemContextMenuEventArgs> TocItemContextMenuOpening
Event Type
Type | Description |
---|---|
EventHandler<TocItemContextMenuEventArgs> |