Passing parameters to CollectionViews
I am attempting to write my first implementation of databinding in a WPF form.

I have got to the point where I can successfully retrieve data to populate my combobox with the required entries but am stuck on how I would go about populating a dependent ListView given the current selection of the Combobox.

To explain my problem better this is the current view backing my application.

    class SchoolBookViewModel
    {
        public SchoolBookViewModel() { }

        //Problem is here... How do I pass in the SelectedSchoolClassID?
        public CollectionView ClassBookListEntries(Guid SelectedSchoolClassID)
        {
            return new CollectionView(SchoolQuoteList.GetSchoolClassQuoteListBySchoolClassID(SelectedSchoolClassID, 2011, "MyConnectionString"));
        }

        public CollectionView SchoolEntries
        {
            get
            {
                return new CollectionView(SchoolList.GetSchoolList("MyConnectionString"));
            }
        }

    }

And this is the XAML

    <StackPanel Height="449" HorizontalAlignment="Left" Margin="12,12,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="650" DataContext="{Binding}">
          <Label Content="School:" Height="28" Name="lblSchoolName" Width="651" />
          <ComboBox Height="23" Name="cmbSchoolNames" Width="644" DisplayMemberPath="SchoolName" ItemsSource="{Binding Path=SchoolEntries}" SelectedValuePath="SelectedSchoolClassID" SelectionChanged="cmbSchoolNames_SelectionChanged" />
          <Label Content="Class booklist:" Height="29" Name="label1" Width="651" />
          <ListView Height="163" Name="lblClassBookList" Width="645" ItemsSource="{Binding Path=ClassBookListEntries}" DisplayMemberPath="QuoteReference" />
    </StackPanel>

Am I even on the right track? Any guidance would be appreciated.
Passing parameters to CollectionViews
===

I am attempting to write my first implementation of databinding in a WPF form.

I have got to the point where I can successfully retrieve data to populate my combobox with the required entries but am stuck on how I would go about populating a dependent ListView given the current selection of the Combobox.

To explain my problem better this is the current view backing my application.

    class SchoolBookViewModel
    {
        public SchoolBookViewModel() { }

        //Problem is here... How do I pass in the SelectedSchoolClassID?
        public CollectionView ClassBookListEntries(Guid SelectedSchoolClassID)
        {
            return new CollectionView(SchoolQuoteList.GetSchoolClassQuoteListBySchoolClassID(SelectedSchoolClassID, 2011, "MyConnectionString"));
        }

        public CollectionView SchoolEntries
        {
            get
            {
                return new CollectionView(SchoolList.GetSchoolList("MyConnectionString"));
            }
        }

    }

And this is the XAML

    <StackPanel Height="449" HorizontalAlignment="Left" Margin="12,12,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="650" DataContext="{Binding}">
          <Label Content="School:" Height="28" Name="lblSchoolName" Width="651" />
          <ComboBox Height="23" Name="cmbSchoolNames" Width="644" DisplayMemberPath="SchoolName" ItemsSource="{Binding Path=SchoolEntries}" SelectedValuePath="SelectedSchoolClassID" SelectionChanged="cmbSchoolNames_SelectionChanged" />
          <Label Content="Class booklist:" Height="29" Name="label1" Width="651" />
          <ListView Height="163" Name="lblClassBookList" Width="645" ItemsSource="{Binding Path=ClassBookListEntries}" DisplayMemberPath="QuoteReference" />
    </StackPanel>

Am I even on the right track? Any guidance would be appreciated.