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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:49:06+00:00 2026-05-21T15:49:06+00:00

I implemented a sort of a wizard. With multiple windows. Each viewmodel of each

  • 0

I implemented a sort of a wizard. With multiple windows. Each viewmodel of each window is a subclass of one base super class (also a viewmodel). In the first window, i fill up a property, which is in the base class. But in the next window, if i want to get that property, it is null. This is quite annoying and i really don’t know how this come.

This is my BaseViewModel:

public abstract class WijzigToetsBaseViewModel : INotifyPropertyChanged
    {
        #region Fields

       Examination exam;           

        #endregion // Fields

        #region Constructor

        protected WijzigToetsBaseViewModel()
        {

        }



        #endregion // Constructor

        #region Properties

        public Examination Examination
        {
            set { if(value != null)
                exam = value; this.OnPropertyChanged("Examination");
            }
            get { return exam; }
        }

So i the “shared” property is examination, in the first window , i fill this up by:

(viewmodel of the first window, implements model above)

 public string Pad
        {
            get { return pad; }
            set { pad = value;
            OnPropertyChanged("Pad");

            this.Examination = XmlConversionExamination.ReadExamination(value);
            Naam = this.Examination.Name;
            }
        }

But then, if i want to get the property “examination” in the second window,it gives null:

 public string Test
        {
            get {

                    return this.Examination.Name;             
            }
            set { test = value;
            OnPropertyChanged("Test");
            }
        }

(this is in second viewmodel, also implements base viewmodel.) so here this.Examination = null. This is kind of strange because i setted Examination property in the first window. Someone who has an idea?
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-21T15:49:06+00:00Added an answer on May 21, 2026 at 3:49 pm

    If you have two different ViewModels, then you thereby have two instances of the “base” ViewModel. So this is expected since Examination is an instance property.

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

Sidebar

Related Questions

I have implemented a sort of Repository class and it has has GetByID ,
I am looking for how the methods like ArrayList#sort(Closure) are implemented in Groovy. I've
I'm trying to implement drag/drop/sort between 2 list elements: <ul id=first> <li>item 1</li> <li>item
Implemented the Sink Class - to receive event notifications from COM Server Event Interface
Implemented a generic repository with several Methods. One of those is this: public IEnumerable<T>
Just got my feet wet in sorting algorithm with Haskell. I've implemented insertion-sort and
I have implemented an insertion sort in a double link list (highest to lowest)
I just implemented drag and drop sort table on my site Demo Link On
How can I sort an ArrayList of objects? I have implemented the IComparable interface
I am trying to sort a List of 2D Points first by x co-ordinate

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.