windows-8.1

Making ScrollViewer's ScrollBar always visible through overriding or styling

泄露秘密 提交于 2019-12-05 08:02:34
I'm trying to make the ScrollBar for the ScrollViewer to be always visible so it doesn't only appear when I try to scroll the text view and so the user knows that there is someting more to see. At first, for some reason, I thought that I just have to change the color which needed brush overriding, but in reality, the ScrollBar is fading in and fading out, so either the ScrollViewer's or ScrollBar's template needs to be changed. I found the ScrollViewer's template which I have just placed in the App.Resources section, but I don't know how to edit it so the ScrollBar is just visible all the time

How to reliably steal/regain focus for MFC/desktop app on Windows 8.1/10?

元气小坏坏 提交于 2019-12-05 06:24:09
OK, I get it: focus stealing is evil . Or at least it is 99.9% of the time. But I really need to steal the focus reliably on Windows 8, and so far I'm thwarted by the hordes of people insisting focus stealing is always evil. Scenario: we run a custom application on an ordinary PC running Windows 8.1 (soon to be Windows 10). The screen, keyboard and mouse sit roughly 5m off the ground up some stairs that the forklift operator really shouldn't climb. The one input device they have is a numeric keypad on an extender cable down at their level. Everything they need to do they can do from that

Touching a WPF button does sometimes not invoke the click handler under Windows 8

此生再无相见时 提交于 2019-12-05 06:02:35
"When the application window does NOT have the focus, sometimes the click handler is not called on button-touch." System: Windows 8.1 with a multi-touch input device. Software: A simple WPF 4.5.2 application with just one button that logs if the click handler is called (just create a new project and add a button with a click handler to the MainWindow). Phenomenon: Normally when touching the button its click handler is called. But when the application window does NOT have the focus, sometimes the click handler is not called on button-touch (although the button color changes to blue). When the

trouble with creating a virtual environment in Windows 8, python 3.3

血红的双手。 提交于 2019-12-05 05:09:36
I'm trying to create a virtual environment in Python, but I always get an error no matter how many times I re-install python-setuptools and pip. My computer is running Windows 8, and I'm using Python 3.3. E:\Documents\proj>virtualenv venv --distribute Using base prefix 'c:\\Python33' New python executable in venv\Scripts\python.exe Installing setuptools, pip... Complete output from command E:\Documents\proj\venv\Scripts\python.exe -c "imp ort sys, pip; pip...ll\"] + sys.argv[1:])" setuptools pip: Traceback (most recent call last): File "<string>", line 1, in <module> File "<frozen importlib.

Clipping a low resolution image using Transforms and assigning it to my user control

假如想象 提交于 2019-12-05 03:32:53
I have been working on a Windows 8.1 RT app where the user loads an image with Stretch=Uniform . The image can be as small as possible and as big as possible. The clipping happens in my user control and my user control appears when I tap/press and hold on the screen/image. Clipping happens when when I tap and hold and move my finger/mouse around the image that is in the background. The Problems I am facing are Whenever the app is loaded for the first time on Emulator , and for the very first time when the tap /clicks and holding is performed , the user control appears on the top left on the

Are there APIs to enable/disable Bluetooth on Windows 8.1?

南笙酒味 提交于 2019-12-05 03:13:03
问题 In Windows 8/8.1 it's now possible to enable/disable Bluetooth via the OS itself (see image below). This is awesome because it's device/driver-agnostic. On Android, this is possible via BluetoothAdapter.enable() and BluetoothAdapter.disable(), but I haven't been able to find anything to do this on Windows (even though it seems like it's definitely possible). So I've tried using: BluetoothEnableIncomingConnections() - However, this only prevents new incoming connections. It doesn't disable

Getting Exception from HRESULT: 0x80072F0D when posting to a service in Windows phone 8.1

倖福魔咒の 提交于 2019-12-05 02:57:27
问题 When I am trying to post a data to an API using HttpClient in Windows Phone 8.1, I am always getting Exception from HRESULT: 0x80072F0D exception. In fiddler, it works fine. try { var requestbody="json data" HttpClient httpClient = new HttpClient(); HttpRequestMessage msg = new HttpRequestMessage(new HttpMethod("POST"), new Uri(addressUri)); msg.Content = new HttpStringContent(requestbody); msg.Content.Headers.ContentType = new HttpMediaTypeHeaderValue("application/json"); HttpResponseMessage

Class Library Localization in Windows Universal / Store App

亡梦爱人 提交于 2019-12-05 02:47:59
问题 I have a solution with a Windows Store app project and a Class Library project and I want to add Localization support. How can I add the all the Resource files to my Class Library and use them in both my App and Class Library? 回答1: In order to avoid writing a lot of boilerplate and error prone code when you add a new resource string like: Add it to .resw file Add it to your Static class that provides access to the resource Add it to each language specific .resw file (ex: en, fr, pt, etc) You

Programmly using SSL certificates in Windows 8 app

僤鯓⒐⒋嵵緔 提交于 2019-12-05 01:49:55
问题 I need help with this: Our backend is secured by self-signed certificate. Lets call it: OurMegaCoolCertificate.cer So, we have imported this certificate to our developers machines by using certmgr.msc . And now we can retrieve data from our backend using this code: async public static Task<string> getData(string Id, string Type) { String url = "https://BACKEND/API/?Id=" + Id + "&Type=" + Type; HttpClientHandler aHandler = new HttpClientHandler(); aHandler.ClientCertificateOptions =

Visual Studio 6 C++ Crash in Windows 8.1 [duplicate]

别说谁变了你拦得住时间么 提交于 2019-12-05 01:34:36
问题 This question already has answers here : Running Visual Studio 6 C++ in Windows 8.1 (8 answers) Closed 4 years ago . Some of the developers here installed 8.1 last night and when we went to boot up VC6.. and instant crash on the splash screen. We have tried the standard compatibility changes, run as administrator, etc etc and no luck. Anyone else have these issues as well? Have you been able to resolve them anyway? It worked last night on Windows 8 just fine... Details on crash. Go to msdev