windows-10

Know when Windows 10 are Tablet Mode - Windows 10 / Windows 10 Mobile

女生的网名这么多〃 提交于 2019-12-05 18:24:45
I work on Universal App for Windows 10 and Windows 10 Mobile. Does anyone know how to check if Windows 10 is running on Tablet Mode? I found this question here but that is for Windows Forms: How can I detect when Window 10 enters tablet mode in a Windows Forms application? Thanks You query the UserInteractionMode - this is the sample code from that link switch(UIViewSettings.GetForCurrentView().UserInteractionMode) { case UserInteractionMode.Mouse: VisualStateManager.GoToState(this, "MouseLayout", true); break; case UserInteractionMode.Touch: default: VisualStateManager.GoToState(this,

Sharing target Universal Apps Windows 10 approach

纵然是瞬间 提交于 2019-12-05 18:22:57
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 navigationService = new NavigationService(_dispatcherService) { RootFrame = frame, }; Window.Current.Content =

ListView and pointer events - any way to handle this?

[亡魂溺海] 提交于 2019-12-05 17:40:18
This is quite old and I believe common case - I have a ListView and I want to let it handle vertical scroll, but horizontal movement of pointer I would like to handle myself. There is a good blog post from Rob Caplan , but it's already three years old and I don't know if there had anything changed in W10. In the post, at the end, Rob suggests to avoid scrolling the ListView manually from own event. Is there any better, easier way to handle this? Sample code can look like this: <Grid x:Name="mainGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <ListView

Is it possible to build UWP app in Mac?

折月煮酒 提交于 2019-12-05 17:26:29
问题 Is it possible to build the UWP app in the Mac platform? Like I have Mac PC and the new Visual Studio Code can use to write codes, but is it possible to install the Emulators and SDK for Windows 10 / UWP? I want to build apps for Windows platform. 回答1: Unfortunately currently there is no option to use UWP dev tools on the MAC even with Visual Studio Code. The same is for Linux. 来源: https://stackoverflow.com/questions/39243485/is-it-possible-to-build-uwp-app-in-mac

Could not find SDK “Microsoft.VCLibs, Version=14.0” on Windows 10

情到浓时终转凉″ 提交于 2019-12-05 17:09:21
问题 I have just installed windows 10 and wanted to give a try on windows universal desktop apps. With the installation of Visual Studio community version there were no templates for this kind of project, and I installed it manually via VS. In the process of installation there were three things installing (as far as i remember it was some SDK version). Then I created a simple project under Visual C# -> Windows -> Blank App (Universal Windows), and when I build the app its says: Could not find SDK

Windows 10 Toast Notifications Desktop Application

与世无争的帅哥 提交于 2019-12-05 16:28:30
问题 I'm trying to integrate some Windows 10 features into my existing Windows Desktop application. I am a little stuck integrating the Toast Notifications. Using the toast notification example (https://code.msdn.microsoft.com/windowsdesktop/sending-toast-notifications-71e230a2/) I was able to implement code to send and hide notifications. It also works, that when the user clicks on an 'active' notification an event handler in my application is invoked. However, as soon as the notification is

Installation errors in repair of Visual Studio 2015 Community Edition on Windows 10

依然范特西╮ 提交于 2019-12-05 15:23:39
While trying to fix Missing MVC template in Visual Studio 2015 I ran "repair" on my copy of VS 2015 on Win10. But when the repair completed I had the following errors: Microsoft Azure Storage Connected Service : Package failed. Android SDK Setup (API Level 19 and 21) : The following package(s) were not downloaded: addon-google_apis-google-19 addon-google_apis_x86-google-19 android-19 android-21 android-22 build-tools-19.1.0 build-tools-21.1.2 build-tools-22.0.1 extra-android-m2repository extra-android-support platform-tools sys-img-armeabi-v7a-android-19 sys-img-x86-android-19 . Please check

Detect if share UI is supported in current device (UWP)

余生长醉 提交于 2019-12-05 15:17:45
I have created a UWP app for windows 10 devices using c#/xaml. In the app, i have a share functionality that calls DataTransferManager.ShowShareUI() This works as expected on desktop, tablet and mobile devices. But on my xbox, the above method does not launch the share UI. Nor does it throw any exceptions. After searching online a bit, I found this article that says share contract is not supported on xbox. And no share UI is displayed. But this gives a bad user experience. So I have 2 options now Hide the share button, if the device is an xbox Or when user clicks on share, show a popup that

How do I turn a Windows feature on/off from the command line in Windows 10? [closed]

我们两清 提交于 2019-12-05 14:53:56
问题 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 last year . In Windows 10 and from "Programs and Features", you can turn Windows features on or off and then initiate a download and installation. I wish to turn ".NET Framework 3.5" ON and have it downloaded and installed, but I need to do it via e.g. a PowerShell script or via a command. I need to use the command line. How

What is the stack size of MATLAB?

耗尽温柔 提交于 2019-12-05 14:02:58
What is the default stack size of MATLAB R2018a (64-bit)? It seems that the stack-size is larger than an 64-bit C# program. Why I'm asking that I'm asking this question because I'm calling Intel MKLs LAPACKE_dtrtri which is heavily recursive. I'm using that function inside .NET application and I'm getting a stack overflow error when calling it from C#, see What is the stack size of a BackgroundWorker DoWork Thread? Is there way to change it? On the other side if I call my .NET application from MATLAB I'm not getting a stack overflow error. That's the reason I wanted to know what the stack size