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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:40:42+00:00 2026-06-15T02:40:42+00:00

I’ve to create a small windows application(no silverlight, no windows phone, no windows 8

  • 0

I’ve to create a small windows application(no silverlight, no windows phone, no windows 8 app, …), and since I’ve some extra for this application, I decided to take the time to learn the MVVM pattern.

I read about it and I understood the principal part.

I found the MVVM Light Toolkit, but I find hard to start with. Except this page where I find the class names, I can’t find any documentation about this, some kind of “getting started” section.

I tried to start with that, but I can’t find:

  • What is the ViewModelLocator, and how should I use it
  • A simple example of a ViewModel, extending the ViewModelBase (for example, I don’t know if I should call RaisePropertyChanging, RaisePropertyChanged, both, if I should put just the property name, …
  • Some example about how to use the Messenger (in which part of the code I should register, examples of conditions)

After some search on the net, either I find informations for windows phone(with Page, …), either it’s years old topic.

So do you know where I can find this kind of information?
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-15T02:40:44+00:00Added an answer on June 15, 2026 at 2:40 am

    To answer your questions:

    The ViewModelLocator is a class that allows you to expose your various models via properties, and do whatever initialization is required. You can then bind the DataContext of a page or control conveniently to a ViewModel.

    DataContext="{Binding Main, Source={StaticResource Locator}}"
    

    Here is a similar question

    Call RaisePropertyChanged([name-of-property-here]) to update your bindings.

    Use the Messenger as a way to easily notify your page when the state of the application has changed, to display an error message when an error has occurred is a good example. To use Messenger, you can register in OnNavigatedTo

    Messenger.Default.Register<YourCustomMessage>(this, OnYourCustomMessage);
    

    and don’t forget to unregister in OnNavigatedFrom

    Messenger.Default.Unregister<YourCustomMessage>(this, OnYourCustomMessage);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I have a small JavaScript validation script that validates inputs based on Regex. I
I have this code to decode numeric html entities to the UTF8 equivalent character.
We're building an app, our first using Rails 3, and we're having to build

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.