(WPF Web App) - How to properly scroll a TreeListView without head

R

RobertW

Hi,

I'm developing a WPF Web Application. I'm surprised there were no
WPF-specific newsgroups, so I'm posting in dotnet-general.

I implemented the TreeListView available with sample code at this blog:
http://blogs.msdn.com/atc_avalon_team/archive/2006/03/01/541206.aspx

The one in the blog doesn't scroll, though if I surround it with a
"ScrollView" and set the Scroll bars (horz/vert) to Auto, it does scroll
properly.

The problem, of course, is that the header scrolls with the content. That
is, if you look at the above blog, at the top the header is where it says
"Name", "Namespace", "IsAbstract"... If I scroll down, that scrolls off the
top of the window and is no longer visible.

I found some other information that doesn't seem applicable to this
particular control. As an example,
http://blogs.msdn.com/marthami/archive/2007/09/20/how-to-write-a-scrollable-data-grid.aspx
mentions a "SharedSizeGroup" property, but inside of the TreeListView's
column header definitions, there doesn't appear to be a SharedSizeGroup
property.

There were some other samples on alternate ways to make this work, but
again, none of them specifically seemed to work with a TreeListView. I spent
probably 1-2 hours searching generally and specifically for information on
this and eventually came here.

Help!! There's got to be a solution to this problem somewhere.

Thanks kindly,
Rob Wilkens
 
R

RobertW

Figured it out - I was putting the scrollviewer in the wrong place. It had
to be in the template.

My solution was a little kludgy (but it works well) so I don't really want
to share it.

-Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top