Hello folks,

today i got a wierd problem in my Silverlight Application. I had two Comboboxes, i wanted to change the items of the second Combobox, when i select a value in the first Combobox.

But the second Combobox still showed another value. After spending some time with google i found this topic.

The solution to that Problem is the following.

private void cmbOne_SelectionChanged(object sender, SelectionChangedEventArgs e)
    cmbTwo.Dispatcher.BeginInvoke(new Action(() => { cmbTwo.SelectedIndex = 0; }));

The BeginInvoke Method executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on.

Now its works how it should. I hope it will help someone :)