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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:29:36+00:00 2026-05-18T07:29:36+00:00

My application’s main component is a tab control which holds N number of views

  • 0

My application’s main component is a tab control which holds N number of views and those views’ datacontext is a separate ViewModel object. I have a statusbar at the bottom of the app and it contains a few textboxes. I want one of the textboxes to reflect a timestamp for the currently selected tab. The timestamp is a property of the ViewModel object that’s set as the view’s datacontext.

I’m a WPF newb and not really sure how to bind that property to the status bar.

  • 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-18T07:29:36+00:00Added an answer on May 18, 2026 at 7:29 am

    Make sure your ViewModel implements INotifyPropertyChanged.

    For example…

    /// <summary>
    /// Sample ViewModel.
    /// </summary>
    public class ViewModel : INotifyPropertyChanged
    {
        #region Public Properties
    
        /// <summary>
        /// Timestamp property
        /// </summary>
        public DateTime Timestamp
        {
            get
            {
                return this._Timestamp;
            }
            set
            {
                if (value != this._Timestamp)
                {
                    this._Timestamp = value;
    
                    // NOTE: This is where the ProperyChanged event will get raised
                    //       which will result in the UI automatically refreshing itself.
                    OnPropertyChanged("Timestamp");
                }
            }
        }
    
        #endregion
    
    
        #region INotifyPropertyChanged Members
    
        /// <summary>
        /// Event
        /// </summary>
        public event PropertyChangedEventHandler PropertyChanged;
    
        /// <summary>
        /// Raise the PropertyChanged event.
        /// </summary>
        protected void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    
        #endregion
    
    
        #region Private Fields
    
        private DateTime _Timestamp;
    
        #endregion
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Application Settings.bundle contains a version number , which is automatically generated during build. From
My application has one activity which starts two services but does not bind them.
Application : I am working on one mid-large size application which will be used
My application is written in delphi. For some reason the main menu does not
application = webapp.WSGIApplication( [(r'/main/profile/([a-f0-9]{40})', ProfileHandler)], debug=True) The regex in the above parameter will not
Application.Run(new Main()); This line gives TypeInitializationException was unhandled after I switched from 3.5 to
APPLICATION and ENVIRONMENT Java EE / JSF2.0 / JPA enterprise application, which contains a
Application use NHibernate. I Have object A that contains set of objects B. I
application.rb config.time_zone = 'Athens' I want to list entries which are published between any
Application connected to MS SQL Server will create views where a single row result

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.