This project has moved and is read-only. For the latest updates, please go here.

CheckListBox and ItemsSource

Apr 9, 2013 at 6:29 AM
I want to use CheckListBox and bind its ItemsSource to an ObservableCollection.

This is the XAML:
<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
        <Button Click="AddClick">Add</Button>
        <tk:CheckListBox ItemsSource="{Binding ListItems}"></tk:CheckListBox>
And this is the code-behind:
namespace WpfApplication1
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
        public ObservableCollection<string> ListItems { get; set; }

        public MainWindow()

            this.DataContext = this;

            ListItems = new ObservableCollection<string>();

        private void AddClick(object sender, RoutedEventArgs e)
When I click the Add button in my UI, it crashes in the AddClick method with the following error:
The runtime has encountered a fatal error. The address of the error was at 0xeb40f4f4, on thread 0x1414. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.
Is this a bug or am I doing something wrong? My code is pretty straight forward. If I change the CheckListBox to regular ListBox everything works...

Apr 9, 2013 at 7:37 PM
This issue is fixed in v2.0 of the toolkit.
Apr 23, 2013 at 12:41 PM
BoucherS wrote:
This issue is fixed in v2.0 of the toolkit.

Could you please indicate when v2.0 will be available? I received the same type of error. Version I'm using:

Kind regards,