MapMarker.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Media;
  4. namespace InABox.Wpf;
  5. public class MapMarker : DependencyObject
  6. {
  7. public Guid ID { get; set; }
  8. private static readonly DependencyProperty LatitudeProperty =
  9. DependencyProperty.Register(nameof(Latitude), typeof(string), typeof(MapMarker));
  10. public string? Latitude
  11. {
  12. get => GetValue(LatitudeProperty) as string;
  13. set => SetValue(LatitudeProperty, value);
  14. }
  15. private static readonly DependencyProperty LongitudeProperty =
  16. DependencyProperty.Register(nameof(Longitude), typeof(string), typeof(MapMarker));
  17. public string? Longitude
  18. {
  19. get => GetValue(LongitudeProperty) as string;
  20. set => SetValue(LongitudeProperty, value);
  21. }
  22. private static readonly DependencyProperty LabelProperty =
  23. DependencyProperty.Register(nameof(Label), typeof(string), typeof(MapMarker));
  24. public string? Label
  25. {
  26. get => GetValue(LabelProperty) as string;
  27. set => SetValue(LabelProperty, value);
  28. }
  29. public string Description { get; set; }
  30. public DateTime Updated { get; set; }
  31. public string UpdatedBy { get; set; }
  32. public string DeviceID { get; set; }
  33. public Brush Background { get; set; }
  34. }