XAML-Map-Control/MapControl/TileLayerCollection.cs

22 lines
558 B
C#
Raw Normal View History

2012-05-04 12:52:20 +02:00
// WPF MapControl - http://wpfmapcontrol.codeplex.com/
// Copyright © 2012 Clemens Fischer
// Licensed under the Microsoft Public License (Ms-PL)
using System;
2012-04-25 22:02:53 +02:00
using System.Collections.ObjectModel;
using System.Windows.Media;
namespace MapControl
{
public class TileLayerCollection : ObservableCollection<TileLayer>
{
private string name;
public string Name
{
get { return !string.IsNullOrEmpty(name) ? name : (Count > 0 ? this[0].Name : string.Empty); }
set { name = value; }
}
}
}