Is a ListView Item Visiblw?

J

Jeff

Hi -

How can I determine whether a ListView item is visible?

I'm implementing up/down scrolling using the hardware navigator
button. If the destination item is not visible, I can use
EnsureVisible. But if it is visible, I don't want the list to move;
just the selection (so EnsureVisible won't work). I guess I'm looking
for a workaround to the ListView.TopItem property not being
implemented in CF.

Any ideas?

Thanks.

- Jeff
 
S

Serg Kuryata [MS]

Hello Jeff,

EnsureVisible should NOT scroll the ListView if the specified item is
visible. So, I think you can safely call EnsureVisible for every item in
the ListView.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: (e-mail address removed) (Jeff)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Is a ListView Item Visiblw?
| Date: 2 Apr 2004 07:30:16 -0800
| Organization: http://groups.google.com
| Lines: 16
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 68.165.57.220
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1080919817 9581 127.0.0.1 (2 Apr 2004
15:30:17 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Fri, 2 Apr 2004 15:30:17 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news.glorb.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:50187
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi -
|
| How can I determine whether a ListView item is visible?
|
| I'm implementing up/down scrolling using the hardware navigator
| button. If the destination item is not visible, I can use
| EnsureVisible. But if it is visible, I don't want the list to move;
| just the selection (so EnsureVisible won't work). I guess I'm looking
| for a workaround to the ListView.TopItem property not being
| implemented in CF.
|
| Any ideas?
|
| Thanks.
|
| - Jeff
|
 

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