WeightValuePath
WeightValuePath ofSfTreeMap is a path to a field on the source object, which serve as the “weight” of the object.
Code Sample:
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Grid.DataContext>
<local:PopulationViewModel/>
</Grid.DataContext>
<syncfusion:SfTreeMap ItemsSource="{Binding PopulationDetails}"
WeightValuePath="Population”/>
</Grid>
NOTE
The specified field must be available in each and every sub class (object) defined in hierarchical (nested) data collection.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page