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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:04:06+00:00 2026-06-07T13:04:06+00:00

I am writing a Windows Phone application and planned to use some MVVM idea

  • 0

I am writing a Windows Phone application and planned to use some MVVM idea in it.
I know that with command binding I can easily separate UI and logic, but the problem is I don’t know how I can get access to the controls properties, for example:

I have a map control on the main page, for which I want to show a push pin at the place user taps at. But with MVVM I don’t think there is anyway I can do that. Means I can not access to the maps properties and methods to do things like that, is it right?

If anyone has experience with MVVM please share your idea about how to use control’s properties and methods to perform tasks.

(P.S. I dont want to use MVVM Light or any toolkit for this application)

Thank you

  • 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-06-07T13:04:07+00:00Added an answer on June 7, 2026 at 1:04 pm

    What you’re trying to do – binding a to a property which determines where to show a pin on the map – is a pretty specific use case, which is why the map control does not expose a property for this.

    If you want to follow the MVVM pattern I would recommend creating a user control / custom control that wraps the map control and exposes a dependency property to which you can bind to. When this property is changed you check if there’s a pin added to the map and if not, add one; otherwise move it to the correct position.

    Bottom line is you’ll need to create some custom control and expose the property/properties to bind to if you want to implement the solution following the MVVM pattern.

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

Sidebar

Related Questions

One of the requirements for a Windows Phone 7 application that I am writing
When writing a Windows application, the documentation says that some VK_CODEs are displayable characters,
I'm writing a windows application that is embed with a manifest considering UAC in
I am writing a Windows CE application in C# that references a native C++
I'm writing a windows service in C# that spawns multiple instances of another application
I'm writing an application for a Windows Mobile phone in VB.Net, and I would
I'm writing a Windows Phone Mango app. I have a hyperlink that contains email
I'm writing a windows phone app that consist of a pivot control, and I
I'm writing a windows phone app, and I want to know how to alert
I'm writing a Windows Phone app in C#. I have a setting OrientationLock that

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.