Resolve the BackColor and BackgroundImage properties of StyleSample having no affect in MapXtreme

UPDATED: October 23, 2017

The BackColor and BackgroundImage properties of StyleSample are inheriited from System.Windows.Forms.Control class, however, the implementations to change these properties are not provided in StyleSample class.

To change the fill colour, you can ApplyFillStyle with a fill colour and solid fill pattern.

To display an image, you will have to create a BitmapPointStyle using the image to be displayed and invoke ApplySymbol(BasePointStyle) style.

Only one style can be applied to a StyleSample at time, ie, if a Fill Style is applied first after which a Symbol Style is applied, then the symbol style will override the area style.

Environment Details

Products Affected: MapXtreme.NET


  • No Downloads