XAML-Map-Control/SampleApps/SilverlightApplication/SampleItems.cs

52 lines
1.1 KiB
C#
Raw Normal View History

using System.Collections.ObjectModel;
using System.ComponentModel;
using MapControl;
2012-05-04 12:52:20 +02:00
namespace SilverlightApplication
2012-05-04 12:52:20 +02:00
{
public class SamplePoint : INotifyPropertyChanged
2012-05-04 12:52:20 +02:00
{
private string name;
private Location location;
public event PropertyChangedEventHandler PropertyChanged;
public string Name
{
get { return name; }
set
{
name = value;
OnPropertyChanged("Name");
}
}
public Location Location
{
get { return location; }
set
{
location = value;
OnPropertyChanged("Location");
}
}
private void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
2012-05-04 12:52:20 +02:00
}
public class SamplePolyline
2012-05-04 12:52:20 +02:00
{
public LocationCollection Locations { get; set; }
}
public class SampleItemCollection : ObservableCollection<object>
2012-05-04 12:52:20 +02:00
{
}
}