CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Posts
    6

    How to determine if Image inside Listbox is visible?

    Hi,

    As the title asks; How to determine if Image inside Listbox is visible?

    My listbox is binded to List<MyImageList> variable. MyImageList class contains an ImageSource(BitmapImage) and a string.

    Somewhere in my application i want to check if the Image in the list item is visible in my listbox viewport to perform additional operation, the problem is i dont know how.

    I found a tutorial on how to do this in ScrollViewer
    but the problem is ImageSource and/or BitmapImage class does not have "TransformToAncestor" function.
    The tutorial for doing this in scrollviewer is here: http://blogs.msdn.com/llobo/archive/...ollviewer.aspx

    Now how can i do this in Listbox with a listItem that contains an Image?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How to determine if Image inside Listbox is visible?

    You can check the ListBoxItem.IsVisible property.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured