Replies: 2 comments 1 reply
|
YMMV, but we set the mode to Xaml and live with the slight performance penalty on the Winforms UI. In our case, we actually need the Xaml mode because we have a lot of Winforms classes that have custom code that responds to specific property changes, no matter what action triggered that property to change. Xaml mode supports that easily. If we used Windows mode, the form would need multiple event handles based on the side effects from business rules. This is implementation leaking, which we prefer to avoid. |
|
I take it that you have an app that is hosting winforms pages in WPF, or WPF pages in winforms? The mode is now managed by the ApplicationContext instance that is provided via dependency injection to objects and services that require it. https://github.com/MarimerLLC/csla/blob/main/Source/Csla/Configuration/Fluent/BindingOptions.cs The property in the options class is read-write. Unfortunately, it is later cached in the actual I think @hurcane has the right answer. Or a fork, for your use, of CSLA to remove the caching code from |
Uh oh!
There was an error while loading. Please reload this page.
I'm assuming my LOB is non standard, and I'm facing an issue when trying to upgrade to CSLA v8.
Before, I was - at runtime - toggeling the PropertyChangedMode between Windows↔Xaml.
I relied on my WPF-window focus (Activated/Deactivated) to toggle to Xaml or back to Windows.
I understand that CSLA 8 makes the mode fixed for the process — that runtime toggle can no longer take effect.
Instead, it is only possible to configure it during startup using CslaConfig.SetPropertyChangedMode .
Is my understanding correct?
Any advice/best practice to overcome it when upgrading to CSLA v8.2.9?
Obviously, migrating all my Wpf to Winform (or vice versa) would be too huge !
All reactions