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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:42:58+00:00 2026-06-13T04:42:58+00:00

I have a WPF application. I am using MVVM. I have Person Model which

  • 0

I have a WPF application. I am using MVVM.
I have Person Model which is bound to WPF CreatePerson view.
In CreatePerson view, There is textbox in which I bound Text property to Person.FirstName
Now my default focus to FirstName textbox.
When I hit tab key without doing anything, it does not fire validation, but when i write something then it fires properly.

All validations are set properly.

Now I want when I hit tab key, it should fire validation.

If more clearance is required, please let me know.

  • 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-13T04:42:59+00:00Added an answer on June 13, 2026 at 4:42 am

    the validation is called when any attempt to update the binding source occurs. If you want to fire validation when the events GotFocus occurs, you must update your binding programmatically, i.e. in the event handler of GotFocus you can force the binding

    private void textBox1_GotFocus(object sender, RoutedEventArgs e)
    {
          BindingExpression binding = BindingOperations.GetBindingExpression(textBox1, TextBox.TextProperty);
     binding.UpdateSource(); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application using WPF MVVM. I have a view model with property
I have a WPF application designed using MVVM. I have a view which will
I'm trying to implement a WPF application using MVVM (Model-View-ViewModel) pattern and I'd like
I have a C# application of which some parts are written using WPF (which
I have a WPF application using MVVM. I have some user controls that show
I am coding a WPF application using MVVM pattern. I don't need to have
I have a WPF Microsoft Surface Application and I'm using MVVM-Pattern. I have some
I have a wpf application using mvvm approach. The main window contains a tab
I have a WPF application implemented using the MVVM framework that uses an ActiveX
I have a WPF application using MVVM that utilises TreeViewItemViewModels to simplify working with

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.