listView for WPF

M

mp

in help I find info on Listview for windows.forms but don't find entry for
listview in wpf
can i assume the same techniques would work for either? (adding columns,
displaying subitems etc)
thanks
mark
 
M

mp

Peter Duniho said:
There is a lot of overlap, but the two controls are not exactly the same.
You should definitely refer to the correct documentation.

Pete

Thanks again
interesting the local msdn varies from the website(i'm not often connected)
in the local help
(ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/fxref_system.web.ui.webcontrols/html/3e5444fc-b7b7-ec6b-e8dc-95ee99de8697.htm)
under listview class it points to
Namespace: System.Web.UI.WebControls
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
the listview control points to windows forms

thanks for pointing me in the right direction

you are ubiquitously helpful here aren't you!!!

thanks again

mark
 
P

Peter Duniho

interesting the local msdn varies from the website(i'm not often
connected)
in the local help
(ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/fxref_system.web.ui.webcontrols/html/3e5444fc-b7b7-ec6b-e8dc-95ee99de8697.htm)
under listview class it points to
Namespace: System.Web.UI.WebControls
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
the listview control points to windows forms

There should be several references to the ListView class, each
corresponding to different libraries: ASP.NET, Forms, WPF, maybe some
others. The key is to look at the namespace. System.Web and namespaces
below that are for ASP.NET (and maybe for other web-based
implementations...I don't use it myself, so I'm not 100% familiar with
that part of the .NET hierarchy), System.Windows.Forms for Forms, and
other namespaces under System.Windows, such as System.Windows.Controls,
System.Windows.Threading, etc. for WPF.

The ListView class should be documented in your local help in _all_ of
those namespaces. The key is learning which namespaces go with which, and
choosing the correct ListView for the given namespace (there should be a
list of all the possible matches for an item in the index, down in a pane
below the content pane for the help topic).
thanks for pointing me in the right direction

Happy to help.
you are ubiquitously helpful here aren't you!!!

Well, I have some spare time, but I wouldn't go _that_ far. :)

Pete
 
M

mp

Peter Duniho said:
in the local help
(ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/fxref_system.web.ui.webcontrols/html/3e5444fc-b7b7-ec6b-e8dc-95ee99de8697.htm)
under listview class it points to
Namespace: System.Web.UI.WebControls
[...]

There should be several references to the ListView class, each
corresponding to different libraries: ASP.NET, Forms, WPF, maybe some
others. [...]
The ListView class should be documented in your local help in _all_ of
those namespaces.

oddly enough there is only the one reference in my version of local
help...maybe because i have express rather than studio?

mark
 
P

Peter Duniho

[...]
There should be several references to the ListView class, each
corresponding to different libraries: ASP.NET, Forms, WPF, maybe some
others. [...]
The ListView class should be documented in your local help in _all_ of
those namespaces.

oddly enough there is only the one reference in my version of local
help...maybe because i have express rather than studio?

I don't know. I haven't used the 2008 Express versions. The 2005 ones
didn't limit the help that way, so I'd be surprised if the 2008 version
does. If you can provide some specific information as to how you're
searching for the class documentation, that might spur some useful comment
from me or someone else familiar with the help system.

I can tell you that when I bring up the VS 2008 Documentation and type
"ListView" in the Index "Look for:" field, I get a number of top-level
topics (each with their own sub-topics). They are, in order:

"ListView class"
"ListView control"
"ListView control [Web server]"
"ListView control [Windows Forms]"
"ListView controls [WPF]" (yes, "controls" is plural on that one)
"ListView ControlTemplate [WPF]"
"ListView Grouping sample [WPF]"

and then a bunch of other more specific things that happen to start with
"ListView". As you can see, there are entries for all three subsets of
..NET I mentioned specifically.

If I click on the very first link, then in the Index Results pane (which
by default is below the content pane), I see six different titles. The
first three are the main class documentation page itself (for
System.Web.UI.WebControls -- i.e. ASP.NET, System.Windows.Controls -- i.e.
WPF, and System.Windows.Forms, respectively), and the next three are for
the "ListView Members" pages in each of those namespaces.

If you are not seeing all of those, perhaps there was an option during
install that you missed in which some of the .NET namespaces were excluded
somehow (I don't remember the VS Setup well enough to know if that's
actually an option, and whether it is or not in the retail IDE, I don't
have any first-hand information about what the Express setup would allow
you to choose).

Until I have a chance to go ahead and install an Express version to a
computer without a copy of VS already installed (which is a rare computer
around me :) ), I can't verify myself. But I would be really surprised if
help for the Forms namespace wasn't included on your Express installation.

Pete
 
M

mp

Hi Pete,
Peter Duniho said:
[...]
There should be several references to the ListView class, each
corresponding to different libraries: ASP.NET, Forms, WPF, maybe some
others. [...]
The ListView class should be documented in your local help in _all_ of
those namespaces.

oddly enough there is only the one reference in my version of local
help...maybe because i have express rather than studio?

I don't know. I haven't used the 2008 Express versions. [...]

Pete

naturally it's just me being stupid again! :)
....there's only one Listview class entry in the left vertical pane
selecting that shows the one namespace for the web stuff as i said,
what i failed to notice is below the right pane there is a small horizontal
pane showing 3 namespace choices
Duh!!!
sorry for being so dense!
mark
 

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