Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a big list which is coming from WCF and i loaded in a Listbox.
I would like to display only the images which are visible on the scroll position. I found on the internet this option but is I can see it don't seems to work very good.
This is the default converter whichc i found on the internet and i modified it in order to work with my program. Unfortunately is not doing anything extra than the default one.
C#
class NullVisibilityConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        return value == null ? Visibility.Hidden : Visibility.Visible;
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        return value == null ? Visibility.Visible : Visibility.Hidden;
    }

I am new in WPF Programming and i got stuck. Does anyone have any idea how to do it?

What I have tried:

I tried to use the scroll position but it don't seems to work. I am using MVVM Pattern for this app.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900