displaying a canvas at two positions simultaneously
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: displaying a canvas at two positions simultaneously

  1. #1
    Join Date
    May 2012
    Posts
    5

    displaying a canvas at two positions simultaneously

    In C#, using WPF components, Is it possible to display a canvas (whose contents change at run time based on user input) at two positions on the screen? or in two windows? So basically, whatever happens in the canvas positioned at one place happens in the canvas positioned in the other place.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,415

    Re: displaying a canvas at two positions simultaneously

    Sure, use the MV-VM pattern. Put the canvas into a control. In the xaml, place two instances of the control and bind each instance to the view model.

    When the user makes changes, the view model is update (and each of the 'canvas' control objects will be updated).

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center