Styles and Templates
This section is intended to give you a broad understanding of the possible ways in which you can change the visual appearance of the RadTreeMap and RadPivotMap.
You can modify the look of the RadTreeMap by using the RadTreeMap.DefaultItemTemplate and TypeDefinition.ItemTemplate properties. For the RadPivotMap you can use RadPivotMap.LeafItemStyle and GroupDefinition.ItemStyle properties. You can also use the TypeDefiniton.ItemStyle which is common for both.
The following small practical samples will show you how to use this properties to customize your control:
RadPivotMap
There could be cases in RadPivotMap when the text per rectangle is chopped due to the size of the rectangles calculated, it is not adjustable by just tuning the text length and size because the rectangle size is recalculated every time when window size is changed. To have a fully readable labels you may wrap your TextBlock in a control like ViewBox for example which resizes itself based on the size of its content and put it in the header of your rectangle using LeafTemplate like this:
This is the full source code of the sample:
Since you wrapped the TextBlock in a ViewBox, the Size of the Text will change according to the space available which will lead to texts with different size (shown on the image below). If you don't want such appearance, you should consider removing the ViewBox and using TextWrapping and MaxWidth for the TextBlock-s.
The result is shown below:
RadTreeMap
You can customize the way RadTreeMap Items look like per TypeDefinition. This is where the TypeDefinition's ItemStyle comes in handy. For example you want every Label to be colored Blue and to have a Red Border per every Item with TypeDefinition where the TargetTypeName is File.
Please refer to the Populating With Data RadTreeMap for the full source code of the sample.
The result is shown on the following image: