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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:04:43+00:00 2026-06-01T18:04:43+00:00

I have Wpf-App for working on person object. Person Struct is Sql-server table and

  • 0

I have Wpf-App for working on person object. Person Struct is Sql-server table and I use Linq-to-Sql for my project(so there is class in dbml refer to person).

I have form for update or inserting persons(simple modal window). In this window I have Peoperty which have current value of person.

public Person CurrentPerson { get; set; }

So what I look for is :

How bind title of this window base on CurrentPerson.FullName? and absolutely Window Title must change if CurrentPerson.FullName Changed!

Edit: More Info
I want to change window title base on CurrentPerson.Name not set equally same as CurrentPerson.Name. So this might be change something. Also I searched before find this and this Question about changing part of Title. but I need to change some part of Title base on value.

  • 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-01T18:04:45+00:00Added an answer on June 1, 2026 at 6:04 pm

    Firstly, your codebehind or viewmodel should implement INotifyPropertyChanged. After that, implement a property WindowTitle like this:

    public string WindowTitle 
    { 
        get { return "Some custom prefix" + CurrentPerson.FullName; } 
    }
    

    After this, whenever your change the FullName on your CurrentPerson, just throw a PropertyChanged event, for example:

    Person _currentPerson;
    public Person CurrentPerson 
    {
        get { return _currentPerson; }
        set
        {
            _currentPerson = value;
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs("WindowTitle"));
        }
    }
    

    EDIT: Please post your xaml code for the binding, which looking at your comment on the post of Novice, seems like the culprit. Also, check that you are setting the Window‘s DataContext to itself.

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

Sidebar

Related Questions

I have to use Sync Framework 2.0 in our WPF app that will contain
We have a working WPF app that we are looking into running in the
I'm working on a wpf c# app and I have a question. I have
I have been trying to deploy my WPF app, I created a Setup Project
So we have a WPF app deployed on a citrix server, it all works
I have this problem that My WPF App in its MainWindow: public partial class
I have written a code for my WPF App to use WCF, wcf is
I have WPF app with 2 windows - whats the best way to syncronise
I have a WPF app which snaps to screen edges (I just set the
I have a WPF App which is grinding to a halt after running out

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.