I want to make an array of boxes in the scrollviewer control in WPF


I have a list of strings and I want to convert it to checkboxes control in scrollviewer control how ? any ideas ? list consist of courses and I want to make it as checkboxes so student can choose some of them

XAML Part :

        <ListBox ItemsSource="{Binding .}">
                    <CheckBox Content="{Binding Path=.}" />

Code-behind part :

public partial class MainWindow : Window
    public MainWindow()
        DataContext = new string[] {"course1", "course2"};