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:
And this line is blowing up
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?
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">
Code:
<ListView Grid.Row="1" ItemsSource="{Binding FileCollection}" x:Name="MainList" ItemContainerStyle="{StaticResource itemstyle}" lvsort:ListViewSorter.CustomListViewSorter="WpfListViewSorting.FileDataComparer">
<ListView.View>
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?