Jump to content
Software FX Community

TreeMap Subtext


Recommended Posts

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




  <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 Orientation="Horizontal" HorizontalAlignment="Center">

  <TextBlock Text="mkt cap: $" Foreground="Black" />

  <TextBlock Text="{Binding Path=DataItem.Capital}" Foreground="Black" />

  <TextBlock Text=" bil." Foreground="Black" />






Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...