Posted 28 January 2021, 7:48 pm EST
To reproduce this error, at least I believe it to be an error since eg.
http://helpcentral.componentone.com/nethelp/Flexchartwpf/TreeMapSelection.html
is showing that it should work.
To reproduce the error, I took the sample from here
\ComponentOne Samples\ComponentOne Samples\WPF.Net 5\CS\Chart\FlexChartExplorer
And modiefied the file
View\TreeMap.xaml
To this:
<Chart:C1TreeMap x:Name="treeMap" Grid.Row="1" MaxDepth="2" Binding="sales" BindingName="type" ChildItemsPath="items"
ItemsSource="{Binding DataContext.Data}"
SelectionChanged="TreeMap_OnSelectionChanged"
SelectionMode="Point">
<Chart:C1TreeMap.DataLabel>
<Chart:DataLabel Content="{}{type}" Position="Center"/>
</Chart:C1TreeMap.DataLabel>
</Chart:C1TreeMap>
Notice the added members SelectionChanged and SelectionMode.
In the file
View\TreeMap.xaml.cs
I have added this eventhandler
private void TreeMap_OnSelectionChanged(object? sender, EventArgs e)
{
}
Now put a breakpoint in the eventhandler, open the demo and click on any item in the C1TreeMap, the breakpoint will never hit.
My version I am currently demo-ing is 5.0.20203.34.