After Timer Tick event the value in the ToolTip is updated but the size and the color don't.
<
UserControl
x:Class
=
"TreeMapSLTest.MainPage"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignWidth
=
"640"
d:DesignHeight
=
"480"
>
<
UserControl.Resources
>
<
SolidColorBrush
Color
=
"#FFE10000"
x:Key
=
"Hundred"
/>
<
SolidColorBrush
Color
=
"Orange"
x:Key
=
"ThreeHundred"
/>
<
SolidColorBrush
Color
=
"LightBlue"
x:Key
=
"FiveHundred"
/>
<
SolidColorBrush
Color
=
"Blue"
x:Key
=
"SevenHundred"
/>
<
SolidColorBrush
Color
=
"DarkBlue"
x:Key
=
"Thousand"
/>
<
SolidColorBrush
Color
=
"Green"
x:Key
=
"TwoThousand"
/>
<
telerik:RangeBrushCollection
x:Key
=
"ColorizerBrushes"
>
<
telerik:RangeBrush
Brush
=
"{StaticResource Hundred}"
From
=
"0"
To
=
"100"
/>
<
telerik:RangeBrush
Brush
=
"{StaticResource ThreeHundred}"
From
=
"101"
To
=
"300"
/>
<
telerik:RangeBrush
Brush
=
"{StaticResource FiveHundred}"
From
=
"301"
To
=
"500"
/>
<
telerik:RangeBrush
Brush
=
"{StaticResource SevenHundred}"
From
=
"501"
To
=
"700"
/>
<
telerik:RangeBrush
Brush
=
"{StaticResource Thousand}"
From
=
"701"
To
=
"1000"
/>
<
telerik:RangeBrush
Brush
=
"{StaticResource TwoThousand}"
From
=
"1001"
To
=
"2000"
/>
</
telerik:RangeBrushCollection
>
</
UserControl.Resources
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
telerik:RadTreeMap
Name
=
"xTreeMap"
LayoutStrategy
=
"Squarified"
BorderThickness
=
"1"
BorderBrush
=
"Black"
ItemsSource
=
"{Binding DataTags}"
>
<
telerik:RadTreeMap.TypeDefinitions
>
<
telerik:TypeDefinition
TargetTypeName
=
"GdpInfo"
ValuePath
=
"Gdp"
LabelPath
=
"Country"
ToolTipPath
=
"Gdp"
ToolTipFormat
=
"{}{0:C0} Mln"
>
<
telerik:TypeDefinition.Mappings
>
<
telerik:ValueBrushColorizer
IsAbsolute
=
"True"
ValuePath
=
"Gdp"
RangeMinimum
=
"0"
RangeMaximum
=
"2000"
Brushes
=
"{StaticResource ColorizerBrushes}"
/>
</
telerik:TypeDefinition.Mappings
>
</
telerik:TypeDefinition
>
</
telerik:RadTreeMap.TypeDefinitions
>
</
telerik:RadTreeMap
>
</
Grid
>
</
UserControl
>
void
m_timer_Tick(
object
sender, EventArgs e)
{
foreach
(GdpInfo gdp
in
DataTags)
{
if
(gdp.Country ==
"Brazil"
)
gdp.Gdp -= 25;
}
}