473,811 Members | 2,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(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 "SharedSizeGrou p" 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 3339
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 "SharedSizeGrou p" 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
1810
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 code provided on the website. Once I have this example running correctly, I will need to use the concept in a more complex project. The code I am using involves an webform and an htc file. The code for ScrollPos.htc (which is located in a folder...
4
1624
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 would be a good idea to let visitors hide the details for each package, so that they can see just the summaries together. So I borrowed some code (can't remember from where), which was designed for expandable/collapsible menu trees, and used it to...
4
134396
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 horizontal scroll bar. If the height of the table is less than 200 px then no scroll bars should appear. Here is the html below. I tried to wrap the table around a <div> tag but its doesn't work out as the scroll bar appear close to the scroll bar...
4
1478
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 'supported' is the WCF/WPF addons to vs2k5. But here's where I get confused. If I have vs2k5 source code. which contains 3.0 'code', on a pc which does not have the WCF/WPF addons. It compiles, runs, has intellisense etc. etc. etc.
4
3701
by: farseer | last post by:
Is WPF going replace Winforms? Where can WPF applications run currently? Must you have .net3.0 installed?
0
1219
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 example posted on codeproject - this import is allowing me to create a treelistview object in vb.net When I run this I get error specified cast is not valid - if I rem for chRow the Order header populates successfully. Here is my code: Dim...
11
5181
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 LOAD operation. So on the LOAD button I clear the text fields, do mainCanvas.UpdateLayout( ), and the reload the text field from the database. But the text fields are not cleared long enough to see them blink.
3
1278
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 don't say is... WHY WPF? What did we get by having a (almost) parallel design palette. If the features were so good, why not just fold them into the parallel controls in VB?
23
4575
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 memorize and/ or familiarize myself in WinForms will disappear in WPF? I did note in one early version of C#, the non-generic "ArrayList" was replaced by the generic and template <based List, but that kind of change is not a big deal. If WPF...
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.