Class Legend
The Legend control is used to display symbology and description for a set of
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class Legend : Control
Constructors
| Improve this Doc View SourceLegend()
Initializes a new instance of the Legend class.
Declaration
public Legend()
Fields
| Improve this Doc View SourceFilterByVisibleScaleRangeProperty
Identifies the FilterByVisibleScaleRange dependency property.
Declaration
public static readonly DependencyProperty FilterByVisibleScaleRangeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FilterHiddenLayersProperty
Identifies the FilterHiddenLayers dependency property.
Declaration
public static readonly DependencyProperty FilterHiddenLayersProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GeoViewProperty
Identifies the GeoView dependency property.
Declaration
public static readonly DependencyProperty GeoViewProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ItemTemplateSelectorProperty
Identifies the ItemTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateSelectorProperty
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 |
ReverseLayerOrderProperty
Identifies the ReverseLayerOrder dependency property.
Declaration
public static readonly DependencyProperty ReverseLayerOrderProperty
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 SourceFilterByVisibleScaleRange
Gets or sets a value indicating whether the scale of GeoView and any scale ranges on the
Declaration
public bool FilterByVisibleScaleRange { get; set; }
Property Value
Type | Description |
---|---|
Boolean | If |
FilterHiddenLayers
Gets or sets a value indicating whether the visibility of a
Declaration
public bool FilterHiddenLayers { get; set; }
Property Value
Type | Description |
---|---|
Boolean | If |
GeoView
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> |
ItemTemplateSelector
Gets or sets the template selector used for selecting templates for each entry in the list.
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
Type | Description |
---|---|
DataTemplateSelector |
Remarks
If the default template selector is overridden, the item templates will not apply.
LayerItemTemplate
Gets or sets the item template for each
Declaration
public DataTemplate LayerItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
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 SourceReverseLayerOrder
Gets or sets a value indicating whether the order of layers in the GeoView are displayed top to bottom.
Declaration
public bool ReverseLayerOrder { get; set; }
Property Value
Type | Description |
---|---|
Boolean | If |
SublayerItemTemplate
Gets or sets the item template for each
Declaration
public DataTemplate SublayerItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
See Also
Methods
| Improve this Doc View SourceOnApplyTemplate()
Declaration
protected override void OnApplyTemplate()