JavaFX ComboBox change value causes IndexOutOfBoundsException

In JavaFX, you cannot change the contents of an ObservableList while a change is already in progress. What is happening here is that your listeners (any of the ones you try) are being fired as part of the box.getSelctionModel().getSelectedItems() ObservableList changing. So basically, you cannot change the selection while a selection change is being processed. … Read more

What’s the difference between Dependency Property SetValue() & SetCurrentValue()

The MSDN link you provided says it quite well: This method is used by a component that programmatically sets the value of one of its own properties without disabling an application’s declared use of the property. The SetCurrentValue method changes the effective value of the property, but existing triggers, data bindings, and styles will continue … Read more

Setting a property by reflection with a string value

You can use Convert.ChangeType() – It allows you to use runtime information on any IConvertible type to change representation formats. Not all conversions are possible, though, and you may need to write special case logic if you want to support conversions from types that are not IConvertible. The corresponding code (without exception handling or special … Read more