How can I change the appearance of an individual shape that is part of a set loaded into a GeographicShapeSeries?
For example, in your UltraGeographicMap sample, it sets the colour that will be used for all the shapes in the series, but I then want to change the colour of the shape for just one member of the series, so I could make one particular country a different colour.
How do I get access to an individual shape in the series, and what properties are exposed that would let me customise it?
Thanks!
Hi Robert,
18.1 does not include any major new features for UltraGeographicMap. You can find out more about what features are added in each release on our What's New page.
While you cannot change the color of each individual shape in a ScatterPolygonSeries, you can provide several different series which each have their own color. If you choose to implement this using ScatterPolygonSeries, then this is the approach I recommend.
xamGeographicMap does support the feature you are looking for, and my overall recommendation is still to host it in your application.
If you would like to see either of these features added to our Windows Forms controls, please submit a product idea to our ideas site.
Please let me know if you have any questions.
Hi Mike,
Is there any update to this since 18.1 has been released? I am still looking to create a true heat map with geographical regions from a shape file shown using different colours, and I would rather do it within Windows Forms than deal with WPF.
Alternatively, in 18.1 I notice there is a new UltraDataChart with ScatterPolygonSeries which also allows display of shapes from a ShapeFile. Is there a way to change the colour of those shapes individually?
Thanks
There are some examples in the WPF and Windows Forms Interoperation section of the Microsoft documentation. In summary you use the ElementHost and set the Control that you want to use. You might want to use a UserControl so that you can set up the chart in XAML and then just set the Child to the instance of your UserControl.
Are there any tutorials on how to host an Infragistics WPF component in a Windows Form? I have not used WPF before.
Thank you, I will look into that.