MapSuiteGisEditor/GisEditorInfrastructure/Plugins/Layers/LayerPlugin.cs
/// <summary>
/// This method gets a hierarchy object to build the layer list tree.
/// </summary>
/// <param name="layer">The layer list item to build the layer list tree.</param>
/// <returns></returns>
This method gets a hierarchy object to build the layer list tree.
This method gets a hierarchy object to build the layer list tree .
protected virtual LayerListItem GetLayerListItemCore(Layer layer)
        {
            var layerListItem = new LayerListItem(layer);
            layerListItem.SideImage = new Image { Source = new BitmapImage(new Uri("pack://application:,,,/GisEditorInfrastructure;component/Images/arrowDown.png", UriKind.Absolute)) };
            layerListItem.HighlightBackgroundBrush = GetDefaultLayerBackground();
            layerListItem.ConcreteObject = layer;
            layerListItem.CheckBoxVisibility = Visibility.Visible;
            layerListItem.IsChecked = layer.IsVisible;
            layerListItem.Name = layer.Name;
            layerListItem.PropertyChanged += LayerIsVisiblePropertyChanged;
            SetStyleSampleImage(layer, layerListItem);
            return layerListItem;
        }
protected virtual LayerListItem GetLayerListItemCore ( Layer layer ) { var layerListItem = new LayerListItem ( layer ) ; layerListItem . SideImage = new Image { Source = new BitmapImage ( new Uri ( " " , UriKind . Absolute ) ) } ; layerListItem . HighlightBackgroundBrush = GetDefaultLayerBackground ( ) ; layerListItem . ConcreteObject = layer ; layerListItem . CheckBoxVisibility = Visibility . Visible ; layerListItem . IsChecked = layer . IsVisible ; layerListItem . Name = layer . Name ; layerListItem . PropertyChanged += LayerIsVisiblePropertyChanged ; SetStyleSampleImage ( layer , layerListItem ) ; return layerListItem ; }
This method gets a hierarchy object to build the layer list tree.
This method gets a hierarchy object to build the layer list tree .
None
layer
Layer
The layer list item to build the layer list tree.
The layer list item to build the layer list tree .