windows-10

UWP: How can I attach an image to an InkCanvas?

社会主义新天地 提交于 2019-12-20 06:00:12
问题 I have to capture a photo with camera or loading it from file into a canvas which should be edited for highlighting some stuff on it after that saved into a folder. As for now I use this: <Grid x:Name="grid"> <Image Source="/Assets/stainless-images-110606.jpg" x:Name="ImageToEdit" Stretch="Uniform" /> <StackPanel Background="LightGreen" Width="700" Height="700" x:Name="StackPanel"> <InkCanvas x:Name="MyInkCanvas" Width="{Binding Width, ElementName=StackPanel}" Height="{Binding Height,

ToogleMenuFlyout and MenuFlyoutPresenterStyle Set Width - Windows 10 Mobile

那年仲夏 提交于 2019-12-20 05:54:47
问题 I need the items in a ToogleMenuFlyout occupy the full width of the screen. But I'm not solve the problem. I'm trying to put the width of my Grid (Grid Main page) but I do not get to do in code-behind. I am applying a style to MenuFlyoutPresenterStyle but also not to give. my code is: AppBarButton x:Name="FiltersPhone" Icon="Filter" Label="Names"> <AppBarButton.Flyout> <MenuFlyout> <MenuFlyout.MenuFlyoutPresenterStyle> <Style TargetType="MenuFlyoutPresenter"> <Setter Property="Background"

How to set Environment variables from Windows

拥有回忆 提交于 2019-12-20 05:36:31
问题 What is the way to add environment variables in windows xp, 7, 8 , vista, 10 etc 回答1: In Windows 7, 8, Vista or XP. Find "My Computer" icon either on the desktop or in the start menu, right click on it, and select Properties item from the menu. When you see the properties dialog box, click on the Environment Variables button then add it. In Windows 10 or higher, open cmd from start menu. Then execute this command " systemPropertiesAdvanced " 回答2: To view or change environment variables: Right

EVP_get_cipherbyname and “undefined struct/union evp_cipher_st” in OpenSSL 1.1.0

一曲冷凌霜 提交于 2019-12-20 05:28:11
问题 I'm trying to use openssl with visual studio c project. I compiled openssl using visual studio nmake command then installed everything to a predefined folder (C:\openssl) using: nmake install The folder structure is as following: bin include/openssl lib Inside include/openssl there are .h header files. In my Visual studio 2012, I created an empty general c++ project and included C:\openssl\include [Project properties -> C/C++ -> General -> Additional Include Directories] I also added lib

cmake Windows 10 SDK

不问归期 提交于 2019-12-20 05:19:11
问题 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 回答1: 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

cmake Windows 10 SDK

社会主义新天地 提交于 2019-12-20 05:19:01
问题 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 回答1: 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

cuda simple application working for 32 bit not for 64 bit

可紊 提交于 2019-12-20 05:00:27
问题 My simple cuda helloworld application runs fine when built in 32 bit using visual studio 2015 community on windows 10. However, if I build it in 64 bit, it is not executed GPU: Telsa K40c ToolKit: CUDA 8 Operating System: windows 10 64bit Visual Studio: community edition. there is no error message in output console. #include "cuda_runtime.h" #include "device_launch_parameters.h" #include<stdio.h> __global__ void welcome() { printf("Hello world :)"); } int main() { welcome << <1, 1 >> > ();

Import-Pfx Cert w/ Password - deployment

好久不见. 提交于 2019-12-20 04:28:09
问题 I want to push out a cert w/ a private key password. I know its not secure. A more secure way would be great. But i cannot figure out to do it. $test = ConvertTo-SecureString -String "plaintextpassword" -Force -AsPlainText<code> Import-PfxCertificate -FilePath $filelocale -CertStoreLocation Cert:\LocalMachine\My -Password $test Getting: Import-PfxCertificate : The PFX file you are trying to import requires either a different password or membership in an Active Directory principal to which it

How to install OpenXML SDK Productivity Tool 2.5 on Windows 10

五迷三道 提交于 2019-12-20 04:19:23
问题 I downloaded the OpenXML SDK Productivity Tool 2.5 from Microsoft's Website However when I want to install it, I get told I need to install .NET Framework 4 first and the install won't continue without it. I already have .NET Framework 4.6 installed. I have installed Visual Studio 2015 Update 1. You should have .NET Framework 4.0 installed before you setup Open XML SDK 2.5 Please install the .NET Framework and run this setup again. The .NET Framework can be obtained from the web. Would you

Spell check textbox in Win10 - Slow

假如想象 提交于 2019-12-20 04:12:54
问题 I'm using the built in spell checker in WPF. It was working just fine until I had users start upgrading to windows 10... I think the issue is that it's being used for a lot of small text boxes. My application presents a grid (Telerik's TreeListView) with text boxes for one of the columns which i want spell checked. I need to be able to provide a custom dictionary to the spell checker; the only way I was able to do this was to subscribe to the textbox loaded event and add the paths in as