This guide describes how to update your code to be fully compatible with Catel 4.1.0.
Note |
---|
This guide assumes that you are coming from Catel 4.0.0. If not, please read that guide first. |
Table of Contents |
---|
IUIVisualizerService
We have reverted the change to force you to use async code on the IUIVisualizerService. There are now 2 options:
Synchronous:
Code Block var result = uiVisualizerService.ShowDialog<MyViewModel>(); // Window is closed here (synchronous behavior)
Asynchronous:
Code Block var result = await uiVisualizerService.ShowDialogAsync<MyViewModel>(); // Window is closed here thanks to the await keyword