how to load wpf usercontrol in MVVM pattern
Posted
by Anish
on Stack Overflow
See other posts from Stack Overflow
or by Anish
Published on 2010-05-20T08:40:19Z
Indexed on
2010/05/20
8:50 UTC
Read the original article
Hit count: 540
Hi,
I'm creating a wpf user control which is in mvvm pattern. So we have : view(with no code in codebehind file), viewmodel,model,dataaccess files.
I have MainWindow.xaml as a view file, which I need to bind with MainWindowModel.cs.
Usually, in a a wpf application we can do this with onStartUp event in App.xaml file. But in user control, as we do not have App.xaml...How do I achieve it ?
Please help :(...Thanks in Advance !!!
© Stack Overflow or respective owner