I wanted to learn Windows 10 applications, and sadly it uses Windows Runtime. I have been working with .NET framework (specially WPF) and there is a very much simple way to update the title of the Window (which does not exist as a Control in Windows Runtime, instead is just a component of Application object), in Windows Runtime I am unable to change the Title of the application. It remains same as it was, initially; for example Win10Test.
I have not found any member of Application[^], Window[^] or CoreWindow[^] object that might let me update the Title for the application. I have also tried to tinker with Assembly attributes and changed their values but they also don't work.
Is there any way to update the title of the application, or would I need to name the application while creating the project? I have yet not found anything at all so I thought maybe WinRT developers might know what to do.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
Double click on package.appxmanifest to open up the manifest editor in Visual Studio. Select the first tab (application). The top textbox (Display Name) is where you change the title of the application.
Thank you very much for your reply Pete, I did try that one but that is not the solution in Windows 10 applications. Also, Visual Studio doesn't open the manifest editor (I am using Visual Studio 2015), it instead opened up XML editor.
Now, if you didn't know it before. I would give you the How-to of changing the application's name in Windows 10. In the manifest, there is another node Applications, which contains the UAP (Universal application platform) and other properties that each of the application under the project holds.
I have my Tray application running as Background process in Win8
When I click for End task from Task Manager, how to get notified for End Task call. (which function is called??)
(In case of GUI application WM_CLOSE gets called but I couldn't able to trace for this.)
If a user fires up Task Manager and clicks "End Task" on your program, Windows first tries to shut down your program nicely, by sending WM_CLOSE messages to GUI programs and CTRL_CLOSE_EVENT events to console programs. But you don't get a chance to intercept TerminateProcess.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
A windows service; in that case, it would have an event that is raised. Should not show a UI.
A console application; would not show a tray icon
A windows GUI application; regardless of whether you show a form, it still is a GUI application. Keep a form open (something I'd expect from the Application.Run(formName) call) and make it invisible.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
Hello, I am writing a very simple app that is trying to launch a pdf viewer when a button is pressed or a selection is changed in a list.
I have the structure to generate an event when the selection is changed and I have the path to the pdf file; e.g. 'Assets/pdf/filetoopen.pdf'
I have been trying all kinds of methods without success;
StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
StorageFile pdfFile = await local.GetFileAsync((DetailsLongListSelector.SelectedItem as ContentViewModel).pdfLocation);
success = await Windows.System.Launcher.LaunchFileAsync(pdfFile);
That fails when using GetFileAsync.
I had thoughts about its due to access permissions and may need to copy to temporary storage before using, but I cant seem to make that work.
Is there any preferred method to open an pdf ?
OK I have managed to get it to launch by using:
// Get the app's installation folder.
StorageFolder appFolder = Windows.ApplicationModel.Package.Current.InstalledLocation;
// Get a file from a subfolder of the current folder// by providing a relative path.
StorageFile pdfFile = await appFolder.GetFileAsync((DetailsLongListSelector.SelectedItem as ContentViewModel).pdfLocation);
if (pdfFile != null)
bool success = await Windows.System.Launcher.LaunchFileAsync(pdfFile);
The main problem was I needed to use the ApplicationModel instead of Storage.ApplicationData.
Now I have an issue with Adobe stating that the file already exists "do you want to replace ?"
Is there any way to force Adobe to overwrite ?
I'm sorry Balu. You'll generally find that most people won't just hand over source code here on CodeProject. Obviously, if you're lucky enough to find an article that has the source then your luck is in. The forums, however, are not the place to seek source code.
I'm currently attempting to wire up to a MVC Web API that utilizes RSA encryption as part of it's authentication process. The RSA provider isn't available on a windows phone tech stack, and I'm wondering if anyone might be able to point me to some code/nugget package that handles RSA on the phone.
There is a horrible bug in Windows 8.1. Hibernation causes a desktop PC to crash. Now if you google you can find a solution, and that is to disable "allow this device to wake up the computer" in device manager for keyboard and mouse. However, this is only a temporary solution, because once you unplug either keyboard or mouse, the setting will be enabled again.
I tried looking to see if you can log a bug for Windows: no, you cannot. It seems like Microsoft know about this bug, but have no intention ever fixing it.