Search code examples
c#silverlightxamlexpression-blend

expression blend coloured regions


I am working with expression blend and c# to create a silverlight site. I would like to create a map of the world which has many regions. on clicking on the region the colour changes. I have already created the regions.

Does anyone know how to do that?

Thanks


Solution

  • Since you have the regions created already, when you get the click event you need to change the colour of the region. Normally this would be the background property of the control, though it can depend on what control you used to represent a region?

    Edit in response to comment

    Since you're using rectangle and other shapes Fill is the property you will be changing.