How to restart Windows Store application in Windows 8 - c#

I want to give user an option to restart immediately to apply different theme, using https://msdn.microsoft.com/en-us/library/ie/windows.ui.xaml.application.requestedtheme
Retargeting to 8.1 is not an option.

There is no way to programmatically restart a Windows Store app, and Windows 8 (as opposed to 8.1) doesn't support ThemeResources to apply theme updates to existing controls after they've been created.
You will need to tear down the existing visual tree and rebuild it, but there isn't a good way to do this on the existing page. The easiest way would probably be to navigate away and back.

Related

How to add my custom menu commad to installed applications in windows 7 and above

Actually, I created a simple app in C# which creates a snapshot of the screen and upload to One Drive automatically. But the problem is I need to open my application when i want to do the operation. So, to minimize the effort and enhance the accessibility, am trying to add an extra menu option to the context menu of title bar of all the installed applications. Is there any method to do the same. Please suggest.
Expected UI

Programatically adding to Messenger context menu Windows Phone 8.1

I was wondering if anyone has any experience or knows if there is any way to add options to a system context menu in a windows phone 8.1 built in app. Specifically, I would like if possible to add a "copy to" option that copies data directly from a message to my app instead of having to select
-> copy to clipboard -> find my app -> paste into application.
Is this possible? Is there any other technique I could leverage?
No, it's not possible. You can make your app a share target to accept data shared from apps which do so, but that won't help for your specific case since the Messaging app doesn't share its messages.

resize the application to snap view programatically

I am developing a win store application, user can launch other file/application from my application. At that point, I want to keep my application in front of user in the "snap view"
For Windows 8.0, there wasn't a way to control this. In Windows 8.1, the Windows.System.Launcher API--namely the LaunchFileAsync and LaunchUriAsync methods that take a LauncherOptions argument--added support for the LauncherOptions.DesiredRemainingView property. This gives you the kind of control you're looking for here--in your scenario you'd want to use the value ViewSizePreference.UseMinimum in the DesiredRemainingView property.

Changing DefaultTask (Entry Point) in Windows Phone App

According to Microsoft template the entry point of Windows Phone app is MainPage.xaml. I manage to change it to *.xaml page, but how to get rid of those .xaml pages and write only C#. In windows Forms it was quite easy, but what about Windows Phone ? If I just change the default task to be .cs file, it doesn't run.
Unlike in WinForms there is no concept of an application's main entry point not corresponding to a visual page represented by XAML (in this case, as you pointed out, the default is MainPage.xaml). The idea being that this wouldn't make sense since there always has to be a visual portion to a Phone application. While you could potentially write the same thing purely in code it's not something that is directly supported.
An application has the ability to run in the background via Background Agents (see http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v=vs.105).aspx), but it still needs the visual portion of the application to install the Agent and to be accepted onto the Store.

Modify Windows Login screen

Is it possble to Modify the Window's Login screen and add our own buttons/links? For example is it possible to do something like this?
alt text http://www.allaboutmoss.com/wp-content/uploads/2010/04/windowsxp_login.jpg
The above screen has a link and when clicked it should start a win forms application?
For Windows XP, you can build a GINA DLL, and for Vista+ you need to use the new credential providers system. In both cases, you basically have to build the UI from scratch and so it's not really possible to just take the existing UI and add a few controls here and there.
Of course, you could build your own GINA DLL that displays UI that's the same as the standard Windows XP one, with your own additions, but it's not exactly a simple task.

Categories

Resources