Coloring Hotspots

2 posts, 0 answers
  1. Bhaskarkiran
    Bhaskarkiran avatar
    3 posts
    Member since:
    Feb 2011

    Posted 19 Apr 2011 Link to this post

    Hi ,

    I have taken the example from your demos and trying to modify as per my requirement.  in the Example InformationLayer has HotSpots binding to some Element

    Based on a specific type of data i want to change the color of the Element from code behind,

    Is it possible?

    for example: 
    below is the XAML code

    <telerik:RadMap x:Name="radMap"
           <Ellipse x:Name="Ellipse"
                       telerik:MapLayer.Location="42.6957539183824, 23.3327663758679"
                   <telerik:HotSpot />

    Now i want to Access the  Ellipse from Codebehind to Change its color,  How can I achieve this Please suggest with a working example.

    Thanks & Regards,

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 21 Apr 2011 Link to this post

    Hello Bhaskarkiran,

    Just to be sure that we are using same terms for the same things. In RadMap the HotSpot is not a class which represents something visible over the map. It sets position inside the framework element which should be placed to the item location. So you can't colorize HotSpot.

    As for the accessing ellipse from the code behind, since your ellipse has x:Name="Ellipse" attribute set then you can do it as simple as following:

    this.Ellipse.Fill = new SolidColorBrush(Colors.Red);

    Best wishes,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top