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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:30:46+00:00 2026-05-12T09:30:46+00:00

In a MVVM based application, what options do I have to provide ViewModel data

  • 0

In a MVVM based application, what options do I have to provide ViewModel data at design time, so our designers can actually see something in Blend3 (and VS 2008). How are you doing this? Can I utilize mc:ignorable for this somehow?

  • 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-12T09:30:46+00:00Added an answer on May 12, 2026 at 9:30 am

    Yes, Expression Blend can help you with this. Use the “Data” tab to create sample data that has the same shape as your production data. When you create the data source, be sure to uncheck “Enable sample data when application is running”.

    Sample Data http://www.smips.com/brad/stackoverflow/design-model1.jpg

    After you’ve created your sample data, set the DataContext of your page to the sample data in the XAML. This will let the designers see the sample data when they open the page in Blend.

    <navigation:Page DataContext={StaticResource MyFakeDesignData}
    

    In the code for the Loaded handler, write code to set the DataContext to the real model. Since this code will only run when the app is running, and you’ve told your sample data to not be available when the app is running, this means the running app will get the real data.

    private void Home_Loaded(object sender, RoutedEventArgs e)
    {
        DataContext = new MyRealViewModel();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 226k
  • Answers 226k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer AreEqual is a static method in Assert class. So use… May 13, 2026 at 1:07 am
  • Editorial Team
    Editorial Team added an answer Look at the stringex gem here, it can be used… May 13, 2026 at 1:07 am
  • Editorial Team
    Editorial Team added an answer Umbraco must be installed as a root website, It cannot… May 13, 2026 at 1:07 am

Related Questions

I've got a WPF application which calls MessageBox.Show() way back in the ViewModel (to
Hi just about to get the dev team to start looking at the next
I am writing an app that listens on a network connection, and when some
What would be a good aproach to localize a MVVM based WPF allication that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.