Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

Trying to use a custom listview comparer - having a hard time setting references

$
0
0
I started a new project - and wanted to copy into it some custom listview comparer code I have used before.

I've got the top of my main XAML looking like this:

Code:

<Window x:Class="dfx.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:lvsort="clr-namespace:WpfListViewSorting"
        Title="dfx" Height="575" Width="875">
        <Grid x:Name="mGrid">

And this line is blowing up

Code:

                    <ListView Grid.Row="1" ItemsSource="{Binding FileCollection}" x:Name="MainList" ItemContainerStyle="{StaticResource itemstyle}" lvsort:ListViewSorter.CustomListViewSorter="WpfListViewSorting.FileDataComparer">
                        <ListView.View>

This spot is highlighted

lvsort:ListViewSorter.CustomListViewSorter="WpfListViewSorting.FileDataComparer

and it says:

Error 1 The property 'ListViewSorter' does not exist in XML namespace 'clr-namespace:WpfListViewSorting'. Line 117 Position 149. G:\ACS Desktop\dfx\dfx\dfx\MainWindow.xaml 117 149 dfx

I believe I copied all the files I need from the other project - but I think I need to make a reference but it's not giving me an easy way to do so.

Did I just mess up what folder this stuff needs to be in?

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>