-
June 16th, 2009, 04:38 AM
#1
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?
-
June 16th, 2009, 04:05 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|