how to call a window's Loaded event in WPF MVVM?
Posted
by bluebit
on Stack Overflow
See other posts from Stack Overflow
or by bluebit
Published on 2009-08-03T14:35:49Z
Indexed on
2010/05/30
5:52 UTC
Read the original article
Hit count: 249
It is easy enough to create a command from my OnLoaded() event handler code, but how do I call it from the View?
<window Loaded="onLoaded"> doesn't cut the cake anymore since it calls code in the xaml.cs. How would I create an ICommand equivalent?
© Stack Overflow or respective owner