Skip to content

DevExpress-Examples/how-to-colorize-pushpin-items-based-on-data-source-data-t423869

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

How to colorize Pushpin items based on data source data

A MapPushpin item is displayed by a simple image. By default, this image is loaded from the current Skin. The only way to change the pushpin color is to replace this image with a custom one using the Image property. This example demonstrates how to modify the color of the pushpin image using the ColorMatrix Class. For the sake of simplicity, we prepared a clear red custom pushpin. We update and assign it to a certain item from the IMapItemFactory.CreateMapItem Method.