windows-10

C# Detect Accent Colour Changes WinRT XAML

旧街凉风 提交于 2020-01-01 16:38:28
问题 I am trying to detect changes in the Application.Resources Resource dictionary, so I can automatically change the Titlebar to the Accent Colour when it updates. All of the XAML controls and elements change automatically, and when setting a solid colour brush to the address of the DSDFS brush, its internal value changes. This is the code I have tried to use to detect the change: public static DependencyProperty accent = DependencyProperty.Register("DictChange", typeof(ResourceDictionary),

Windows API to access case-sensitive paths (Bash-on-Ubuntu-on-Windows)

不问归期 提交于 2020-01-01 14:40:13
问题 Bash-on-Ubuntu-on-Windows supports case-sensitive file paths. This means that I can create two files or directories with names only differing in capitalization. I have issues accessing those files, though. Running bash -c "touch Magic ; mkdir magic ; echo Secret! > magic/secret" Creates a file names Magic , a directory named magic and a file names secret in that directory. bash -c "ls -lR" yields .: total 0 drwxrwxrwx 2 root root 0 Aug 23 10:37 magic -rwxrwxrwx 1 root root 0 Aug 23 10:37

visual studio 2015 build takes long time

余生颓废 提交于 2020-01-01 11:50:56
问题 I went from VS 2013 to VS 2015 and when I do a build it takes 90+ seconds or so. Is there anything I can do to speed that up? (VS 2013 took about 10 seconds). Also, What is the cause? I do see it is running a couple extra things during build (I don't think 2013 did all these): Starting .NET Native compilation Processing application code Computing application closure and generating interop code Compiling interop code Generating serialization code Cleaning up unreferenced code Running native

Windows 10 IVirtualDesktopManager::MoveWindowToDesktop

独自空忆成欢 提交于 2020-01-01 10:15:50
问题 I've been trying to use IVirtualDesktopManager::MoveWindowToDesktop to move windows between virtual desktops. Using it on my own windows works great but unfortunately it fails with E_ACCESSDENIED when I try to use it on the window of another process. Sadly "Launch as admin" is not good enough for it. Am I missing something that I don't know about COM interfaces or is it just badly designed ? 回答1: You can move a window not owned by the executing process, but it requires the use of additional,

Windows 10 IVirtualDesktopManager::MoveWindowToDesktop

亡梦爱人 提交于 2020-01-01 10:13:02
问题 I've been trying to use IVirtualDesktopManager::MoveWindowToDesktop to move windows between virtual desktops. Using it on my own windows works great but unfortunately it fails with E_ACCESSDENIED when I try to use it on the window of another process. Sadly "Launch as admin" is not good enough for it. Am I missing something that I don't know about COM interfaces or is it just badly designed ? 回答1: You can move a window not owned by the executing process, but it requires the use of additional,

Chocolaty packages not installing via OneGet/PackageManagement in Windows 10?

那年仲夏 提交于 2020-01-01 08:00:46
问题 I'm trying to use oneget w/chocolaty and it doesn't seem to be working at all. The package says it's installed, no warning or notification. It installs the package in the choco directory, but doesn't run the install script and therefore the application is not actually installed. Note this is Windows 10 (Powershell 5). Get-PackageProvider –Name Chocolatey -ForceBootstrap Set-PackageSource -Name chocolatey -Trusted Install-package filezilla -Verbose -Force -ProviderName chocolatey yields 回答1:

Chocolaty packages not installing via OneGet/PackageManagement in Windows 10?

橙三吉。 提交于 2020-01-01 08:00:18
问题 I'm trying to use oneget w/chocolaty and it doesn't seem to be working at all. The package says it's installed, no warning or notification. It installs the package in the choco directory, but doesn't run the install script and therefore the application is not actually installed. Note this is Windows 10 (Powershell 5). Get-PackageProvider –Name Chocolatey -ForceBootstrap Set-PackageSource -Name chocolatey -Trusted Install-package filezilla -Verbose -Force -ProviderName chocolatey yields 回答1:

Chocolaty packages not installing via OneGet/PackageManagement in Windows 10?

让人想犯罪 __ 提交于 2020-01-01 07:59:45
问题 I'm trying to use oneget w/chocolaty and it doesn't seem to be working at all. The package says it's installed, no warning or notification. It installs the package in the choco directory, but doesn't run the install script and therefore the application is not actually installed. Note this is Windows 10 (Powershell 5). Get-PackageProvider –Name Chocolatey -ForceBootstrap Set-PackageSource -Name chocolatey -Trusted Install-package filezilla -Verbose -Force -ProviderName chocolatey yields 回答1:

How to run rm command on windows 10?

我的未来我决定 提交于 2020-01-01 06:39:07
问题 "build": "rm -rf ./build && mkdir ./build && ./node_modules/.bin/babel -d ./build ./src" This is the command in package.json and it gives me an error saying: rm is not recognized as internal or external command. Invalid switch /build 回答1: That script was written for the UNIX shell, which does not work on windows. The correct way to do this in a cross-platform way is to use rimraf & mkdirp. Also, the ./node_modules/.bin/babel portion could be shortened to simply babel ( ./node_modules/.bin

File association and thumbnail preview in Windows 10

扶醉桌前 提交于 2020-01-01 06:26:35
问题 I have created an application and associated on registry a file extension on Windows 10, so when you double click a file associated with my extension, it opens my app with the file as parameter. Now, I want the files associated to my application to behave in Windows 10 just like images - I mean, having a thumbnail preview, so when the user selects "large icons", he would be able to see a preview of the file. I wonder how can I do it. What kind of metadata my file should have so Windows would