Results 1 to 2 of 2

Thread: How to bind to usercontrol child controls from parent view?

Threaded View

  1. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: How to bind to usercontrol child controls from parent view?

    What I would do is to also create a ViewModel for that usercontrol, and in your parent view you just have to expose a ViewMode property for that usercontrol where it can bind into. Actually, just figured it out yesterday when trying to pass data between viewmodels. Will show you a short example in a while.

    EDIT:

    An implementation can be like this.
    Last edited by dee-u; May 16th, 2013 at 01:35 AM.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width