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
- TelerikMapBorderBrush
Brushes Affecting the Shape Fill
The brushes in this table are of type Brush.
- TelerikMapShapeFillColor
- TelerikMapShapePointerOverFillColor
- TelerikMapShapeSelectedFillColor
Brushes Affecting the Shape Stroke
The brushes in this table are of type Brush.
- TelerikMapShapeStrokeColor
- TelerikMapShapePointerOverStrokeColor
- TelerikMapShapeSelectedStrokeColor
Brushes Affecting the ToolTip
The brushes in this table are of type SolidColorBrush.
- TelerikMapToolTipForeground
- TelerikMapToolTipBackground
Brushes Affecting the Labels
The brushes in this table are of type Brush.
- TelerikMapShapeForegroundColor
- TelerikMapShapePointerOverForegroundColor
- TelerikMapShapeSelectedForegroundColor