Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3693588
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:23:42+00:00 2026-05-19T04:23:42+00:00

I created a rough, non MVVM demo in Silverlight that drew various lines and

  • 0

I created a rough, non MVVM demo in Silverlight that drew various lines and other 2d objects on an Canvas, based on an object model.

I’m now porting the application over to MVVM (Caliburn Micro) and am now at the point where I have my objects in my ViewModel and need to draw them on the canvas in the View.

Is MVVM in this case the wrong tool for the job?

Where should I stick the 2d drawing code?

In code-behind of the View?

Let me know if you need any more info about my situation to help. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:23:42+00:00Added an answer on May 19, 2026 at 4:23 am

    In a situation like this, I would personally treat your Canvas as a custom, independent control.

    Ideally, you’d want to make it a control (perhaps a UserControl) with a dependency property for the “objects”. The user of this control would bind the objects to a collection inside their (parented control’s) ViewModel, and just treat this as part of the View.

    As such, it’s 100% View – so the code can be implemented any way you choose. It kind of falls outside of MVVM, since it’s entirely “view.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Created an OpenGraph action and object. Trying to submit my action. When I click
I'm very new to Android programming and am having a rough start. I've created
I'm trying to divide a line into multiple segments. Because of that i've created
I want to create a Wizard in my Silverlight MVVM application. The Wizard should
Here's my situation: I have 2 person objects, person1 and person2, which were created
I was given an excel spreadsheet that gave a rough idea of how the
In a simple canvas test I created for performance and quality measurement purposes, a
I'm looking for a way to cheat and create some very rough translations of
Created .NET WCF service, tested it - works. Generated schemas from Data and service
Created Private Key & Self signed certficate in a Key Store keytool -genkey -alias

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.