mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
using System.Collections.ObjectModel;
|
|
using System.ComponentModel;
|
|
using MapControl;
|
|
|
|
namespace SilverlightApplication
|
|
{
|
|
public class SamplePoint : INotifyPropertyChanged
|
|
{
|
|
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));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class SamplePolyline
|
|
{
|
|
public LocationCollection Locations { get; set; }
|
|
}
|
|
|
|
public class SampleItemCollection : ObservableCollection<object>
|
|
{
|
|
}
|
|
}
|