Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Map > Change Shape color on the fly

Not answered Change Shape color on the fly

Feed from this thread
  • Jeremy avatar

    Posted on Feb 13, 2011 (permalink)

    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

    Reply

  • Andrey Andrey admin's avatar

    Posted on Feb 16, 2011 (permalink)

    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>>

    Reply

  • Dipti avatar

    Posted on Dec 28, 2011 (permalink)

    Hi Jeremy,

    I have the exact same requirement. Please let me know how did you get this working.

    Thanks.
    ~Dipti.

    Reply

  • Dipti avatar

    Posted on Dec 28, 2011 (permalink)

    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

    Reply

  • Evgenia Evgenia admin's avatar

    Posted on Dec 30, 2011 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Map > Change Shape color on the fly