public ShowSearchResultOnMapMessage(AddressSearchSuggestionItem result) { Result = result; }
public void DrawSearchResult(MapControl map, AddressSearchSuggestionItem result) { if (_searchResultIcon == null) { _searchResultIcon = new MapIcon(); map.MapElements.Add(_searchResultIcon); _searchResultIcon.ZIndex = ZindexSearchResult; _searchResultIcon.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/SearchMapIcon.png")); _searchResultIcon.NormalizedAnchorPoint = new Point(0.5, 0.5); _searchResultIcon.CollisionBehaviorDesired = MapElementCollisionBehavior.RemainVisible; } _searchResultIcon.Location = result.Point; _searchResultIcon.Title = result.ToString(); }