Re: [ADVANCED-DOTNET] CustomNodeSorter for TreeView...

2008-05-08 Thread Peter Osucha
Thanks for the comments, John. -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of John Brett Sent: Friday, May 02, 2008 6:27 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] CustomNodeSorter for TreeView

Re: [ADVANCED-DOTNET] CustomNodeSorter for TreeView...

2008-05-02 Thread John Brett
> // Separate folders from other nodes. > if ( tix.IsFolder & !tiy.IsFolder ) It may be a typo on your part, and it probably doesn't have any functional effect in this case, but you should use '&&' for logical AND in this kind of expression, rather than '&' for bitwise AND.

Re: [ADVANCED-DOTNET] CustomNodeSorter for TreeView...

2008-05-01 Thread Peter Osucha
] CustomNodeSorter for TreeView... I'm having trouble correctly implementing a CustomNodeSorter for a treeview control. I've got a TreeView control where each TreeNode has as its Tag an object (TreeItem) that I made. One of the properties of TreeItem is 'IsFolder' for indicating

[ADVANCED-DOTNET] CustomNodeSorter for TreeView...

2008-05-01 Thread Peter Osucha
I'm having trouble correctly implementing a CustomNodeSorter for a treeview control. I've got a TreeView control where each TreeNode has as its Tag an object (TreeItem) that I made. One of the properties of TreeItem is 'IsFolder' for indicating if the TreeNode acts as a folder in the custom treev