I am creating a WPF desktop application with MVVM.
I have used Behavior
to store the window state behavior. I want some dialogs to store the setting between application sessions. But I want some dialogs to show at last opened place for the application session, but when application is restarted the diloag must come center owner.
I can have a a flag in WindowStateSettings
class to store that it is a temporary setting and will be flush at application exit. But how could I remove a specific user setting. Or there is any setting that persist for application session. I cant use static
class to store the data as this behavior class doesn't share data between two dialogs.