Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to give title to WPF pages

It is possible to give the title to WPF window through XAML code itself at design time and it is showing the title to window at runtime.

the code in the XAML is like
Window1.Title="FormulaBuilder"

For the WPF pages also it is given in the XAML code like
Page1.Title="EmployeeMaster"

But it is not showing the title at Runtime

Then I tried to give the title thrugh C# coding

Page1 obj=new Page1();
obj.Title="EmployeeMaster";

But it is not showing the title at runtime.



How to give the title to WPF pages....

It will be very helpful for me if anyone reply to this....

Advance thanks...
Posted

1 solution

I suspect you need to set the title on the window in the pages.

LukmanulHakeem.T wrote:
Page1 obj=new Page1();
obj.Title="EmployeeMaster";


I assume you went on to show this instance of Page1, that you didn't do this in the hope of finding Page1 from somewhere random ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900