How can I access control from View inside ViewModel?Hi,<br/><br/>I am using WPF 3.5. I am newbie to MVVM.<br/><br/>I created a sample application in WPF MVVM model.<br/>I want to access my usercontrol/properties which are available inside my View from the ViewModel.<br/>I didn't find any way. I tried it lot.<br/><br/>Can anyone please help me to resolve it? I need the way asap.<br/><br/><hr class="sig">(Please mark as Answer, if this resolved your query. Thanks...) Regards, -- Kunal Chowdhury (<a href="http://kunal2383.blogspot.com">My Blog</a>) © 2009 Microsoft Corporation. All rights reserved.Tue, 30 Jun 2009 00:43:39 Z73a52d2d-e562-4d71-9590-1ee7d5b3aa07http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/73a52d2d-e562-4d71-9590-1ee7d5b3aa07#73a52d2d-e562-4d71-9590-1ee7d5b3aa07http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/73a52d2d-e562-4d71-9590-1ee7d5b3aa07#73a52d2d-e562-4d71-9590-1ee7d5b3aa07kunal2383http://social.msdn.microsoft.com/Profile/en-US/?user=kunal2383How can I access control from View inside ViewModel?Hi,<br/><br/>I am using WPF 3.5. I am newbie to MVVM.<br/><br/>I created a sample application in WPF MVVM model.<br/>I want to access my usercontrol/properties which are available inside my View from the ViewModel.<br/>I didn't find any way. I tried it lot.<br/><br/>Can anyone please help me to resolve it? I need the way asap.<br/><br/><hr class="sig">(Please mark as Answer, if this resolved your query. Thanks...) Regards, -- Kunal Chowdhury (<a href="http://kunal2383.blogspot.com">My Blog</a>) Wed, 24 Jun 2009 13:14:43 Z2009-06-24T13:14:43Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/73a52d2d-e562-4d71-9590-1ee7d5b3aa07#c019db7f-a69c-4392-9e51-33f68459c81bhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/73a52d2d-e562-4d71-9590-1ee7d5b3aa07#c019db7f-a69c-4392-9e51-33f68459c81bMubaragALihttp://social.msdn.microsoft.com/Profile/en-US/?user=MubaragALiHow can I access control from View inside ViewModel?Hi microsoft-kc,<br/><br/>I would like to know some of the things for my understandings,<br/><br/>1. you want to access usercontrol in the sense, are you going to bind values to the controls ?<br/><br/>If you want to bind any controls in the usercontrol, then you can set those values to any properties in ViewModel and bind through XAML.<br/>Or else if you want to simply set any values for your usercontrol properties, then you can do all the stuffs in xaml code itself.<br/><br/> <br/><hr class="sig">Thanks, Mubarag AliFri, 26 Jun 2009 04:45:52 Z2009-06-26T04:45:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/73a52d2d-e562-4d71-9590-1ee7d5b3aa07#9cbe6cc5-5274-4828-ad76-bdf24cd64777http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/73a52d2d-e562-4d71-9590-1ee7d5b3aa07#9cbe6cc5-5274-4828-ad76-bdf24cd64777Mark Wilson-Thomashttp://social.msdn.microsoft.com/Profile/en-US/?user=Mark%20Wilson-ThomasHow can I access control from View inside ViewModel?<p>Hi All<br/><br/>This forum is for discussions about the WPF and Silverlight designers in Visual Studio.<br/><br/>Since this is more of a platform discussion, it might get better answers at <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf">http://social.msdn.microsoft.com/Forums/en-US/wpf</a><br/><br/>Thanks<br/>Mark</p><hr class="sig">Mark Wilson-Thomas - Program Team - WPF &amp; SL Designer for Visual Studio - posts are provided 'as-is'Tue, 30 Jun 2009 00:43:39 Z2009-06-30T00:43:39Z