Is it possible to change the color of each shape on the fly? I'm working on a heatmap that will be pulling some data either from SharePoint or a db. There will be various filters to narrow down the results and I'd like to be able to change the color of the active countries based on those filters.
Thanks,
Jeremy
Thanks,
Jeremy
4 Answers, 1 is accepted
0
Hello Jeremy,
You can use Fill property of the map shape object for this purposes. For example:
I hope this information helps.
Best wishes,
Andrey Murzov
the Telerik team
You can use Fill property of the map shape object for this purposes. For example:
shape.Fill =
new
SolidColorBrush(Colors.Yellow);
I hope this information helps.
Best wishes,
Andrey Murzov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Dipti
Top achievements
Rank 1
answered on 28 Dec 2011, 06:17 AM
Hi Jeremy,
I have the exact same requirement. Please let me know how did you get this working.
Thanks.
~Dipti.
I have the exact same requirement. Please let me know how did you get this working.
Thanks.
~Dipti.
0
Dipti
Top achievements
Rank 1
answered on 28 Dec 2011, 01:09 PM
Hi Andrey,
Can you please elaborate and give an example of how this can be done?
How can we locate the shape on the RadMap for which the color needs to be changed?
Thanks
~Dipti
Can you please elaborate and give an example of how this can be done?
How can we locate the shape on the RadMap for which the color needs to be changed?
Thanks
~Dipti
0
Hi,
You can review the Theatre Hall online example here that demonstrates how you can colorize the map shapes (the seats) based on some business condition.
Regards,
Evgenia
the Telerik team
You can review the Theatre Hall online example here that demonstrates how you can colorize the map shapes (the seats) based on some business condition.
Regards,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>