-
April 29th, 2016, 01:48 AM
#1
How to get/set TreeViewItem height?
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?
OR
- get height of stackpanel of TreeViewItem in C# code?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|