windows-10

Pivot inside a ScrollViewer, scrollviewer wont scroll

北战南征 提交于 2019-12-02 06:48:38
问题 I have a page that has many UI elements and its scrollable vertical like a Timeline. In the middle I have a pivot that when its gets focus or the mouse pointer enters the scrollviewer stop scrolling. <ScrollViewer x:Name="scrollViewer" VerticalScrollMode="Enabled" HorizontalScrollMode="Disabled"> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid.RowDefinitions> <RowDefinition Height="90"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition

What is WINAPI_FAMILY_ONECORE_APP?

落爺英雄遲暮 提交于 2019-12-02 06:17:41
问题 I was looking through Microsoft's port of OpenSSL on GitHub. One commit caught my eye, and it was Adding Win10 Universal Platform support. In the commit, a partition called WINAPI_FAMILY_ONECORE_APP showed up. However, I'm not finding much about it when searching. There are two hits in English and 22 hits in Chinese (see below). Following What’s new in Visual Studio Tools for Windows 10 Preview provides some quasi-bullet points with no explanations: new API partition WINAPI_FAMILY_ONECORE_APP

Windows 10 shutdown delay, VB.NET

夙愿已清 提交于 2019-12-02 05:48:43
问题 I want to delay windows 10 from shutting down so that my app can finish up some necessary actions like saving data... Following is a working code example to achieve a delay, however windows cancels the shutdown after about 1 minute of waiting. How can I achieve a delay without windows aborting the shutdown after a minute? (perhaps it takes 2 or 4 minutes for my app to finish up) Public Class Form1 Declare Function ShutdownBlockReasonCreate Lib "user32.dll" (ByVal hWnd As IntPtr, <Runtime

Syntax error when defining a function on the Python command line

谁说我不能喝 提交于 2019-12-02 05:33:36
问题 I am trying to define a function on the Python REPL. Every time I try to run the below code, I get a syntax error. Code: def hello(): print ("Hello!") hello() Error: C:\Users\~\Desktop>python Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> def hello(): ... print ("Hello!") ... hello() File "<stdin>", line 3 hello() ^ SyntaxError: invalid syntax A possible explanation I've

Windows 10 Print to PDF from command-line

不问归期 提交于 2019-12-02 05:12:17
I'm correcting assignments from my students right now and I'd like to automate an annoying step I always have to do. After annotating their PDF solutions, I need to Print them to PDF files in order to bake my annotations into the PDF so that they can be included in LaTeX. Right now I have to manually choose "Microsoft Print to PDF" and enter the PDFs name with a leading underscore (which is what my automatically generated LaTeX files expect). This gets annoying for 30+ files. So I'd like to issue this in a batch-script automatically for all the PDFs to minimize my efforts to a simple double

Pyinstaller: WARNING: lib not found

余生颓废 提交于 2019-12-02 05:11:13
I'm trying create an executable from my code that uses PyQt5. I'm using Python 3.5.3 -64 bits, developing in Windows 10, used pip to install pyinstaller 3.2.1, and installed pywin32. Pyinstaller runs but outputs warnings that libraries aren't found. I'm creating my application using the following: pyinstaller Start_UI.py Which outputs these warnings . pyinstaller Start_UI.spec Which outputs these warnings When I open the executable that pyinstaller creates, the application closes immediately. I suspect the application is failing because of the warnings. How can I resolve the warnings so the

Ruby executable won't start on Win10 and Win7

别来无恙 提交于 2019-12-02 04:51:09
问题 I wrote a ruby application with Tk, and everything is fine, no errors or such. So i made an exe with Ocra and i had some problems at the start but then i solved, Ocra made the exe with no errors and also when it let's you try your script before conpiling it, there were no problems. But then when i double clicked the exe, nothing. I waited, and nothing.. Run it as admin and nothing again.. I also tried to write a simple script, just like an hello world but always the same issue: No errors

C# Ftp Upload in Windows 10 Universal app?

狂风中的少年 提交于 2019-12-02 04:37:16
I want to upload files from windows 10 app using ftp, I tried the following code. using System; using System.IO; using System.Net; using System.Text; namespace Examples.System.Net { public class WebRequestGetExample { public static void Main () { // Get the object used to communicate with the server. FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://www.contoso.com/test.htm"); request.Method = WebRequestMethods.Ftp.UploadFile; // This example assumes the FTP site uses anonymous logon. request.Credentials = new NetworkCredential ("anonymous","janeDoe@contoso.com"); // Copy the

cmake Windows 10 SDK

↘锁芯ラ 提交于 2019-12-02 04:28:13
tried to compile VTK using cmake on Windows 10 with Visual Studio compiler ... however, cmake says "Could not find an appropriate version of the Windows 10 SDK installed on this machine". Okay. So I Installed Windows 10 SDK but the same error keeps occuring. Any idea what could be wrong? I've already reinstalled cmake but no success. Thanks, Eric I've have the same issue and in my case it's because the SDK I just installed is targeting 10.0.10586.0 ls "C:\Program Files (x86)\Windows Kits\10\include\" Directory: C:\Program Files (x86)\Windows Kits\10\include Mode LastWriteTime Length Name ----

Universal Windows Plateform And Live SDK

冷暖自知 提交于 2019-12-02 04:17:29
I have a problem. I recently installed VS 2015 and Windows 10 on my computer. Having Universal Apps are amazing and I plan to convert some of my programs on UWP. But I have a problem. In one of my programs, I allow the user to save its datas on its OneDrive. And if OneDrive is unavailable, the datas are stored on local devices. And when OneDrive is available, the newly stored datas are pushed to OneDrive. Synchronisation in fact. So it is the problem. In the UWP dll named Universal.Live I have installed Live SDK 6 with Nuget. During the package installation, there is some work done to see if