Mick Posted May 3, 2010 Report Share Posted May 3, 2010 How do I add subtext (smaller text that describes the item) to the TreeMap like in the following image from your samples? Sample I will likely need to modify this in code as well as XAML. Thank you, Mick Quote Link to comment Share on other sites More sharing options...
JuanC Posted May 4, 2010 Report Share Posted May 4, 2010 The sample in question is shipped as part of the product and also linked from the resource center. It modifies the PointLabelAttributes template property as follows <cfx:PointLabelAttributes.Template> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Path=DataItem.Company}" HorizontalAlignment="Center" Foreground="Black" FontWeight="Bold" /> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="$" Foreground="Black" /> <TextBlock Text="{Binding Path=DataItem.Price}" Foreground="Black" /> <TextBlock Text=" (" Foreground="Black" /> <TextBlock Text="{Binding Path=DataItem.Perc}" Foreground="Black" /> <TextBlock Text=")" Foreground="Black" /> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock Text="mkt cap: $" Foreground="Black" /> <TextBlock Text="{Binding Path=DataItem.Capital}" Foreground="Black" /> <TextBlock Text=" bil." Foreground="Black" /> </StackPanel> </StackPanel> </DataTemplate> </cfx:PointLabelAttributes.Template> JuanC Quote Link to comment Share on other sites More sharing options...
Mick Posted May 10, 2010 Author Report Share Posted May 10, 2010 Is there any way to get the text for the individual blocks to remain the same size, regardless of the size of the block? It becomes more difficult to read them the smaller the items are. Thank you, Mick Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.