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

  • Home
  • SEARCH
  • 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 3697884
In Process

The Archive Base Latest Questions

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

I have a silverlight bing map application. I am using the MVVM pattern with

  • 0

I have a silverlight bing map application. I am using the MVVM pattern with PRISM.
The bing map has a “BoundingRectangle” property that is not available in XAML, but it is available via code behind. Of course this does me no good since I need the data in my viewmodel which doesn’t have access to the View’s code behind (nor do I want to add it, since I’d really like to try to not use the view’s code behind if possible).

Normally, you would do a two way bind to a viewmodel property. The Bing map will surface BoundingRectangle for layers, but not for the base map (that I can find).

I’m not looking for a hack here, just wondering what the best practices or convention for getting data out of a view to a viewmodel that isn’t “bindable”.

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:54:51+00:00Added an answer on May 19, 2026 at 4:54 am

    Databinding in Silverlight is just a framework feature that automatically synchronizes data between your view and your view model (if you are following the MVVM pattern). However, there is nothing wrong with doing this yourself!

    The two main advantages of the MVVM pattern (other than the usual separation of concerns that most UI patterns provide) are:

    1. It aids unit testing, the View Model can be exercised from your unit test code without a view present.
    2. It helps the developer / designer workflow, reducing the files shared between the designer and developer.

    In my experience, having a small amount of code-behind that ‘assists’ the binding framework does no hard at all!

    You can use techniques such as attached behaviours to wrap this code up, but often this just results in a cosmetic improvement.

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

Sidebar

Related Questions

I have a silverlight application that contains Bing map. I want when the user
I have a Silverlight project that uses MVVM with Prism. I followed http://www.telerik.com/help/silverlight/patterns-and-practices-eventtocommand-prism.html I
I am using the Silverlight sdk for Bing Maps. I have my map, I
I have silverlight 4 application with PRISM 4, I'm using MEF. My Shell defines
I am currently developing a Silverlight OOB application using the Bing Map Control, however
I have a Silverlight application that has a ListBox of a specific width. I
I have created a Silverlight Application project using the Bing Maps Silverlight Control and
I have a Silverlight 4 application which uses the MVVM pattern. I have: 1.
I have a Silverlight application that displays a map, and my intention is, when
I have a Silverlight ModelViewViewModel project that I would like to expose a property

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.