This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
In some cases the TreeListView is flooding my system with messages. The WPF profiling tools, list them as, Name "WClientString", Type [Start|End], Data = "Info='ItemsControl.Generator' | Info='vItemContainerGenerator for TreeListView PART_Grid - 0 items' This seems to be related to the previous forum post about the scroll viewer. This Issue happens for me when my propertygrid is hosted by a control that set's Width to Double.Positive... I've worked around it for the most part with hard limits, but I have some elements that I can not impose such restrictions.
|
|
|
Hi Shane, I'm having trouble reproducing this. I think I may be confused about what you need to set Width to -- according to the docs it should not be possible to set Width to Double.PositiveInfinity (the layout system imposes a maximum which is less than Double.MaxValue), and I'm certainly getting an error when I try to do this. Do you have a repro case you can send me, or at least a snippet showing how you are hosting the grid when the problem occurs? Thanks! Ivan |
|
|
Right, I'll be on it that's for sure, there were a couple other oddities that I'm trying to isolate. Possibly related, in that a TreeViewItem template bound with RelativeSource/AncestorType=... (verbatium to the sample(s, tried 3 of them) shipped with the grid). VisualStudio locks up, trying to handle the debug string output to my output window (running not attached helps but there is still some mysterious event data flooding the pump/tree).. My scenerio is that a nominal amount of values are present, say, 1-3, the control render's them fine, no logs warnings/exeptions. As soon as I add a new member to the collection (the same way the first few were added, the only difference now is that they are being activly displayed as the new addition comes in), I start encountering this problem. I should be able to have something more concise by tomarrow. Thanks. System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'TreeViewItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'TreeViewItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
|
|
|
Ivan, if you want to email me out of band, I can send you the profiler data. Or let me know where to upload it. It should be fairly clear when you see it, thanks. |
|