This is a migrated thread and some comments may be shown as answers.

Change Shape color on the fly

4 Answers 57 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 14 Feb 2011, 01:23 AM
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

4 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 16 Feb 2011, 09:03 AM
Hello Jeremy,

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.
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
0
Evgenia
Telerik team
answered on 30 Dec 2011, 04:28 PM
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

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Dipti
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or