Telerik Named Brushes

In order to style all RadMap controls in your application you have to define a key in the ResourceDictionary in your Application Resources (App.xaml). Here is an example of how to define a SolidColorBrush brush that sets the background of the map to green:

<SolidColorBrush x:Key="TelerikMapBackgroundBrush" Color="Green"/>

All predefined brushes that affect the RadMap are shown in the tables below.

Note that some of the brushes are of type Brush, while others are of type SolidColorBrush.

The first column is the x:Key of the brush, and the changes are shown with Green on the images in the second column. The type of the brush is specified for each table.

Brushes Affecting the RadMap

The brushes in this table are of type SolidColorBrush.

  • TelerikMapBackgroundBrush
    Telerik Map Background Brush
  • TelerikMapBorderBrush
    Telerik Map Border Brush

Brushes Affecting the Shape Fill

The brushes in this table are of type Brush.

  • TelerikMapShapeFillColor
    Telerik Map Shape Fill Color
  • TelerikMapShapePointerOverFillColor
    Telerik Map Shape Pointer Over Fill Color
  • TelerikMapShapeSelectedFillColor
    Telerik Map Shape Selected Fill Color

Brushes Affecting the Shape Stroke

The brushes in this table are of type Brush.

  • TelerikMapShapeStrokeColor
    Telerik Map Shape Stroke Color
  • TelerikMapShapePointerOverStrokeColor
    Telerik Map Shape Pointer Over Stroke Color
  • TelerikMapShapeSelectedStrokeColor
    Telerik Map Shape Selected Stroke Color

Brushes Affecting the ToolTip

The brushes in this table are of type SolidColorBrush.

  • TelerikMapToolTipForeground
    Telerik Map Tooltip Foreground
  • TelerikMapToolTipBackground
    Telerik Map Tooltip Background

Brushes Affecting the Labels

The brushes in this table are of type Brush.

  • TelerikMapShapeForegroundColor
    Telerik Map Shape Foreground Color
  • TelerikMapShapePointerOverForegroundColor
    Telerik Map Shape Pointer Over Foreground Color
  • TelerikMapShapeSelectedForegroundColor
    Telerik Map Shape Selected Foreground Color