windows-10

How to get handle to a TextBox control inside window in Window 10

我们两清 提交于 2019-12-08 02:04:39
问题 I am working on automation to Windows 10 with C#. One of the tasks is to write data to a TextBox in window called "Add exclusion". In order to enter this window: Open Settings => Update & security => Windows Defender => Add an exclution => Exclude a file extension I understood that I need to use SendMessage(...) or SetWindowText(...) functions for writing data to a control. But I need to pass these functions a handle of the control I want to write to. So I need to use GetDlgItem(hDlg,

Windows10 script pin app to start menu

怎甘沉沦 提交于 2019-12-07 23:13:59
问题 I have a Universal App that I'm sideloading in Windows10. I would like to create a script (Powershell, VBS, batch, etc) to pin it to the Start Menu. I have found many examples of how to write a script that pins a desktop application (like this one: https://gallery.technet.microsoft.com/scriptcenter/Script-to-pin-items-to-51be533c ). I've tried using the script to pin the actual App .exe file located in C:\Program Files\WindowsApps... but that doesn't work. When I try and pin that way, I run

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

随声附和 提交于 2019-12-07 20:06:37
问题 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? 回答1:

How can I disable tilt animation on GridView/ListView in Win10 Universal app?

◇◆丶佛笑我妖孽 提交于 2019-12-07 18:10:01
问题 It used to be I could cancel the tilt effect on GridView/ListView by editing the item container style and removing the storyboard animations. However, when I edit the templates now on Win10 Universal apps, I am not seeing any of the storyboards. Where can I cancel the animation at? Here's the style that's generated for me (and when used, does not disable animation): <Style x:Key="ListViewItemStyle1" TargetType="ListViewItem"> <Setter Property="FontFamily" Value="{ThemeResource

WebRTC for UWP, new RTCPeerConnection() doesn't complete execution

白昼怎懂夜的黑 提交于 2019-12-07 18:03:10
问题 I’m trying to create a Universal Windows Platform application that uses WebRTC, but my code never executes past the first new RTCPeerConnection. I have been looking at the open source project WebRTC for UWP (blog post with links to git repos) and managed to build and run the ChatterBox VoIP client example. Since I am new to both UWP programming and WebRTC (and .NET, C# and Windows programming in general) the examples I have been looking at in the repos mentioned above have been much too

UWP Desktop Bridge & Local App Data virtualized folder location

自闭症网瘾萝莉.ら 提交于 2019-12-07 17:49:09
问题 I am in the process of converting a Win32 app (Zoom Player) to the UWP AppX model using the " Desktop Bridge " conversion tool. Under the folder model introduced in Windows VISTA, the application's files that do not require create/write access are installed under the " Program Files " folder and files that require create/write access are Installed under the LocalAppData folder (" C:\Users\bLight\AppData\Local " when calling the " SHGetKnownFolderPath " WinAPI function with the FOLDERID

ContentDialog not aligning to center on UWP

回眸只為那壹抹淺笑 提交于 2019-12-07 17:20:45
问题 From what I know, ContentDialog 's default behavior should be to have it centered on PC and aligned to top on mobile, but in my case I have it aligned to top even on PC and I don't understand what's going on. I'm creating it using code-behind, and this is a snippet of the code that I'm using: // Creates the password box var passwordBox = new PasswordBox {IsPasswordRevealButtonEnabled = true, Margin = new Thickness(5)}; // Creates the StackPanel with the content var contentPanel = new

How to specify initial window size for Windows 8.1 app running on Windows 10

半世苍凉 提交于 2019-12-07 17:12:17
问题 Is it possible to set the default window size for a Windows 8.1 app running on Windows 10? I know that this can be done for a UWS app using APIs introduced in Windows 10. However, converting the app to Windows 10 will take some time. In the meantime, I would like to be able to release a quick fix which would ensure that current Windows 8.1 app launches with the correct size. Does anyone know how to achieve this? 回答1: You could use reflection to call part of windows 10 sdk at runtime within

Sharing target Universal Apps Windows 10 approach

浪子不回头ぞ 提交于 2019-12-07 13:01:02
问题 I am struggling with it for a few hours and can't find working solution. My app is a target app for sharing and the problem is when it's running and user wants to share content. protected override async void OnShareTargetActivated(ShareTargetActivatedEventArgs args) { await OnInitializeAsync(); if (await CheckToken(args) != true) return; if (args.PreviousExecutionState != ApplicationExecutionState.Running) { if (await LoadData(args) != true) return; } var frame = new Frame(); var

Error DEP0700 0x80073cf3 during Windows 10 UWP application deployment with Visual Studio

喜欢而已 提交于 2019-12-07 12:51:39
问题 I'm unable to deploy my UWP project anymore in the Release/x64 configuration with .NET Native. It appears that it can't find the x86 version of the .NET Native Runtime package during deployment, while it has built a x64 package on the target platform that is really x64. The error is below: Error : DEP0700 : Registration of the app failed. Windows cannot install package XXXXXXXXX-d24ead15699e because this package depends on another package that couldn't be found. This package requires minimum