Change Window Title From Background Thread #22192
Unanswered
HowardPWeiss
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I have discovered that calling executing the following statement after MainWindow.Title + "new title" causes the window title to change
The window size does not change regardless of the Width and Height of the SizeInt32 object |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I a, developing a C# desktop application for Linux using Visual Studio Code
I want to change the title of the main window of my application from a background thread. I added a method in app.xaml.xs to fall MainWindow.Title = "new window name" which I call from my background thread. Calling the method updates the MainWindow title but not the screen.
If I minimize and maximize the main window, the title changes to the desired title.
I have tried multiple possible solutions to invoke the MainWindow..Title = "new window name" on the UI thread, but so far I have not been successful
Please advise
Beta Was this translation helpful? Give feedback.
All reactions