Telerik UI for Windows 8 XAML

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:

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

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

Important

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

Important

The brushes in this table are of type SolidColorBrush.

x:Key

Result

TelerikMapBackgroundBrush

Telerik Map Background Brush

TelerikMapBorderBrush

Telerik Map Border Brush

Brushes Affecting the Shape Fill

Important

The brushes in this table are of type Brush.

x:Key

Result

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

Important

The brushes in this table are of type Brush.

x:Key

Result

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

Important

The brushes in this table are of type SolidColorBrush.

x:Key

Result

TelerikMapToolTipForeground

Telerik Map Tooltip Foreground

TelerikMapToolTipBackground

Telerik Map Tooltip Background

Brushes Affecting the Labels

Important

The brushes in this table are of type Brush.

x:Key

Result

TelerikMapShapeForegroundColor

Telerik Map Shape Foreground Color

TelerikMapShapePointerOverForegroundColor

Telerik Map Shape Pointer Over Foreground Color

TelerikMapShapeSelectedForegroundColor

Telerik Map Shape Selected Foreground Color