windows-10

Setting or modifying ThemeResource in code

我的未来我决定 提交于 2019-12-03 13:07:49
问题 My questions is very specific to ThemeResources in a Windows 10 Store App. Unfortunately several things available in "classic" WPF are different or not available here. What I am trying to achieve for lots of ui elements: Allow the user to use the system's accent color (in XAML this would be {ThemeResource SystemAccentColor} as value.) Allow the user to use a custom/fixed color instead. (I could override the SystemAccentColor key in the resourcedictionary) Allow to switch between system accent

Handling suspend, resume, and activation in windows 10 UWP

点点圈 提交于 2019-12-03 12:46:24
In the windows 8.1 universal apps, the suspend/resume modes were handled using the NavigationHelper.cs ans SuspensionManager.cs classes included in the APP template. These classes doesn't seem to be there in the windows 10 UWP apps. Is there a way by which we can handle the suspend/resume states? There's an interesting framework being developed by the community (but mostly I think Jerry Nixon, Andy Wigley etc.) called Template10. Template10 has a Bootstrapper class with OnSuspending and OnResuming virtual methods that you can override. I am not sure that there's an exact example of doing

Override theme brush Windows 10 UWP

回眸只為那壹抹淺笑 提交于 2019-12-03 12:41:59
I'm trying to override some style-colors in Windows 10 but I cannot get it to work. My app.xaml looks like this: <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resources.xaml"/> </ResourceDictionary.MergedDictionaries> <ResourceDictionary.ThemeDictionaries> <ResourceDictionary x:Key="Default" Source="Theme.xaml"/> </ResourceDictionary.ThemeDictionaries> </ResourceDictionary> </Application.Resources> And my Theme.xaml looks like this <ResourceDictionary x:Key="Default" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:/

How open PowerShell as administrator from the run window [closed]

笑着哭i 提交于 2019-12-03 12:15:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is possible open a new PowerShell console as administrator through the run window, in Windows? I know that just typing 'powershell' in the run window is enough to start a new console, but is there a parameter to start it 'as Administrator'? Like: "powershell /runas:Administrator" or something? PS: I'm using

How to create virtual webcam in Windows 10?

99封情书 提交于 2019-12-03 11:31:11
I would like to take video from a webcam, render some text on the frames and do some motion tracking and pass it on to a virtual webcam so it can be streamed easily. I found some answers on stackoverflow suggesting that I should use DirectShow. According to information in DirectShow documentation , the DirectShow SDK is part of Windows SDK. So I installed the latest Windows SDK but it seems that it doesn't include DirectShow because there are no DirectShow samples under C:\Program Files (x86)\Microsoft SDKs\Windows . (The stackoverflow answers are also pretty old - dated around 2010) Can you

Visual Studio does not install correctly on Windows 10

无人久伴 提交于 2019-12-03 10:25:34
I upgraded my laptop to Windows 10 (no preview edition - the real thing!). I then installed Visual Studio Community Edition 2015 (I already have VS 2013 installed) so I can begin to use the Cordova functionality. The install churns and burns for a long time and finally finishes with a pageful of warnings. The warnings seem to correspond to entries in the log file (at the bottom of this post). I have tried uninstalling / reinstalling VS2015 thinking that a connection issue was the culprit - this did not work. I downloaded the ISO, uninstalled, and then reinstalled from the ISO - same problem.

Can I create an alarm app for Window Universal App?

最后都变了- 提交于 2019-12-03 10:08:55
问题 I would like to create an alarm app. I found the way of operating a timer in the background. But APIs which control the power of the display were not found(I want to turn on the display's power when its power is off). Doesn't Windows 10 (Windows Universal App) have enough APIs to create that app? 回答1: Windows-universal-samples has recently been updated with a few new RTM samples including this one - Notifications. As Alarm is also one type of notification, it's now built within a new toast

Are Cortana APIs available for desktop applications?

半世苍凉 提交于 2019-12-03 10:03:27
问题 I want to develop a Windows application on Windows 10 using the new Cortana engine. Unfortunately as far as I know, it seems to be available only on Windows Phone 8.1 project (for instance, I didn't find a way to access to the Windows.Media.SpeechRecognition namespace from a different type of Visual Studio project). Also I wasn't able to find a good API documentation, only some very simple examples. Edit: Based on Peter Torr answer I've wrote some code. I've been able to recognize some word

Windows Defender - Add exclusion folder programmatically

那年仲夏 提交于 2019-12-03 09:44:58
问题 I was checking out different keyloggers for research purposes and stumbled upon Refog: https://www.refog.com/keylogger/ This program could catch a lot of system events, but what really caught my attention was something else. The program created a hidden folder called Mpk, path C:\Windows\SysWOW64\Mpk. It was marked as an operating system files folder, because it was not visible until I unmarked Hide protected operating system files (recommended) . This, I guess, can be done via the attrib

Keras installed through Conda breaks the Anaconda Prompt on Windows 10 - Solved [closed]

感情迁移 提交于 2019-12-03 09:42:38
Closed . This question needs details or clarity. It is not currently accepting answers. Learn more . Want to improve this question? Add details and clarify the problem by editing this post . I have a Win10 OS, with Anaconda 3.6 installed, and a friend told me to install keras by using a specific conda command. Without reading any other documentation, i took his word for it. So, I originally performed the following command that he shared with me, in the anaconda prompt to install keras: conda install -c conda-forge keras The install did not complete and then the anaconda prompt quit