WPF USer Control viewmodel binding
Posted
by Senthilkumar
on Stack Overflow
See other posts from Stack Overflow
or by Senthilkumar
Published on 2010-05-21T13:02:52Z
Indexed on
2010/05/21
13:30 UTC
Read the original article
Hit count: 415
wpf
|databinding
HI Can any one suggest me how bind viewmodel to a usercontrol..
Also please share different way of doing that..
I have added viewmodel and view into my xaml file in namespace and in the user control resource tag.. i have defined a data template with data type as the viewmodel wh i have wrote.. inside that i have added my view (i mean the same usercontrol ih which im editing now is it possible -- please let me know).. I have used content control with content={Binding}.. and contenttemplate as a datatemplate.. in that i have reffered the property which i want to bind from viewmodel).. but its not binding as such..
My query is different ways of binding viewmodel to view in UserControlLibrary Project ?
© Stack Overflow or respective owner