Click here to Skip to main content
15,912,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there an easy way to get the current application's status bar and update it's text?
Posted

No, there is no easy and general way. You will need to keep a global reference to the status bar (using a static variable or whatever...). It depends on your application model how you will do it.

Also keep in mind that status bar in WPF is just a container for more controls (TextBlocks etc.).
 
Share this answer
 
There is no way in general, for any app, but as someone said, if the current application is not YOUR application, WPF does not provide ANY way of hooking in to windows and controlling them b/c there's only one window, the main one. Perhaps you need to explain what you want to do ?
 
Share this answer
 
Thanks for the responses and hints. I made a couple static variables that I set after the StatusBar and TextBox components are initialised.
 
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