Hello.
We have a need to execute some command when the window is fully loaded. In order to do that we want to be able to bind event ContentRendered to the command in view model.
What would be the best way to achieve this? As I understood there are three approaches:
- resolving view model from the condebehind and invoking the command
- interactivity library (additional dependancy)
- a combination of attached property and attached behavior
What is a recommended way to bind to the window event in MVVM style? Is there a code sample somewhere to take a look at?
Thank you.