Following code doesn't work:
<ig:XamTreemap x:Name="Treemap" Background="White" Margin="0" LayoutType="Squarified" LayoutOrientation="Horizontal">
Background is still white-to-gray gradient. Any suggestions?
Hello,
You are right, when the xamTreemap control binds to data, it creates a root node which contains the nodes from the data source. You can set a style for the default root node through the DefaultStyle property of the xamTreemap control.
Regards,
Boyan
Yes, this works. I didn't realize that background of treemap is actually root node. Am I right?
Try using the DefaultStyle property:
<ig:XamTreemap.DefaultStyle> <Style TargetType="ig:TreemapNode"> <Setter Property="Fill" Value="White"/> </Style></ig:XamTreemap.DefaultStyle>