windows-10

Relative width for UI Elements with RelativePanel in XAML with UWP Apps

╄→гoц情女王★ 提交于 2019-12-06 13:26:45
I want to realize something like |Image (40% Width)|Text(60% Width)| that adapts to small screens like |Image (100%)| |Text(100%| I've got the following solution with AdaptiveTrigger and an Grid. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="VisualStateGroup"> <VisualState x:Name="NarrowView"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="0" /> </VisualState.StateTriggers> <VisualState.Setters> <Setter Target="Image.(Grid.ColumnSpan)" Value="2" /> <Setter Target="Text.(Grid.Row)" Value="1"

Windows 10 specific crash on call LeaveCriticalSection

假如想象 提交于 2019-12-06 12:44:55
问题 I stucked into a problem with threads syncronization and critical sections on Windows 10. Application will crash in this case: Application has two threads. Thread 1 calls EnterCriticalSection with object m_CS Thread 2 then attempts to enter the same critical section Thread 1 terminates Thread 2 using TerminateThread Thread 1 calls LeaveCriticalSection In previous Windows versions which I was able to test (7, 8, 8.1) this works properly. Thread 2 terminates, and Thread 1 leaves the critical

How to use WriteableBitmap.setpixel() efficiently in windows 10 uwp?

佐手、 提交于 2019-12-06 12:43:30
问题 I have a scenario where choosing a image file and then using BitmapDecoder converting the source to a WriteableBitmap and setting an image.source to the WriteableBitmap. Now when a user taps on the image I get the co-ordinates and then want to color the entire region surrounding that pixel with a particular color.(Like the fill option in paint). The code I've used is private void setPixelColors(int xCord, int yCord, int newColor) { Color color = bit.GetPixel(xCord, yCord); if (color.R <= 5 &&

WebBrowser control and Windows 10 issue (Navigation canceled)

本秂侑毒 提交于 2019-12-06 12:37:22
问题 I'm trying to run a WebBrowser containing form on a new STA thread. The code runs as expected on Windows 7, but on Windows 10 the navigation cancels automatically. I tried to set each of the zone security settings to minimum from Internet Options but nothing changed. Navigation to the webpage was canceled Zone: My Computer | Protected Mode: Off res://ieframe.dll/navcancl.htm#https://google.com/ This page can’t be displayed Zone: My Computer | Protected Mode: Off res://ieframe.dll

Is the Windows.ApplicationModel.LockScreen namespace available for non-kiosk use?

爷,独闯天下 提交于 2019-12-06 12:22:17
The MSDN documentation for the Windows.ApplicationModel.LockScreen namespace claims that "You can create an app that acts as the lock screen, allowing greater user personalization". I'm interested in creating a custom lock screen for Windows 10 Mobile. However, my quest for further documentation yielded only an article about creating a Windows 10 desktop kiosk app . So, my question is simple--is it actually possible to create a custom Windows 10 Mobile lock screen with these classes? There are a few different things here that are probably confusing things. unfortunately they are not very

Sending Key Strokes with C# in Win10 outside of app

折月煮酒 提交于 2019-12-06 10:35:10
I am trying to send a simple "CTRL+C" stroke to another window. The idea is to grab text from IE/FF/Chrome/IE/Excel/Word . Anyway, I have tried to use SendKeys.Send() and SendKeys.SendWait() and InputSimulator's Keyboard.KeyPress() . None of them throw exceptions (Well SendKeys.Send() , but that's expected) but none of them actually send anything. I have tried to just send letter presses and nothing happens. I will include code snippets to see if maybe I am doing something real dense but I worry its a Win10 isolation thing. Has anyone had luck sending keystrokes outside of their own app in

Define input type for Windows 10 touch keyboard from a JavaFX application

若如初见. 提交于 2019-12-06 09:37:09
问题 I have a working JavaFX app running on windows 10. I would like to use the touch-keyboard in a similar to MSDN user input scope to change the touch keyboard HOWEVER there is no way to interact with it. All textfieeds open the Default keyboard. I would like to find the closest to JavaFX as possible solution. Things I have tries so far: Tried to use the WM_MESSAGE to trick the OS, see Here. This is a messy workaround that does not work on windows 10. Encapsulating the WM_MESSAGE or InputScope

ANSI color Set Graphics Rendition breaking mid-batch and working after it proceeds

一曲冷凌霜 提交于 2019-12-06 07:59:42
问题 I've got a batch that has a sub-section which iterates through lines of a file for EXEs to try running, and then the batch sorts the EXEs based on their exit codes. For some reason, the ANSI SGR seems to break or echo the literal text after setting the graphics rendition of the previous one instead of re-rendering it. I went back to re-reference this question and the original documentation, but I'm not sure why this specific area of my batches is mangling the ANSI coloration inside the

Windows 10 Developer Mode

安稳与你 提交于 2019-12-06 07:37:15
I have Windows 10 Pro (upgraded from Windows 8.1 Pro WMC) and I see that the option "Don't use developer features" is greyed out/disabled/cannot be selected and the option "Sideload apps" is selected. Why can't I select "Don't use developer features"? How can I enable it? This is mainly due to group policy feature being enforced. You can go to group policy to enable it manually. Search for Group Policy Editor and navigate to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > App Package Deployment Enable Allow all trusted apps to install Allows

Jupyter notebook will not open from command prompt

江枫思渺然 提交于 2019-12-06 07:21:54
问题 I am trying to work with Jupyter notebook on Windows 10 (64-bit). I downloaded Anaconda3 5.0.1. Now I should be able to open the jupyter notebook from the command prompt by typing jupyter notebook. However I get the following error: The only way I am able to open jupyter notebook is from the Anaconda navigator. However, I would like to change the directory from which the notebook opens and none of the solutions here How to change the Jupyter start-up folder work if I cannot open jupyther from