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 3751460
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:04:40+00:00 2026-05-19T09:04:40+00:00

I have a page (view) in my Windows Phone 7 application that uses the

  • 0

I have a page (view) in my Windows Phone 7 application that uses the Silverlight Map control.

I need to call the SetView method on the control, but I’d like to stick to the MVVM style of keeping functionality in the view model.

I plan to call this method after clicking on an application bar button, so I don’t have access to the Map via the EventArgs parameter.

What’s the best way to do this?

  • 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-19T09:04:41+00:00Added an answer on May 19, 2026 at 9:04 am

    I haven’t worked with the map control myself, but here’s a couple of ideas off of the top of my head:

    1. You could publish an event using the IEventAggregator which the view could be subscribed to and use to call SetView.

    2. You could implement a custom IResult which uses the ActionExecutionContext to get the view, find the map control and call SetView on it.

    3. You could implement IViewAware on your view model (or override OnViewLoaded if you inherit from Screen) and follow a more Supervising Controller approach by interacting with the view through an interface to call SetView.

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

Sidebar

Related Questions

I have a controller's action and view page that uses a master page. The
I have a view page that accepts a taxonomy term id as an argument
I am prototyping a windows phone 7 application in silverlight. I am trying to
In my Windows Phone 7.1 application, I have some pages made in this way:
Im building an app for Windows phone 7. I have a panorama page with
In a Windows 8 style app I have a View (or page) which is
I have view page with both detailview and gridview the grid view should be
I have implemented horizontal page view. One base page and three swipe pages. The
I have a view page in Yii. It is cached with page cache. Now,
Im create this code to store page view in database, but i have problem

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.