I must read TreeViewItem.height (for example: always 16) for extended Drag&Drop.
If I try read item.height, it is NaN, because is not set.
Item.ActualHeight is 16 for collapsed nodes but for expanded it is height node and childs of this node.
I must set TreeViewItem.height in xaml to enable read. If I set stackpanel of TreeViewItem, height TreeViewItem changes but still item.height == NaN.
How :
- set TreeViewItem (not stackpanel) Height in xaml?
- get height of stackpanel of TreeViewItem in C# code?