windows-10

Need to get mouse events inside webview Win 10 UWP

本小妞迷上赌 提交于 2019-12-06 00:49:50
I am creating a win 10 UWP application. <Grid> <WebView x:Name="WebViewElm"/> </Grid> I have added a webview in it and I need to get the mouse right click and drag drop events for the webview element. But now it is taking the events for the browser. How I can handle the input events in the webview Sample of how to drag element from XAML to WebView. It's not complete solution, but might be helpful for you. XAML: <StackPanel Orientation="Vertical" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <WebView DefaultBackgroundColor="LightGray" Source="ms-appx-web:///HTMLPage1.html"

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

三世轮回 提交于 2019-12-05 23:49:15
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 ContentControlThemeFontFamily}"/> <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>

log4net became very slow with caller location information after Windows 10 Fall Creators Update (1709)

£可爱£侵袭症+ 提交于 2019-12-05 23:03:42
I known that the documentation of log4net points out that the logging of caller location information can be very slow and shouldn't be used unless the performance of the software is not affected. And until the Windows 10 Fall Creators Update this was the case. Here is a small example project. app.config <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,Log4net" /> </configSections> <log4net> <appender name="DefaultAppender" type="log4net.Appender.RollingFileAppender"> <file value="logging.log

Sending scroll commands with SendInput on Windows10 UWP applications

懵懂的女人 提交于 2019-12-05 22:56:13
I have code very similar to this question running in a windows tray application, even with this exact code from the question I get the same behavior. It all works well on classic windows applications, such as Firefox, Chrome, Windows Explorer etc. However when the mouse focus gets to a UWP app such as Edge or Calendar or Mail the scroll becomes jittery and after a few dozen scrolls performed my application hangs and can't even be terminated from task manager (permission denied), this behavior is very reproducible. I'll paste the code from the question here: using System; using System

Is it possible to use UWP APIs in a WPF app?

你离开我真会死。 提交于 2019-12-05 22:37:14
问题 One example would be the new notification APIs for Windows 10 universal platform. Can I use this set of APIs in a WPF app? If so are there any limitations? Links to documentation regarding this would be much appreciated. 回答1: No, You can't - at least for now - But there's a progress on a project called " Centennial " Which will enable you to do so. More see "bridges". Yes, you can now. https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/ 回答2: It is

WINDOWS 10 JAVA_HOME is not working

拥有回忆 提交于 2019-12-05 22:00:36
My system is Windows 10 64 bit I have created an environment variable "JAVA_HOME" and updated the path but, still system is showing "The JAVA_HOME" environment variable is not defined This environment variable is needed to run this program" Also, echo %JAVA_HOME% is not displaying the path Please review the attached screenshots. You need to close and reopen cmd.exe or restart the computer to get JAVA_HOME to propagate to your command prompt. If cmd was open when you set the variables they will not be available in that session. 来源: https://stackoverflow.com/questions/33771315/windows-10-java

Windows 10 SmartScreen with Code Signing .exe file

你说的曾经没有我的故事 提交于 2019-12-05 21:48:43
I've created a setup.exe file and loaded it onto my web site for downloading. The .exe file has been code signed with a certificate from godaddy. When downloading the .exe file from my website using win7 it detects the certificate and displays it to be a safe download. On win10 the .exe file downloads fine but when opening the .exe the smartscreen blocks it from opening. I have many users using win10 and don't want to explain to them to turn off smartscreen. What are my options to get this .exe past win10 smarscreen? The Windows SmartScreen alert will go away after enough people download and

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

风流意气都作罢 提交于 2019-12-05 21:41:27
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? You could use reflection to call part of windows 10 sdk at runtime within your windows 8.1 app. Take a look at Thomas Nigro blog, he does that for the vlc winrt app. 来源: https:/

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

三世轮回 提交于 2019-12-05 21:29:05
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 version 1.2.23231.0 of framework Microsoft.NET.Native.Runtime.1.2 published by CN=Microsoft Corporation

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

跟風遠走 提交于 2019-12-05 21:07:49
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 complex for me to follow. To start with something simpler, I want to recreate the WebRTC.org minimalistic