windows-10

Navigation Issue in UWP

那年仲夏 提交于 2019-12-12 04:30:02
问题 tl;dr I have 3 Pages MainPage.xaml , BlankPage1.xaml , BlankPage2.xaml with Button on MainPage and BlankPage1 that navigates to BlankPage1 and BlankPage2 Respectively. I enabled System Back Button so that i can go back to previous page. Button Tap on MainPage navigates to BlankPage1 and Button Tap on BlankPage1 navigates to BlankPage2 . This works fine. Problem: When I tap Back Button on BlankPage2 it goes back to BlankPage . Now when I tap the Button on BlankPage1 it goes to BlankPage2 but

How do I know whether MASM encodes my JMP instruction using a relative or absolute offset?

感情迁移 提交于 2019-12-12 04:20:56
问题 How do I know whether MASM encodes my JMP instruction using a relative or absolute offset? I know that x86 provides JMP opcodes for relative and absolute offsets. I want to be certain that my jumps are relative, however I cannot find any proper MASM documentation telling me whether JMP @label actually translates into a relative jump. Please, if possible, give a link to documentation in the answer. For the opposite issue: See How to code a far absolute JMP/CALL instruction in MASM? if you're

Detect keyboard deployment

给你一囗甜甜゛ 提交于 2019-12-12 04:16:53
问题 I am porting an WP7 Silverlight application to the UWP Windows 10 mobile platform. In my old code I used to check if the keyboard was deployed in the following way: if (DeviceStatus.IsKeyboardDeployed) { // do stuff } else { //do stuff } Now I want to do the same in WM10 but there does not seem to be an equivalent of this function anymore. I already checked the following link And Googled but cannot find it. Does anybody know if you still can detect this in any way? 回答1: I think you can make

cannot connect to 64bit MsAccess database with 64bit Python 3.6.ODBC Driver Error

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:14:25
问题 I have just installed 64-bit microsoft office on a new computer and also installed 64bit python 3.6. I'm trying to connect to an access database with my python script, however I keep getting the following error which suggests I have the 32bit ODBC driver instead of the 64bit driver? Any ideas on how to connect without having to install 32bit MS Office and 32bit Python? This is the error message I get: cnxn = pyodbc.connect(connstr) pyodbc.Error: ('IM002', '[IM002] [Microsoft][ODBC Driver

Convert .MOD video files to .mp4 but maintain original file date

你说的曾经没有我的故事 提交于 2019-12-12 04:05:47
问题 Windows 10, ffmpeg I'm very new to ffmpeg so I can't figure this out. I'm trying to use a command to copy then convert all .MOD video files in a directory to .mp4 files and keep the original date that the .MOD file was created. I don't understand how to map the current file in the loop to the map_metadata option. This command works but doesn't maintain the metadata (taken from this post) FOR /F "tokens=*" %G IN ('dir /b *.MOD') DO ffmpeg -i "%G" -acodec copy "%~nG.mp4" I've tried including

setting the BluetoothLEAdvertisement.Flags in C# for iBeacon advertisemet

▼魔方 西西 提交于 2019-12-12 03:44:14
问题 MS provided samples to send and receive Bluetooth Low Energy advertisements. I saw this very helpful answer for breaking down the iBeacon packet. There's also an example for setting BluetoothLEAdvertisement.ManufacturerData as the ibeacon standards. May I ask how can I set the Flags of the BluetoothLEAdvertisement? For example set the value to: 02-01-06 Thanks Edit 1: Here's the code: using System; using System.Management; using System.Text.RegularExpressions; using Windows.Devices.Bluetooth

On Windows 10 Some FormBorderStyles has no borders

痴心易碎 提交于 2019-12-12 03:41:55
问题 This is only an issue if you have Drop Shadows turned off in appearance settings. I noticed some of our applications form windows had no borders. Specifically they have been missing the 1 pixel thick border for the left part, right part and bottom part of the form window. All of the forms had in common that they were using FormBorderStyle FixedToolWindow or SizableToolWindow. When it is like this it is hard to distinguish where one dialog stop and another one begins. We find it plausible that

UWP PivotItem ListView TabChange issue

戏子无情 提交于 2019-12-12 03:29:48
问题 I am encountering strange problem. I have Pivot in my Xaml like this: <Page.Resources> <ResourceDictionary> <SolidColorBrush x:Key="NavButtonPressedBackgroundBrush" Color="White" Opacity="0.3" /> <SolidColorBrush x:Key="NavButtonCheckedBackgroundBrush" Color="White" Opacity="0.2" /> <SolidColorBrush x:Key="NavButtonHoverBackgroundBrush" Color="White" Opacity="0.1" /> <Style x:Key="NavRadioButtonStyle" TargetType="RadioButton"> <Setter Property="Background" Value="Transparent"/> <Setter

Speech is not being recognized with default dictation grammar in my UWP application.

删除回忆录丶 提交于 2019-12-12 03:09:01
问题 Speech is not being recognized with default dictation grammar in my UWP application. However, it is perfectly recognized when I use programmatic list constraint. Below is the speech recognition part of my code for reference. If I do not comment the 5th line, this works fine. Am I doing something wrong below: speechRecognizer = new SpeechRecognizer(); bool PermissionGained = await CheckMicrophonePermission(); if (PermissionGained) { //speechRecognizer.Constraints.Add(new

“Let Windows manage my default printer” is missing [closed]

守給你的承諾、 提交于 2019-12-12 03:06:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Update: Based on down votes I got, I decided to explain why I am asking this question. I am writing a C# application that use the default printer. The problem is when printing in Windows 10 through my application, the default printer is not returned as expected. After some research, I found that it is a new