Exemplo n.º 1
0
        public void Initialize(LayerCollection layers)
        {
            Items.Children.Clear();

            foreach (var layer in layers)
            {
                var item = new LayerListItem {LayerName = layer.Name};
                item.Enabled = layer.Enabled;
                item.LayerOpacity = layer.Opacity;
                item.Layer = layer;
                Items.Children.Add(item);
            }
        }
Exemplo n.º 2
0
        public void Initialize(LayerCollection layers)
        {
            items.Children.Clear();

            foreach (var layer in layers)
            {
                var item = new LayerListItem {
                    LayerName = layer.Name
                };
                item.Enabled      = layer.Enabled;
                item.LayerOpacity = layer.Opacity;
                item.Layer        = layer;
                items.Children.Add(item);
            }
        }