473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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_tea...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/archi...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
Dec 10 '07 #1
1 3315
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

"RobertW" wrote:
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_tea...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/archi...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
Dec 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: GrantS | last post by:
I am trying to convert the VB.Net code example povided by http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx into C# (ASP.Net)without success. No errors are thrown in the VB...
4
by: Jeremy Epstein | last post by:
Hi guys, I've got a page that shows a number of packages available for sale. Each package has a little description, and then a (sometimes long) list of features for each package. I thought it...
4
by: justdummy | last post by:
Hi, I am struggling with a problem for sometimes. I need to display a table in a html and if the height of the table goes beyond 200 px then a vertical scrollbar should alone appear without any...
4
by: SteveW | last post by:
Now that vista and the 3.0 framework are gold, I'm a bit confused, so any clarification would be very helpful. The 3.0 framework is gold and is downloadable etc. What is not 'gold' and...
4
by: farseer | last post by:
Is WPF going replace Winforms? Where can WPF applications run currently? Must you have .net3.0 installed?
0
by: KA NMC | last post by:
I currently have a treelistview that is populating correctly, but my problem is I need to get this nested, with another table. I'm importing the SynapticEffect.Forms - which I got from a great...
11
by: Don | last post by:
I have a WPF application in VB in VSTS 2008 RTM. I am trying to "blink" (momentarily clear) a field of data if the data is reloaded from the database to give the user some visual indication of the...
3
by: Just_a_fan | last post by:
I have been through two books where they talk about the (almost) parallel control set for WPF and VB. They go through the small difference and talk about everything going on a form but what they...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.