none
Adding my own data to a MapElement - Tag RRS feed

Answers

  • The Tag property was newly added for the upcoming Fall Creator's Update and so is only available on pre-release builds at the moment. 

    If you want to use it, make sure you have an appropriate Windows build and SDK installed and that your UWP project targets at least a minimum version of 16225.

    • Marked as answer by db_cad Monday, July 31, 2017 2:30 PM
    Friday, July 28, 2017 3:47 PM
    Moderator
  • You can also add a Tag property to the MapElement class in earlier versions by adding this class to your application.

        public static class MapElementExt
        {
            public static readonly DependencyProperty TagProperty = DependencyProperty.Register("Tag", typeof(object), typeof(MapElement), new PropertyMetadata(null));
        }


    [Blog] [twitter] [LinkedIn]

    • Marked as answer by db_cad Monday, July 31, 2017 2:30 PM
    Monday, July 31, 2017 12:55 PM

All replies

  • The Tag property was newly added for the upcoming Fall Creator's Update and so is only available on pre-release builds at the moment. 

    If you want to use it, make sure you have an appropriate Windows build and SDK installed and that your UWP project targets at least a minimum version of 16225.

    • Marked as answer by db_cad Monday, July 31, 2017 2:30 PM
    Friday, July 28, 2017 3:47 PM
    Moderator
  • You can also add a Tag property to the MapElement class in earlier versions by adding this class to your application.

        public static class MapElementExt
        {
            public static readonly DependencyProperty TagProperty = DependencyProperty.Register("Tag", typeof(object), typeof(MapElement), new PropertyMetadata(null));
        }


    [Blog] [twitter] [LinkedIn]

    • Marked as answer by db_cad Monday, July 31, 2017 2:30 PM
    Monday, July 31, 2017 12:55 PM