windows-10-desktop

How to set min size of windows universal app on desktop?

不想你离开。 提交于 2021-02-19 08:20:28
问题 I would like to set min size like 800x600 for my windows universal app which on desktop. I found a method ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(800, 600)); but it doesn't work, I still can drag the window to 500x300. What I miss ? 回答1: I found a solution https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.applicationview.tryresizeview for desktop, I can set a min size which is bigger than 500x500 as below code. private void Page

Project and build structure for Microsoft DirectShow based virtual webcam application on Window 10

橙三吉。 提交于 2021-02-10 18:23:03
问题 I am trying to create simplest virtual webcam application which can display image file on my local filesystem. After initial research on stackoverflow links and seeing OBS Studio source code I got some idea how can I achieve this. I would need to use Microsoft DirectShow. I would need to develop one source filter that would work as capture filter using IBaseFilter I would need to develop another source filter that would work as output filter or virtual webcam filter. I would need to compile

Capture touch input on the screen in windows device

旧街凉风 提交于 2021-02-05 11:14:12
问题 Is there any way to capture touch input on the screen (outside application frame) in windows device? I'm working on a WPF application and can retrieve the touch input if it only occurs within the application frame. Also, is there a way to register the touch input even when the application is minimized? 回答1: There's no built-in method of the WPF framework that lets you listen for input outside of the application. If you want to do that, you'll have to get into p/invoke territory. Specifically

Capture touch input on the screen in windows device

≯℡__Kan透↙ 提交于 2021-02-05 11:14:09
问题 Is there any way to capture touch input on the screen (outside application frame) in windows device? I'm working on a WPF application and can retrieve the touch input if it only occurs within the application frame. Also, is there a way to register the touch input even when the application is minimized? 回答1: There's no built-in method of the WPF framework that lets you listen for input outside of the application. If you want to do that, you'll have to get into p/invoke territory. Specifically

UWP Windows-10 Better way to load images

Deadly 提交于 2021-01-28 03:48:08
问题 I have a C# app targeting Windows UWP Desktop. The app displays list of images. When user clicks on any of the image in the List View, app would enlarge(detailed view) it & show the image(kind of full screen as the image size is bigger). Whenever I click any image in the list view, the image in the detailed view first shows the previously loaded image & then it refreshes & load's the image from the current selection I want to know how to prevent loading the previous image until, new image is

Error in installing face_recognition module using pip

寵の児 提交于 2021-01-20 07:17:15
问题 I am using vs code in windows 10. When I install face_recognition in vs code using pip I got the following error, I have also tried to install dlib before installing face_recognition. ERROR: Command errored out with exit status 1: command: 'c:\users\admin\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-fi__6w9v\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\

Copy paste is not working in command prompt neither right click or keyboard shortcuts in Windows 10 [closed]

▼魔方 西西 提交于 2021-01-19 04:29:24
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Improve this question Win 10 copy paste is not working in cmd from right click neither keyboard short cuts as well. Nothing happens if I try to paste some text in prompt. Reason is unknown to me. Any help? 回答1: Right-click on the title-bar of your cmd window. [Properties] - Options -

Copy paste is not working in command prompt neither right click or keyboard shortcuts in Windows 10 [closed]

孤街醉人 提交于 2021-01-19 04:28:15
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Improve this question Win 10 copy paste is not working in cmd from right click neither keyboard short cuts as well. Nothing happens if I try to paste some text in prompt. Reason is unknown to me. Any help? 回答1: Right-click on the title-bar of your cmd window. [Properties] - Options -

Windows Docker container Networking to Postges on host (windows 10) [duplicate]

一世执手 提交于 2020-12-15 06:40:06
问题 This question already has answers here : Docker container to connect to Postgres not in docker (2 answers) Closed 11 days ago . OK.. Sorry to clog up this site with endless questions. I have a .NET REST API that works in DOCKER. (Windows container) But, the moment I try to connect to Postgres on my host I am unable to connect. I get unable to connect, request timed out, connection was actively refused... I have modified my connection string over a thousand times trying to get this to work.