
I am trying to revive an old code base that heavily used Actipro WPF going back to release 10. The last release we had used was 14.1. I jumped from that to 23.1.0.0 Of course I have found many things have changed and I am slowly working my way through them. One of the things that has stopped me dead in my tracks is setting the value of an Int32EditBox in code. This poarticular code base is in VB.Net.
Here is an example...
txtMaxThreads.Value = ConnectionSettings.Instance.MaxBatchConcurrentThreads
The value of MaxBatchConcurrentThreads is an Integer
While this code worked perfectly in 14.1, in 23.1 it throws an InvalidCastException with the message 'Unable to cast object of type 'System.EventArgs' to type 'ActiproSoftware.Windows.PropertyChangedRoutedEventArgs`1[System.Nullable`1[System.Int32]]'.'
My question is...
Is there still a way to programatically set the value of an Int32EditBox or is the only option to use binding in XAML? Any help you can provide will be greatly appreciated. I am struggling to get my application running again.